Skip to main content

test_code_path

Function test_code_path 

Source
pub fn test_code_path(file: &str) -> bool
Expand description

Whether a file is test code by where it sits, as the usual Rust coverage tools decide by default: under a tests, examples or benches directory, or named tests.rs, *_tests.rs or *-tests.rs.