Open ASuciuX opened 3 weeks ago
Related #4587
The mutation testing highlighted there are missing unit tests for process_new_tenures.
process_new_tenures
The steps for making sure the process_new_tenures function has its possible outcomes caught are:
#[cfg_attr(test, mutants::skip)]
RUST_BACKTRACE=1 BITCOIND_TEST=1 cargo mutants -vV -F "replace RelayerThread::process_new_tenures" -E ": replace .{1,2} with .{1,2} in " --baseline=skip --test-tool=nextest -- --run-ignored all --no-fail-fast --test-threads 1
Same steps for the can_run_microblock_tenure function
can_run_microblock_tenure
RUST_BACKTRACE=1 BITCOIND_TEST=1 cargo mutants -vV -F "replace RelayerThread::can_run_microblock_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 are missing unit tests for
process_new_tenures
.The steps for making sure the
process_new_tenures
function has its possible outcomes caught are:#[cfg_attr(test, mutants::skip)]
[ ] create tests if they aren't caught
Same steps for the
can_run_microblock_tenure
function