Skip to content

Commit 15d25a8

Browse files
Add test for ignored private doc test
1 parent 2e7ca73 commit 15d25a8

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
+-------------------------------------+------------+------------+------------+------------+
22
| File | Documented | Percentage | Examples | Percentage |
33
+-------------------------------------+------------+------------+------------+------------+
4-
| ...tdoc-ui/coverage/doc-examples.rs | 4 | 100.0% | 2 | 50.0% |
4+
| ...tdoc-ui/coverage/doc-examples.rs | 4 | 100.0% | 1 | 25.0% |
55
+-------------------------------------+------------+------------+------------+------------+
6-
| Total | 4 | 100.0% | 2 | 50.0% |
6+
| Total | 4 | 100.0% | 1 | 25.0% |
77
+-------------------------------------+------------+------------+------------+------------+
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// check-pass
2+
3+
#![deny(private_doc_tests)]
4+
5+
mod foo {
6+
/// private doc test
7+
///
8+
/// ```ignore (used for testing ignored doc tests)
9+
/// assert!(false);
10+
/// ```
11+
fn bar() {}
12+
}

0 commit comments

Comments
 (0)