Skip to main content

parse

Function parse 

Source
pub fn parse<S: AsRef<str>>(
    input: &[S],
) -> Result<TestExpr, TestCommandParseError>
Expand description

Parses a test command expression.

§Arguments

  • input - The test command expression to parse, in string form.

§Errors

Returns crate::TestCommandParseError if the arguments do not form a valid test expression, such as a missing operand or unbalanced parentheses.