File tree Expand file tree Collapse file tree 5 files changed +71
-2
lines changed
src/test/rustdoc-ui/coverage Expand file tree Collapse file tree 5 files changed +71
-2
lines changed Original file line number Diff line number Diff line change 1+ // compile-flags:-Z unstable-options --show-coverage
2+ // check-pass
3+
4+ // The point of this test is to ensure that the number of "documented" items
5+ // is higher than in `enum-tuple.rs`.
6+
7+ //! (remember the crate root is still a module)
8+
9+ /// so check out this enum here
10+ pub enum ThisEnum {
11+ /// VarOne.
12+ VarOne (
13+ /// hello!
14+ String ,
15+ ) ,
16+ /// Var Two.
17+ VarTwo (
18+ /// Hello
19+ String ,
20+ /// Bis repetita.
21+ String ,
22+ ) ,
23+ }
24+
25+ /// Struct.
26+ pub struct ThisStruct (
27+ /// hello
28+ u32 ,
29+ ) ;
30+
31+ /// Struct.
32+ pub struct ThisStruct2 (
33+ /// hello
34+ u32 ,
35+ /// Bis repetita.
36+ u8 ,
37+ ) ;
Original file line number Diff line number Diff line change 1+ +-------------------------------------+------------+------------+------------+------------+
2+ | File | Documented | Percentage | Examples | Percentage |
3+ +-------------------------------------+------------+------------+------------+------------+
4+ | ...overage/enum-tuple-documented.rs | 9 | 100.0% | 0 | 0.0% |
5+ +-------------------------------------+------------+------------+------------+------------+
6+ | Total | 9 | 100.0% | 0 | 0.0% |
7+ +-------------------------------------+------------+------------+------------+------------+
Original file line number Diff line number Diff line change 1+ // compile-flags:-Z unstable-options --show-coverage
2+ // check-pass
3+
4+ //! (remember the crate root is still a module)
5+
6+ /// so check out this enum here
7+ pub enum ThisEnum {
8+ /// No need to document the field if there is only one in a tuple variant!
9+ VarOne ( String ) ,
10+ /// But if there is more than one... still fine!
11+ VarTwo ( String , String ) ,
12+ }
13+
14+ /// Struct.
15+ pub struct ThisStruct ( u32 ) ;
16+
17+ /// Struct.
18+ pub struct ThisStruct2 ( u32 , u8 ) ;
Original file line number Diff line number Diff line change 1+ +-------------------------------------+------------+------------+------------+------------+
2+ | File | Documented | Percentage | Examples | Percentage |
3+ +-------------------------------------+------------+------------+------------+------------+
4+ | ...ustdoc-ui/coverage/enum-tuple.rs | 6 | 100.0% | 0 | 0.0% |
5+ +-------------------------------------+------------+------------+------------+------------+
6+ | Total | 6 | 100.0% | 0 | 0.0% |
7+ +-------------------------------------+------------+------------+------------+------------+
Original file line number Diff line number Diff line change 11+-------------------------------------+------------+------------+------------+------------+
22| File | Documented | Percentage | Examples | Percentage |
33+-------------------------------------+------------+------------+------------+------------+
4- | ...est/rustdoc-ui/coverage/enums.rs | 6 | 66.7 % | 0 | 0.0% |
4+ | ...est/rustdoc-ui/coverage/enums.rs | 6 | 75.0 % | 0 | 0.0% |
55+-------------------------------------+------------+------------+------------+------------+
6- | Total | 6 | 66.7 % | 0 | 0.0% |
6+ | Total | 6 | 75.0 % | 0 | 0.0% |
77+-------------------------------------+------------+------------+------------+------------+
You can’t perform that action at this time.
0 commit comments