Skip to main content

error_matches

Function error_matches 

Source
fn error_matches(expected_error: &str, err: &str) -> bool
Expand description

Reports whether err matches the expected_error regex of a record.

Expected errors in files imported from CockroachDB are not always valid regexes. An invalid regex cannot match, so the record fails with the usual mismatch outcome rather than aborting the entire run.