1
Fork 0

coverage: Migrate tests/run-coverage into tests/coverage

This commit is contained in:
Zalathar 2023-11-01 21:26:53 +11:00
parent aea7c27eae
commit e9d04c5e24
105 changed files with 7 additions and 9 deletions

View file

@ -0,0 +1,11 @@
LL| |// Verify that the entry point injected by the test harness doesn't cause
LL| |// weird artifacts in the coverage report (e.g. issue #10749).
LL| |
LL| |// compile-flags: --test
LL| |
LL| |#[allow(dead_code)]
LL| 0|fn unused() {}
LL| |
LL| 1|#[test]
LL| 1|fn my_test() {}