pub fn rust_cfg_test_ranges(
source: &str,
root: Node<'_>,
) -> Vec<RustCfgTestRange>Expand description
Line ranges compiled only for tests: #[cfg(test)] items (modules,
functions, impls, types, traits, constants and statics), plus
#[cfg(test)] statements, blocks and nested items inside a function body.
Calls on these lines are test usage, and declarations on them are test
code.