[−][src]Function rustdoc::doctest::make_test

pub fn make_test(
    s: &str,
    cratename: Option<&str>,
    dont_insert_main: bool,
    opts: &TestOptions,
    edition: Edition
) -> (String, usize)

Transforms a test into code that can be compiled into a Rust binary, and returns the number of lines before the test code begins.