cargo-mutants icon indicating copy to clipboard operation
cargo-mutants copied to clipboard

Don't mutate fn values for functions entirely composed of skipped statements

Open sourcefrog opened this issue 1 year ago • 0 comments

cargo-mutate reports that a testing utility function I have doesn't affect anything when mutated from a series of assert! macros into (). Maybe it would be possible to ignore this mutation if all of the statements are assert!-family macros (though itertools::assert_equal is in the same boat, just not an official macro).

Originally posted by @mathstuf in https://github.com/sourcefrog/cargo-mutants/issues/301#issuecomment-2445706178

sourcefrog avatar Nov 04 '24 15:11 sourcefrog