Commit 5245458
Tamas Vajk
Respect --instrumentation_filter for Rust coverage
Previously, all Rust targets were instrumented with
-Cinstrument-coverage when running `bazel coverage`, regardless of
--instrumentation_filter. This differs from how coverage works for
Java and C++ targets, where only targets matching the filter are
instrumented.
Add ctx.coverage_instrumented() check so that Rust coverage respects
the same filter, reducing unnecessary recompilation and keeping
coverage reports focused on the code under test.1 parent f31db8b commit 5245458
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | | - | |
1224 | | - | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
1225 | 1227 | | |
1226 | 1228 | | |
1227 | 1229 | | |
| |||
0 commit comments