[−][src]Function rustdoc::doctest::make_test
pub(crate) fn make_test(
s: &str,
cratename: Option<&str>,
dont_insert_main: bool,
opts: &TestOptions,
edition: Edition
) -> (String, usize, bool)
Transforms a test into code that can be compiled into a Rust binary, and returns the number of lines before the test code begins as well as if the output stream supports colors or not.