TheLostLambda / pgfinder-next

GNU Affero General Public License v3.0
0 stars 1 forks source link

Missing test cases found by `cargo-mutants` #3

Open TheLostLambda opened 6 months ago

TheLostLambda commented 6 months ago

Only tested the polychem crate so far, but:

> cargo mutants
Found 361 mutants to test
ok       Unmutated baseline in 13.0s build + 3.9s test
 INFO Auto-set test timeout to 20s
MISSED   src/atoms/chemical_composition.rs:84:9: replace <impl Hash for ChemicalComposition<'_>>::hash with () in 2.6s build + 1.5s test
MISSED   src/polymers/residue.rs:51:9: replace Residue<'a, 'p>::abbr -> &'p str with "xyzzy" in 2.5s build + 1.5s test
MISSED   src/polymers/residue.rs:51:9: replace Residue<'a, 'p>::abbr -> &'p str with "" in 3.6s build + 2.2s test
MISSED   src/atoms/chemical_composition.rs:44:26: replace * with / in <impl Charged for ChemicalComposition<'_>>::charge in 2.8s build + 1.6s test
361 mutants tested in 14m 33s: 4 missed, 172 caught, 185 unviable

With colour: image

So that's 4 missing test cases to deal with!

TheLostLambda commented 5 months ago

After a patch to cargo-mutants, I could run things for the whole workspace! image