Files
crapper/tests/fixtures/swift
Cursor AgentandRobert C. Martin 53865e4a31 Resolve Swift coverage regions through each function's filenames.
llvm-cov region[5] indexes that function's filenames, not unit["files"].
On Apple LLVM 21 those orders differ, so the span covering Place.swift line 5
was stored on test_entry_point.swift and the return stayed uncovered.

Proved by tests/fixtures/swift/function-filenames.json, which failed before
the fix (Place.swift received (1, 1, 1) instead of (4, 5, 1)). 226 pytest
tests passed. crapper worst CRAP on coverage.py is 9.0. dryer found no
candidates at 0.8 in coverage.py. mutator on coverage.py: 237 killed,
0 survived, 0 uncovered.

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