MCPcopy Create free account
hub / github.com/csskit/csskit / get_files

Function get_files

crates/csskit_transform/benches/minify_popular.rs:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

popularFunction · 0.70

Calls 1

to_strMethod · 0.80

Tested by

no test coverage detected