about summary refs log tree commit diff
path: root/tests/coverage/attr
AgeCommit message (Collapse)AuthorLines
2025-05-06coverage: Only merge adjacent coverage spansZalathar-41/+60
This also removes some manipulation of the function signature span that only made sense in the context of merging non-adjacent spans.
2025-05-06coverage-dump: Dump filenames instead of global file IDs (and bless)Zalathar-12/+12
2025-04-01coverage: Shrink call spans to just the function nameZalathar-6/+6
This is a way to shrink call spans that doesn't involve mixing different spans, and avoids overlap with argument spans. This patch also removes some low-value comments that were causing rustfmt to ignore the match arms.
2024-12-24Add a test for coverage attr on trait functionEric Huss-0/+60
2024-12-23Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, ↵Zalathar-20/+26
r=wesleywiser" This reverts commit 1d35638dc38dbfbf1cc2a9823135dfcf3c650169, reversing changes made to f23a80a4c2fbca593b64e70f5970368824b4c5e9.
2024-12-18Add reference annotations for the `coverage` attributeEric Huss-22/+30
2024-12-16Stabilize #[coverage] attributeltdk-26/+20
2024-10-11coverage: Include the highest counter ID seen in `.cov-map` dumpsZalathar-0/+11
When making changes that have a large impact on coverage counter creation, this makes it easier to see whether the number of physical counters has changed. (The highest counter ID seen in coverage maps is not necessarily the same as the number of physical counters actually used by the instrumented code, but it's the best approximation we can get from looking only at the coverage maps, and it should be reasonably accurate in most cases.)
2024-07-08coverage: Extract hole spans from HIR instead of MIRZalathar-41/+24
This makes it possible to treat more kinds of nested item/code as holes, instead of being restricted to closures.
2024-06-26coverage: Allow `#[coverage(..)]` on `impl` and `mod`Zalathar-0/+206
These attributes apply to all enclosed functions/methods/closures, unless explicitly overridden by another coverage attribute.
2024-06-26coverage: Apply `#[coverage(..)]` recursively to nested functionsZalathar-132/+42
2024-06-18Add more thorough coverage tests for `#[coverage(..)]` in nested functionsZalathar-0/+468
These tests reflect the current implementation behaviour, which is not necessarily the desired behaviour.