mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Update coverage-run-rustdoc output
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user