diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2024-06-21 21:59:02 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2024-06-26 10:08:05 +1000 |
| commit | 7f37f8af5f067e0f4f8d14adb7d76f013e3c4118 (patch) | |
| tree | bf626edd2d408b287ad5f0ad522162dcdc09c431 /tests/coverage/attr/impl.cov-map | |
| parent | 3262611cc5db7ce83dee4268fb1901311b24e5fc (diff) | |
| download | rust-7f37f8af5f067e0f4f8d14adb7d76f013e3c4118.tar.gz rust-7f37f8af5f067e0f4f8d14adb7d76f013e3c4118.zip | |
coverage: Allow `#[coverage(..)]` on `impl` and `mod`
These attributes apply to all enclosed functions/methods/closures, unless explicitly overridden by another coverage attribute.
Diffstat (limited to 'tests/coverage/attr/impl.cov-map')
| -rw-r--r-- | tests/coverage/attr/impl.cov-map | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/coverage/attr/impl.cov-map b/tests/coverage/attr/impl.cov-map new file mode 100644 index 00000000000..9b0deed8b64 --- /dev/null +++ b/tests/coverage/attr/impl.cov-map @@ -0,0 +1,24 @@ +Function name: <impl::MyStruct>::off_on (unused) +Raw bytes (9): 0x[01, 01, 00, 01, 00, 0e, 05, 00, 13] +Number of files: 1 +- file 0 => global file 1 +Number of expressions: 0 +Number of file 0 mappings: 1 +- Code(Zero) at (prev + 14, 5) to (start + 0, 19) + +Function name: <impl::MyStruct>::on_inherit (unused) +Raw bytes (9): 0x[01, 01, 00, 01, 00, 16, 05, 00, 17] +Number of files: 1 +- file 0 => global file 1 +Number of expressions: 0 +Number of file 0 mappings: 1 +- Code(Zero) at (prev + 22, 5) to (start + 0, 23) + +Function name: <impl::MyStruct>::on_on (unused) +Raw bytes (9): 0x[01, 01, 00, 01, 00, 19, 05, 00, 12] +Number of files: 1 +- file 0 => global file 1 +Number of expressions: 0 +Number of file 0 mappings: 1 +- Code(Zero) at (prev + 25, 5) to (start + 0, 18) + |
