Files
claude-code d441b059af
werkator build succeeded after 03:23
werkator/publish build succeeded after 00:21
Example reports with every state of a method (0.26.10) (#65)
Co-authored-by: claude-code <claude-code@javagil.de>
2026-10-11 18:02:48 +02:00

21 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Example Reports
`mutation-crap.json` and `mutation-crap.md` are the reports of a small analysis with every state a method can have,
as werkcrappit 0.26.10 writes them, with the default policy `timeouts-killed-v1`.
`ExampleReportsTest` writes them with the real writers and fails when they differ from what the code writes;
`WERKCRAPPIT_WRITE_EXAMPLES=true ./gradlew :werkcrappit-pit:test --tests '*ExampleReportsTest'` writes them anew.
| Method | State | Why |
| --- | --- | --- |
| `demo.Classifier.classify` | `SCORED`, 22.5 | complexity 10, 5 of 10 mutants killed: 100 × 0.125 + 10 |
| `demo.Classifier.normalize` | `SCORED`, 1 | complexity 1, its one mutant killed |
| `demo.Classifier.describe` | `NO_MUTATION_RESULTS` | PIT made no mutant for it |
| `demo.Classifier.compare` | `NO_ELIGIBLE_MUTANTS` | its only mutants are `NON_VIABLE` |
| `demo.Classifier.retry` | `INCONCLUSIVE` | one `RUN_ERROR` takes the score of the whole method away |
| `demo.Grade.values` | `EXCLUDED` | JaCoCo filters the generated method of an enum |
| `demo.Legacy.run` | `COMPLEXITY_UNAVAILABLE` | PIT has a mutant, but the method is in no class file read |
The class `demo.Classifier` has two groups of methods, LCOM4 2.
It has no change risk, as one of its methods has no score: `method-not-scored:retry(I)I`.
[metric.md](../metric.md) explains the values.