Function ring::test::run

source ·
pub fn run<F>(test_file: File<'_>, f: F)
where F: FnMut(&str, &mut TestCase) -> Result<(), Unspecified>,
Expand description

Parses test cases out of the given file, calling f on each vector until f fails or until all the test vectors have been read. f can indicate failure either by returning Err() or by panicking.