1
Fork 0

Update coverage-run-rustdoc output

This commit is contained in:
Guillaume Gomez 2025-03-28 10:35:53 +01:00
parent 5d274408d4
commit 87d524bef6

View file

@ -58,21 +58,21 @@ $DIR/doctest.rs:
LL| |//! LL| |//!
LL| |//! doctest with custom main: LL| |//! doctest with custom main:
LL| |//! ``` LL| |//! ```
LL| 1|//! fn some_func() { LL| |//! fn some_func() {
LL| 1|//! println!("called some_func()"); LL| |//! println!("called some_func()");
LL| 1|//! } LL| |//! }
LL| |//! LL| 1|//!
LL| |//! #[derive(Debug)] LL| 1|//! #[derive(Debug)]
LL| |//! struct SomeError; LL| 1|//! struct SomeError;
LL| |//! LL| |//!
LL| |//! extern crate doctest_crate; LL| |//! extern crate doctest_crate;
LL| |//! LL| |//!
LL| 1|//! fn doctest_main() -> Result<(), SomeError> { LL| |//! fn doctest_main() -> Result<(), SomeError> {
LL| 1|//! some_func(); LL| 1|//! some_func();
LL| 1|//! doctest_crate::fn_run_in_doctests(2); LL| 1|//! doctest_crate::fn_run_in_doctests(2);
LL| 1|//! Ok(()) LL| 1|//! Ok(())
LL| 1|//! } LL| 1|//! }
LL| |//! LL| 1|//!
LL| |//! // this `main` is not shown as covered, as it clashes with all the other 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| |//! // `main` functions that were automatically generated for doctests
LL| |//! fn main() -> Result<(), SomeError> { LL| |//! fn main() -> Result<(), SomeError> {