rustdoc::doctest

Function run_test

source
fn run_test(
    doctest: RunnableDocTest,
    rustdoc_options: &Options,
    supports_color: bool,
    report_unused_externs: impl Fn(UnusedExterns),
) -> Result<(), TestFailure>
Expand description

Execute a RunnableDoctest.

This is the function that calculates the compiler command line, invokes the compiler, then invokes the test or tests in a separate executable (if applicable).