stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

Mutation Tests stackslib/src/chainstate/burn/db/sortdb.rs > are_microblocks_disabled

Open ASuciuX opened this issue 9 months ago • 0 comments

Related #4587

The mutation testing highlighted there are missing unit tests for are_microblocks_disabled .

The steps for making sure the are_microblocks_disabled function has its possible outcomes caught are:

  • [ ] remove the skip header
  • [ ] then check if mutation tests are caught for these cases:
    • [ ] run (this will also trigger the same function from events_24.rs which also has this function's mutant tests as missed.
     RUST_BACKTRACE=1 BITCOIND_TEST=1 cargo mutants -vV -F "replace SortitionDB::are_microblocks_disabled" -E ": replace .{1,2} with .{1,2} in " --baseline=skip --test-tool=nextest -- --run-ignored all --no-fail-fast --test-threads 1  
    
  • [ ] create tests if these aren't caught:
    • [ ] None case returning Ok(false)

ASuciuX avatar Jun 04 '24 16:06 ASuciuX