Skip to main content

load_cases

Function load_cases 

Source
pub fn load_cases(dir: &Path) -> Result<Vec<GoldenCase>>
Expand description

Load and validate every *.json golden case in dir, sorted by file name. The file stem must equal the case id.

§Errors

The directory cannot be read, holds no cases, or a case file is unreadable, malformed or invalid (every problem is listed).