about summary refs log tree commit diff
path: root/tests/coverage/bad_counter_ids.cov-map
AgeCommit message (Collapse)AuthorLines
2025-05-06coverage: Only merge adjacent coverage spansZalathar-32/+56
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-8/+8
2025-04-01coverage: Don't split bang-macro spans, just truncate themZalathar-8/+8
2025-02-13coverage: Eliminate more counters by giving them to unreachable nodesZalathar-9/+9
When preparing a function's coverage counters and metadata during codegen, any part of the original coverage graph that was removed by MIR optimizations can be treated as having an execution count of zero. Somewhat counter-intuitively, if we give those unreachable nodes a _higher_ priority for receiving physical counters (instead of counter expressions), that ends up reducing the total number of physical counters needed. This works because if a node is unreachable, we don't actually create a physical counter for it. Instead that node gets a fixed zero counter, and any other node that would have relied on that physical counter in its counter expression can just ignore that term completely.
2025-02-06coverage: Don't create counters for code that was removed by MIR optsZalathar-15/+9
2024-12-23Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, ↵Zalathar-16/+16
r=wesleywiser" This reverts commit 1d35638dc38dbfbf1cc2a9823135dfcf3c650169, reversing changes made to f23a80a4c2fbca593b64e70f5970368824b4c5e9.
2024-12-16Stabilize #[coverage] attributeltdk-16/+16
2024-10-11coverage: Include the highest counter ID seen in `.cov-map` dumpsZalathar-0/+8
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-02-02coverage: Use normal `edition:` headers in coverage testsZalathar-16/+16
Some of these tests were originally written as part of a custom `run-make` test, so at that time they weren't able to use the normal compiletest header directive parser. Now that they're properly integrated, there's no need for them to use `compile-flags` to specify the edition, since they can use `edition` instead.
2024-01-22coverage: Don't instrument `#[automatically_derived]` functionsZalathar-16/+0
2023-11-07coverage: Migrate `tests/coverage-map` into `tests/coverage`Zalathar-0/+98