The mutation testing highlighted there might be missing unit tests for run_tenure but there needs to be created a default for MinerThreadResult to check it.
The steps for making sure the run_tenure function has its possible outcomes caught are:
[ ] create default for MinerThreadResult
[ ] remove the skip header #[cfg_attr(test, mutants::skip)]
[ ] check if mutation tests are caught for these cases:
[ ] run
RUST_BACKTRACE=1 BITCOIND_TEST=1 cargo mutants -vV -F "replace BlockMinerThread::run_tenure" -E ": replace .{1,2} with .{1,2} in " --baseline=skip --test-tool=nextest -- --run-ignored all --no-fail-fast --test-threads 1
Related #4587
The mutation testing highlighted there might be missing unit tests for
run_tenure
but there needs to be created a default forMinerThreadResult
to check it.The steps for making sure the
run_tenure
function has its possible outcomes caught are:MinerThreadResult
#[cfg_attr(test, mutants::skip)]