Files
mutator/tests
Cursor AgentandRobert C. Martin 3f6dc5bb7c Read Swift coverage from the reports crapper already parses.
llvm-cov JSON and xccov JSON land in target/coverage/swift. crapper
turns those into regions or function summaries. A region with a hit
marks that line covered. An xccov summary has no lines, so the function
line is covered when the summary's covered count is above zero. A file
missing from the report stays uncovered and is not run.

Proved by tests/test_coverage.py, which failed first because a Swift
file with a report still returned no lines, and by a scan that marks
an unhit line uncovered. The reports are the same JSON shapes crapper
reads; mutator does not parse them itself.

Co-authored-by: Robert C. Martin <[email protected]>
2026-11-26 00:00:50 +00:00
..