Skip to main content

is_suite_file

Function is_suite_file 

Source
pub fn is_suite_file(text: &str) -> bool
Expand description

Whether text is a suite file. A suite’s cases run inside a scaffold that destructures names of its own (the unit under test’s types and functions, assets, bindings, for all binders) in the same JS scope as the case body; deliberately over-approximate (a line merely starting suite counts), since the cost of a false positive is a missing inline value.