Mutation Testing Analysis
Target: $1
Since we can't run Stryker/mutmut directly, do a manual mutation analysis:
- Read the source file and its test file.
- Apply common mutations mentally and check if existing tests would catch them:
- Change
>to>=(boundary condition) - Negate boolean conditions (
!) - Remove a function call
- Change
&&to|| - Return early / return null instead of computed value
- Off-by-one in loops
- For each mutation that would NOT be caught:
- Describe the mutation
- Explain why it would go undetected
- Write a test that catches it
- Report:
Surviving mutations found: N
Tests added: N
Estimated mutation score: X% → Y%