pub fn parse_test<'a>(
    text: &'a str,
    options: ParseOptions<'a>
) -> ParseResult<TestFile<'a>>
Expand description

Parse the entire text as a test case file.

The returned TestFile contains direct references to substrings of text.

Examples found in repository?
src/parser.rs (line 90)
88
89
90
91
92
pub fn parse_functions(text: &str) -> ParseResult<Vec<Function>> {
    let _tt = timing::parse_text();
    parse_test(text, ParseOptions::default())
        .map(|file| file.functions.into_iter().map(|(func, _)| func).collect())
}