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

Mutation Tests clarity/src/vm/ast/parser/v2/mod.rs > handle_open_tuple

Open ASuciuX opened this issue 9 months ago • 0 comments

Related #4587

The mutation testing highlighted there might be missing unit tests for handle_open_tuple but there needs to be created a default for SymbolicExpression to check it.

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

  • [ ] create default for SymbolicExpression
  • [ ] 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 Parser<'a>::handle_open_tuple" -E ": replace .{1,2} with .{1,2} in " --baseline=skip --test-tool=nextest -- --run-ignored all --no-fail-fast --test-threads 1
    
    • [ ] ParseResult::from_iter([Some(Default::default())])
    • [ ] ParseResult::new(None)
    • [ ] ParseResult::from_iter([None])
    • [ ] ParseResult::new(Some(Default::default()))
    • [ ] ParseResult::from(None)
    • [ ] ParseResult::from(Some(Default::default()))
    • [ ] ParseResult::new()
  • [ ] create tests if they aren't caught

ASuciuX avatar Jun 04 '24 15:06 ASuciuX