coverage: Copy all remaining coverage-map tests into run-coverage

This commit is contained in:
Zalathar 2023-10-28 21:27:23 +11:00
parent f5df56b26b
commit 4b76b97bc8
4 changed files with 308 additions and 0 deletions

View File

@ -0,0 +1,151 @@
LL| |// compile-flags: --edition=2021
LL| |// ignore-tidy-linelength
LL| |
LL| |// This file deliberately contains line and column numbers larger than 127,
LL| |// to verify that `coverage-dump`'s ULEB128 parser can handle them.
LL| |
LL| 1|fn main() {
LL| 1| wide_function();
LL| 1| long_function();
LL| 1| far_function();
LL| 1|}
LL| |
LL| |#[rustfmt::skip]
LL| 1|fn wide_function() { /* */ (); }
LL| |
LL| 1|fn long_function() {
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1| //
LL| 1|}
LL| |
LL| 1|fn far_function() {}

View File

@ -0,0 +1,150 @@
// compile-flags: --edition=2021
// ignore-tidy-linelength
// This file deliberately contains line and column numbers larger than 127,
// to verify that `coverage-dump`'s ULEB128 parser can handle them.
fn main() {
wide_function();
long_function();
far_function();
}
#[rustfmt::skip]
fn wide_function() { /* */ (); }
fn long_function() {
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
}
fn far_function() {}

View File

@ -0,0 +1,4 @@
LL| |// compile-flags: --edition=2021
LL| |
LL| 1|fn main() {}

View File

@ -0,0 +1,3 @@
// compile-flags: --edition=2021
fn main() {}