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

Mutation Tests pox-locking/src/events.rs > create_event_info_data_code

Open ASuciuX opened this issue 9 months ago • 0 comments

Related #4587

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

The steps for making sure the create_event_info_data_code 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 create_event_info_data_code" -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:
    • [ ] String::new()
    • [ ] "xyzzy".into()

ASuciuX avatar May 29 '24 13:05 ASuciuX