about summary refs log tree commit diff
path: root/tests/coverage/async.cov-map
AgeCommit message (Collapse)AuthorLines
2025-09-01pub async fn implementation coroutine (func::{closure#0}) is monomorphized, ↵Andrew Zhogin-4/+4
when func itself is monomorphized
2025-05-06coverage: Only merge adjacent coverage spansZalathar-73/+108
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-25/+25
2025-01-16coverage: Completely overhaul counter assignment, using node-flow graphsZalathar-21/+26
2024-12-23Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, ↵Zalathar-50/+50
r=wesleywiser" This reverts commit 1d35638dc38dbfbf1cc2a9823135dfcf3c650169, reversing changes made to f23a80a4c2fbca593b64e70f5970368824b4c5e9.
2024-12-16Stabilize #[coverage] attributeltdk-50/+50
2024-12-05Stabilize noop_wakerEric Holk-50/+50
Co-authored-by: zachs18 <8355914+zachs18@users.noreply.github.com>
2024-12-04coverage: Add an extra "transcribe" step after counter creationZalathar-15/+12
2024-10-11coverage: Include the highest counter ID seen in `.cov-map` dumpsZalathar-0/+25
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-09-10coverage: Extract `executor::block_on` from several async coverage testsZalathar-50/+50
By moving `block_on` to an auxiliary crate, we avoid having to keep a separate copy of it in every async test. (This also incorporates some small tweaks to the headers in `await_ready.rs`.)
2024-09-06coverage: Treat await similar to a macroJonathan Conder-27/+21
Currently `await` is only counted towards coverage if the containing function is suspended and resumed at least once. This is because it expands to code which contains a branch on the discriminant of `Poll`. By treating it like a branching macro (e.g. `assert!`), these implementation details will be hidden from the coverage results.
2024-07-08coverage: Extract hole spans from HIR instead of MIRZalathar-20/+21
This makes it possible to treat more kinds of nested item/code as holes, instead of being restricted to closures.
2024-05-14coverage: Simplify counter expressions using simple algebraZalathar-10/+6
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-01-16coverage: Add `#[rustfmt::skip]` to tests with non-standard formattingZalathar-50/+50
These tests deliberately use non-standard formatting, so that the line execution counts reported by `llvm-cov` reveal additional information about where code regions begin and end.
2023-12-15coverage: Use `Waker::noop` in async testsZalathar-102/+50
2023-12-03coverage: Skip spans that can't be un-expanded back to the function bodyZalathar-6/+6
When we extract coverage spans from MIR, we try to "un-expand" them back to spans that are inside the function's body span. In cases where that doesn't succeed, the current code just swaps in the entire body span instead. But that tends to result in coverage spans that are completely unrelated to the control flow of the affected code, so it's better to just discard those spans.
2023-11-25coverage: Simplify building coverage expressions based on sumsZalathar-14/+14
In some cases we need to prepare a coverage expression that is the sum of an arbitrary number of other terms. This patch simplifies the code paths that build those sums. This causes some churn in the mappings, because the previous code was building its sums in a somewhat idiosyncratic order.
2023-11-07coverage: Migrate `tests/coverage-map` into `tests/coverage`Zalathar-0/+326