Skip to main content

parse_cases

Function parse_cases 

Source
pub fn parse_cases(text: &str, session: &Session) -> Result<Vec<Case>, String>
Expand description

Parse JSON Lines into cases, checking every expectation against session.

Blank lines are skipped and everything else has to be a case, because a file of labels is worth nothing if a typo silently drops a row. The line number travels with the case: it is what the report names a case by, so a bad row is found by the same number that reported it.