Skip to content

Commit 515dbe7

Browse files
update rustdoc coverage tests with new table layout
1 parent 74cf1ad commit 515dbe7

File tree

8 files changed

+51
-80
lines changed

8 files changed

+51
-80
lines changed
+7-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
+---------------------------+------------+------------+------------+
2-
| Item Type | Documented | Total | Percentage |
3-
+---------------------------+------------+------------+------------+
4-
| Modules | 1 | 1 | 100.0% |
5-
| Functions | 1 | 2 | 50.0% |
6-
| Structs | 1 | 2 | 50.0% |
7-
| Struct Fields | 0 | 1 | 0.0% |
8-
| Enums | 0 | 1 | 0.0% |
9-
| Enum Variants | 2 | 3 | 66.7% |
10-
| Methods | 1 | 2 | 50.0% |
11-
| Macros | 1 | 1 | 100.0% |
12-
| Extern Types | 0 | 1 | 0.0% |
13-
+---------------------------+------------+------------+------------+
14-
| Total | 7 | 14 | 50.0% |
15-
+---------------------------+------------+------------+------------+
1+
+-------------------------------------+------------+------------+------------+
2+
| File | Documented | Total | Percentage |
3+
+-------------------------------------+------------+------------+------------+
4+
| ...est/rustdoc-ui/coverage/basic.rs | 7 | 14 | 50.0% |
5+
+-------------------------------------+------------+------------+------------+
6+
| Total | 7 | 14 | 50.0% |
7+
+-------------------------------------+------------+------------+------------+
+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
+---------------------------+------------+------------+------------+
2-
| Item Type | Documented | Total | Percentage |
3-
+---------------------------+------------+------------+------------+
4-
| Modules | 0 | 1 | 0.0% |
5-
+---------------------------+------------+------------+------------+
6-
| Total | 0 | 1 | 0.0% |
7-
+---------------------------+------------+------------+------------+
1+
+-------------------------------------+------------+------------+------------+
2+
| File | Documented | Total | Percentage |
3+
+-------------------------------------+------------+------------+------------+
4+
| ...est/rustdoc-ui/coverage/empty.rs | 0 | 1 | 0.0% |
5+
+-------------------------------------+------------+------------+------------+
6+
| Total | 0 | 1 | 0.0% |
7+
+-------------------------------------+------------+------------+------------+
+7-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
+---------------------------+------------+------------+------------+
2-
| Item Type | Documented | Total | Percentage |
3-
+---------------------------+------------+------------+------------+
4-
| Modules | 1 | 1 | 100.0% |
5-
| Struct Fields | 1 | 2 | 50.0% |
6-
| Enums | 2 | 2 | 100.0% |
7-
| Enum Variants | 2 | 3 | 66.7% |
8-
+---------------------------+------------+------------+------------+
9-
| Total | 6 | 8 | 75.0% |
10-
+---------------------------+------------+------------+------------+
1+
+-------------------------------------+------------+------------+------------+
2+
| File | Documented | Total | Percentage |
3+
+-------------------------------------+------------+------------+------------+
4+
| ...est/rustdoc-ui/coverage/enums.rs | 6 | 8 | 75.0% |
5+
+-------------------------------------+------------+------------+------------+
6+
| Total | 6 | 8 | 75.0% |
7+
+-------------------------------------+------------+------------+------------+
+8-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
+---------------------------+------------+------------+------------+
2-
| Item Type | Documented | Total | Percentage |
3-
+---------------------------+------------+------------+------------+
4-
| Modules | 1 | 1 | 100.0% |
5-
| Primitives | 1 | 1 | 100.0% |
6-
| Keywords | 1 | 1 | 100.0% |
7-
+---------------------------+------------+------------+------------+
8-
| Total | 3 | 3 | 100.0% |
9-
+---------------------------+------------+------------+------------+
1+
+-------------------------------------+------------+------------+------------+
2+
| File | Documented | Total | Percentage |
3+
+-------------------------------------+------------+------------+------------+
4+
| ...st/rustdoc-ui/coverage/exotic.rs | 1 | 1 | 100.0% |
5+
| <anon> | 2 | 2 | 100.0% |
6+
+-------------------------------------+------------+------------+------------+
7+
| Total | 3 | 3 | 100.0% |
8+
+-------------------------------------+------------+------------+------------+
+7-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
+---------------------------+------------+------------+------------+
2-
| Item Type | Documented | Total | Percentage |
3-
+---------------------------+------------+------------+------------+
4-
| Modules | 1 | 2 | 50.0% |
5-
| Functions | 1 | 2 | 50.0% |
6-
| Structs | 1 | 1 | 100.0% |
7-
| Struct Fields | 1 | 2 | 50.0% |
8-
+---------------------------+------------+------------+------------+
9-
| Total | 4 | 7 | 57.1% |
10-
+---------------------------+------------+------------+------------+
1+
+-------------------------------------+------------+------------+------------+
2+
| File | Documented | Total | Percentage |
3+
+-------------------------------------+------------+------------+------------+
4+
| ...t/rustdoc-ui/coverage/private.rs | 4 | 7 | 57.1% |
5+
+-------------------------------------+------------+------------+------------+
6+
| Total | 4 | 7 | 57.1% |
7+
+-------------------------------------+------------+------------+------------+
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
+---------------------------+------------+------------+------------+
2-
| Item Type | Documented | Total | Percentage |
3-
+---------------------------+------------+------------+------------+
4-
| Modules | 1 | 1 | 100.0% |
5-
| Structs | 0 | 1 | 0.0% |
6-
| Traits | 1 | 1 | 100.0% |
7-
| Associated Constants | 2 | 2 | 100.0% |
8-
| Statics | 1 | 1 | 100.0% |
9-
| Constants | 1 | 1 | 100.0% |
10-
+---------------------------+------------+------------+------------+
11-
| Total | 6 | 7 | 85.7% |
12-
+---------------------------+------------+------------+------------+
1+
+-------------------------------------+------------+------------+------------+
2+
| File | Documented | Total | Percentage |
3+
+-------------------------------------+------------+------------+------------+
4+
| ...oc-ui/coverage/statics-consts.rs | 6 | 7 | 85.7% |
5+
+-------------------------------------+------------+------------+------------+
6+
| Total | 6 | 7 | 85.7% |
7+
+-------------------------------------+------------+------------+------------+

src/test/rustdoc-ui/coverage/traits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct SomeStruct;
2020

2121
/// ...and slap this trait on it?
2222
impl ThisTrait for SomeStruct {
23-
/// what we get is a perfect combo!
23+
/// nothing! trait impls are totally ignored in this calculation, sorry.
2424
fn right_here(&self) {}
2525

2626
type SomeType = String;
+7-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
+---------------------------+------------+------------+------------+
2-
| Item Type | Documented | Total | Percentage |
3-
+---------------------------+------------+------------+------------+
4-
| Modules | 0 | 1 | 0.0% |
5-
| Structs | 1 | 1 | 100.0% |
6-
| Traits | 1 | 1 | 100.0% |
7-
| Trait Methods | 2 | 2 | 100.0% |
8-
| Associated Types | 1 | 1 | 100.0% |
9-
| Trait Aliases | 1 | 1 | 100.0% |
10-
+---------------------------+------------+------------+------------+
11-
| Total (non trait impls) | 6 | 7 | 85.7% |
12-
+---------------------------+------------+------------+------------+
13-
| Trait Impl Items | 2 | 3 | 66.7% |
14-
+---------------------------+------------+------------+------------+
15-
| Total | 8 | 10 | 80.0% |
16-
+---------------------------+------------+------------+------------+
1+
+-------------------------------------+------------+------------+------------+
2+
| File | Documented | Total | Percentage |
3+
+-------------------------------------+------------+------------+------------+
4+
| ...st/rustdoc-ui/coverage/traits.rs | 6 | 7 | 85.7% |
5+
+-------------------------------------+------------+------------+------------+
6+
| Total | 6 | 7 | 85.7% |
7+
+-------------------------------------+------------+------------+------------+

0 commit comments

Comments
 (0)