about summary refs log tree commit diff
path: root/tests/coverage/unused_mod.coverage
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-11-01 21:26:53 +1100
committerZalathar <Zalathar@users.noreply.github.com>2023-11-07 11:15:19 +1100
commite9d04c5e2444526ffde83662f2d57fa35c772891 (patch)
tree6dbc04c3253992f8968d5914d7b1c631db528892 /tests/coverage/unused_mod.coverage
parentaea7c27eae5e34b11c64ec6d11c75627ef24f8b1 (diff)
downloadrust-e9d04c5e2444526ffde83662f2d57fa35c772891.tar.gz
rust-e9d04c5e2444526ffde83662f2d57fa35c772891.zip
coverage: Migrate `tests/run-coverage` into `tests/coverage`
Diffstat (limited to 'tests/coverage/unused_mod.coverage')
-rw-r--r--tests/coverage/unused_mod.coverage14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/coverage/unused_mod.coverage b/tests/coverage/unused_mod.coverage
new file mode 100644
index 00000000000..a8fa24ac6a7
--- /dev/null
+++ b/tests/coverage/unused_mod.coverage
@@ -0,0 +1,14 @@
+$DIR/auxiliary/unused_mod_helper.rs:
+   LL|       |#[allow(dead_code)]
+   LL|      0|pub fn never_called_function() {
+   LL|      0|    println!("I am never called");
+   LL|      0|}
+
+$DIR/unused_mod.rs:
+   LL|       |#[path = "auxiliary/unused_mod_helper.rs"]
+   LL|       |mod unused_module;
+   LL|       |
+   LL|      1|fn main() {
+   LL|      1|    println!("hello world!");
+   LL|      1|}
+