File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -456,6 +456,10 @@ impl RunnableDocTest {
456
456
}
457
457
}
458
458
459
+ /// Execute a `RunnableDoctest`.
460
+ ///
461
+ /// This is the function that calculates the compiler command line, invokes the compiler, then
462
+ /// invokes the test or tests in a separate executable (if applicable).
459
463
fn run_test (
460
464
doctest : RunnableDocTest ,
461
465
rustdoc_options : & RustdocOptions ,
@@ -705,6 +709,15 @@ impl IndividualTestOptions {
705
709
}
706
710
707
711
/// A doctest scraped from the code, ready to be turned into a runnable test.
712
+ ///
713
+ /// The pipeline goes: [`clean`] AST -> `ScrapedDoctest` -> [`RunnableDoctest`].
714
+ /// [`run_merged_tests`] converts a bunch of scraped doctests to a single runnable doctest,
715
+ /// while [`generate_unique_doctest`] does the standalones.
716
+ ///
717
+ /// [`clean`]: crate::clean
718
+ /// [`RunnableDoctest`]: crate::doctest::RunnableDoctest
719
+ /// [`run_merged_tests`]: crate::doctest::runner::DocTestRunner::run_merged_tests
720
+ /// [`generate_unique_doctest`]: crate::doctest::make::DocTestBuilder::generate_unique_doctest
708
721
pub ( crate ) struct ScrapedDocTest {
709
722
filename : FileName ,
710
723
line : usize ,
You can’t perform that action at this time.
0 commit comments