Commit Graph

4 Commits

Author SHA1 Message Date
Zalathar d01df6f9aa coverage: Simplify counter expressions using simple algebra
Some of these cases currently don't occur in practice, but are included for
completeness, and to avoid having to add them later as branch coverage and
MC/DC coverage start building more complex expressions.
2024-05-14 13:58:40 +10:00
Zalathar cd9021e8cb coverage: Discard spans that fill the entire function body
When we try to extract coverage-relevant spans from MIR, sometimes we see MIR
statements/terminators whose spans cover the entire function body. Those spans
tend to be unhelpful for coverage purposes, because they often represent
compiler-inserted code, e.g. the implicit return value of `()`.
2024-02-16 10:57:03 +11:00
Zalathar 6971e9332d coverage: `llvm-cov` expects column numbers to be bytes, not code points 2024-01-08 21:58:46 +11:00
Zalathar 585a285619 coverage: Test for column numbers involving non-ASCII characters 2024-01-08 21:43:22 +11:00