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 `()`.
This commit is contained in:
parent
75af3c58f9
commit
cd9021e8cb
10 changed files with 29 additions and 33 deletions
|
@ -27,14 +27,6 @@ Number of file 0 mappings: 9
|
|||
- Code(Expression(5, Add)) at (prev + 2, 5) to (start + 1, 2)
|
||||
= (c4 + ((((c0 + c1) - c1) - c2) + c3))
|
||||
|
||||
Function name: unicode::サビ
|
||||
Raw bytes (9): 0x[01, 01, 00, 01, 01, 1e, 14, 00, 18]
|
||||
Number of files: 1
|
||||
- file 0 => global file 1
|
||||
Number of expressions: 0
|
||||
Number of file 0 mappings: 1
|
||||
- Code(Counter(0)) at (prev + 30, 20) to (start + 0, 24)
|
||||
|
||||
Function name: unicode::他 (unused)
|
||||
Raw bytes (9): 0x[01, 01, 00, 01, 00, 1e, 19, 00, 25]
|
||||
Number of files: 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue