-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add UI regressions tests for rustdoc
--show-coverage
option
- Loading branch information
1 parent
e9161db
commit 0eff07e
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ compile-flags: -Z unstable-options --show-coverage --output-format=json | ||
//@ check-pass | ||
|
||
mod bar { | ||
/// a | ||
/// | ||
/// ``` | ||
/// let x = 0; | ||
/// ``` | ||
pub struct Foo; | ||
} | ||
|
||
pub use bar::Foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"$DIR/show-coverage-json.rs":{"total":2,"with_docs":1,"total_examples":2,"with_examples":1}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ compile-flags: -Z unstable-options --show-coverage | ||
//@ check-pass | ||
|
||
mod bar { | ||
/// a | ||
/// | ||
/// ``` | ||
/// let x = 0; | ||
/// ``` | ||
pub struct Foo; | ||
} | ||
|
||
pub use bar::Foo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...ests/rustdoc-ui/show-coverage.rs | 1 | 50.0% | 1 | 50.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 1 | 50.0% | 1 | 50.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |