Zalathar
26cea8a286
coverage: Don't split bang-macro spans, just truncate them
2025-04-01 13:13:21 +11:00
Zalathar
87c2f9a5be
Revert "Auto merge of #130766 - clarfonthey:stable-coverage-attribute, r=wesleywiser"
...
This reverts commit 1d35638dc3
, reversing
changes made to f23a80a4c2
.
2024-12-23 12:30:37 +11:00
ltdk
cb487cc2fa
Stabilize #[coverage] attribute
2024-12-16 21:07:06 -05:00
Zalathar
ac815ff6b0
coverage: Prefer to visit nodes whose predecessors have been visited
2024-12-07 12:13:12 +11:00
Eric Holk
72ce1ab42f
Stabilize noop_waker
...
Co-authored-by: zachs18 <8355914+zachs18@users.noreply.github.com>
2024-12-05 14:14:17 -08:00
Zalathar
44e4e4515c
coverage: Add an extra "transcribe" step after counter creation
2024-12-04 17:50:52 +11:00
Zalathar
599f95ecc2
coverage: Include the highest counter ID seen in .cov-map
dumps
...
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-10-11 21:04:37 +11:00
Ralf Jung
7d63efdb8c
fix GVN trying to transmute pointers to integers
2024-10-05 17:55:23 +02:00
Zalathar
e96b4e479a
coverage: Extract executor::block_on
from several async coverage tests
...
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-10 16:08:36 +10:00
Zalathar
63c04f05e6
coverage: Extract hole spans from HIR instead of MIR
...
This makes it possible to treat more kinds of nested item/code as holes,
instead of being restricted to closures.
2024-07-08 21:22:56 +10:00
Scott McMurray
49d353bb9f
Update coverage maps in tests
2024-06-22 21:37:26 -07:00
Scott McMurray
4341cb709d
I'd never even heard of a coverage map
2024-06-20 22:16:59 -07:00
Zalathar
6d1557f268
coverage: Use hole spans to carve up coverage spans into separate buckets
...
This performs the same task as the hole-carving code in the main span refiner,
but in a separate earlier pass.
2024-06-04 13:51:08 +10:00
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
ec91209f96
coverage: Eagerly deduplicate covspans with the same span
2024-02-21 21:25:35 +11:00
Zalathar
dd6d7f27e4
coverage: Make unexpansion of closure bodies more precise
...
This improves the coverage instrumentation of closures declared in macros, as
seen in `closure_macro.rs` and `closure_macro_async.rs`.
2024-02-05 10:09:46 +11:00
Zalathar
99797bbd9f
coverage: Format all remaining tests
...
These tests can simply be reformatted as normal, because the resulting changes
are unimportant.
2024-01-18 10:42:37 +11:00
Zalathar
5764ccc5e8
coverage: Use Waker::noop
in async tests
2023-12-15 17:17:20 +11:00
Zalathar
49127c64d6
coverage: Migrate tests/coverage-map
into tests/coverage
2023-11-07 11:15:19 +11:00