MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / parse_test_testcases

Function parse_test_testcases

parser/src/def/workspace.rs:390–396  ·  view source on GitHub ↗
(text: String)

Source from the content-addressed store, hash-verified

388}
389
390fn parse_test_testcases(text: String) -> Vec<String> {
391 let suffix = ": test";
392 text.lines()
393 .filter(|line| line.ends_with(suffix))
394 .filter_map(|line| line.split_once(suffix).map(|(before, _)| before.to_owned()))
395 .collect()
396}
397
398#[cfg(test)]
399mod test {

Callers 2

get_unit_test_namesMethod · 0.85
get_testcasesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected