Skip to main content

select_fixture

Function select_fixture 

Source
pub fn select_fixture(
    fixtures: &Path,
    op: &str,
    params: &[(String, String)],
    n: u32,
) -> Option<PathBuf>
Expand description

Pick the fixture file under <fixtures>/mock/, most specific first: <op>__<params>__<n>, <op>__<params>, <op>__<n>, <op>. A numbered family past its last file repeats that last file.