code-coverage-analysis
Installation
SKILL.md
Code Coverage Analysis
Coverage tells you what is definitely not tested, never what is well tested. Use it to find holes, not as a target to game.
Metric ladder
| Metric | Meaning | Use |
|---|---|---|
| Line/statement | executed lines | baseline |
| Branch | each if/else/case taken both ways | preferred default |
| Function/method | each function called | API surface |
| Condition / MC/DC | each boolean sub-condition affects outcome | safety-critical (DO-178C, ISO 26262) |
| Diff / patch | coverage of changed lines only | best PR gate |
| Mutation score | do tests detect changes | quality proof (mutation-testing) |