mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 01:52:51 +00:00
coverage: Copy all remaining coverage-map tests into run-coverage
This commit is contained in:
parent
f5df56b26b
commit
4b76b97bc8
151
tests/run-coverage/long_and_wide.coverage
Normal file
151
tests/run-coverage/long_and_wide.coverage
Normal 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() {}
|
||||
|
150
tests/run-coverage/long_and_wide.rs
Normal file
150
tests/run-coverage/long_and_wide.rs
Normal 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() {}
|
4
tests/run-coverage/trivial.coverage
Normal file
4
tests/run-coverage/trivial.coverage
Normal file
@ -0,0 +1,4 @@
|
||||
LL| |// compile-flags: --edition=2021
|
||||
LL| |
|
||||
LL| 1|fn main() {}
|
||||
|
3
tests/run-coverage/trivial.rs
Normal file
3
tests/run-coverage/trivial.rs
Normal file
@ -0,0 +1,3 @@
|
||||
// compile-flags: --edition=2021
|
||||
|
||||
fn main() {}
|
Loading…
Reference in New Issue
Block a user