Skip to main content

for_each_fixture

Function for_each_fixture 

Source
pub fn for_each_fixture(dir: &Path, f: impl FnMut(&str, &Value))
Expand description

Invoke f(name, json) for every *.json fixture in dir, sorted by file name. PANICS if the directory holds no fixtures (or is missing) — the empty-glob rule.