File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
tests/coverage-run-rustdoc Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -58,21 +58,21 @@ $DIR/doctest.rs:
5858 LL| |//!
5959 LL| |//! doctest with custom main:
6060 LL| |//! ```
61- LL| 1 |//! fn some_func() {
62- LL| 1 |//! println!("called some_func()");
63- LL| 1 |//! }
64- LL| |//!
65- LL| |//! #[derive(Debug)]
66- LL| |//! struct SomeError;
61+ LL| |//! fn some_func() {
62+ LL| |//! println!("called some_func()");
63+ LL| |//! }
64+ LL| 1 |//!
65+ LL| 1 |//! #[derive(Debug)]
66+ LL| 1 |//! struct SomeError;
6767 LL| |//!
6868 LL| |//! extern crate doctest_crate;
6969 LL| |//!
70- LL| 1 |//! fn doctest_main() -> Result<(), SomeError> {
70+ LL| |//! fn doctest_main() -> Result<(), SomeError> {
7171 LL| 1|//! some_func();
7272 LL| 1|//! doctest_crate::fn_run_in_doctests(2);
7373 LL| 1|//! Ok(())
7474 LL| 1|//! }
75- LL| |//!
75+ LL| 1 |//!
7676 LL| |//! // this `main` is not shown as covered, as it clashes with all the other
7777 LL| |//! // `main` functions that were automatically generated for doctests
7878 LL| |//! fn main() -> Result<(), SomeError> {
You can’t perform that action at this time.
0 commit comments