mirror of
https://github.com/unclebob/mutator.git
synced 2026-11-26 18:58:50 +00:00
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]>