Commit ce1f6d6
test: 100% mutation coverage for agent loop — 7 new tests kill all 28 mutants
Strengthened TDD tests to catch remaining cargo-mutants survivors:
- Verify correct tool dispatch by checking actual tool output (not just events)
- MaxTokens stop_reason with ToolUse content exits without executing tools
- LoopFinished event fields asserted for EndTurn, empty_tool_calls, and token_budget paths
- Empty tool_calls and token budget exit paths verify iteration counts
Result: 31 mutants tested, 28 caught, 3 unviable, 0 missed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 055afd6 commit ce1f6d6
3 files changed
Lines changed: 849 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
606 | 606 | | |
607 | 607 | | |
608 | 608 | | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
609 | 639 | | |
0 commit comments