Update coverage-run-rustdoc
output
This commit is contained in:
parent
5d274408d4
commit
87d524bef6
1 changed files with 8 additions and 8 deletions
|
@ -58,21 +58,21 @@ $DIR/doctest.rs:
|
|||
LL| |//!
|
||||
LL| |//! doctest with custom main:
|
||||
LL| |//! ```
|
||||
LL| 1|//! fn some_func() {
|
||||
LL| 1|//! println!("called some_func()");
|
||||
LL| 1|//! }
|
||||
LL| |//!
|
||||
LL| |//! #[derive(Debug)]
|
||||
LL| |//! struct SomeError;
|
||||
LL| |//! fn some_func() {
|
||||
LL| |//! println!("called some_func()");
|
||||
LL| |//! }
|
||||
LL| 1|//!
|
||||
LL| 1|//! #[derive(Debug)]
|
||||
LL| 1|//! struct SomeError;
|
||||
LL| |//!
|
||||
LL| |//! extern crate doctest_crate;
|
||||
LL| |//!
|
||||
LL| 1|//! fn doctest_main() -> Result<(), SomeError> {
|
||||
LL| |//! fn doctest_main() -> Result<(), SomeError> {
|
||||
LL| 1|//! some_func();
|
||||
LL| 1|//! doctest_crate::fn_run_in_doctests(2);
|
||||
LL| 1|//! Ok(())
|
||||
LL| 1|//! }
|
||||
LL| |//!
|
||||
LL| 1|//!
|
||||
LL| |//! // this `main` is not shown as covered, as it clashes with all the other
|
||||
LL| |//! // `main` functions that were automatically generated for doctests
|
||||
LL| |//! fn main() -> Result<(), SomeError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue