stacks-core
stacks-core copied to clipboard
Mutation Tests clarity/src/vm/ast/sugar_expander/mod.rs > transform
Related #4587
The mutation testing highlighted there might be missing unit tests for transform
but there needs to be created a default for SymbolicExpression
to check it.
The steps for making sure the transform
function has its possible outcomes caught are:
- [ ] create default for
SymbolicExpression
- [ ] remove the skip header
- [ ] then check if mutation tests are caught for these cases:
- [ ] run
RUST_BACKTRACE=1 BITCOIND_TEST=1 cargo mutants -vV -F "replace SugarExpander::transform" -E ": replace .{1,2} with .{1,2} in " --baseline=skip --test-tool=nextest -- --run-ignored all --no-fail-fast --test-threads 1
- [ ] ParseResult::from(vec![Default::default()])
- [ ] ParseResult::from(vec![])
- [ ] ParseResult::new()
- [ ] ParseResult::from_iter([vec![Default::default()]])
- [ ] ParseResult::new(vec![Default::default()])
- [ ] ParseResult::new(vec![])
- [ ] ParseResult::from_iter([vec![]])
- [ ] Or keep the skip and remove the comment
- [ ] create tests if they aren't caught