Skip to main content

is_test_path

Function is_test_path 

Source
pub fn is_test_path(path: &Path) -> bool
Expand description

Check if a file path is a dedicated test file for its language.

Returns false for unknown file types or languages that use inline tests. Matches against the language’s test_file_globs() patterns.