()
| 17 | } |
| 18 | |
| 19 | fn get_files() -> Vec<TestFile> { |
| 20 | let mut files = vec![]; |
| 21 | for source_path in glob(FIXTURES_GLOB).unwrap().flatten() { |
| 22 | files.push(TestFile { |
| 23 | name: source_path.file_stem().unwrap().to_str().unwrap().to_owned(), |
| 24 | source_text: read_to_string(&source_path).unwrap(), |
| 25 | }); |
| 26 | } |
| 27 | files |
| 28 | } |
| 29 | |
| 30 | fn parse_sheet(c: &mut Criterion) { |
| 31 | let mut group = c.benchmark_group("parse_sheet"); |