21 lines
1.3 KiB
Markdown
21 lines
1.3 KiB
Markdown
# 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.
|