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

Function get_query_files

crates/csskit_ast/benches/selector_matcher.rs:37–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37fn get_query_files() -> Vec<QueryFile> {
38 let mut files = vec![];
39 for source_path in glob(QUERY_FIXTURES_GLOB).unwrap().flatten() {
40 files.push(QueryFile {
41 name: source_path.file_stem().unwrap().to_str().unwrap().to_owned(),
42 source_text: read_to_string(&source_path).unwrap(),
43 });
44 }
45 files
46}
47
48fn selector_matching(c: &mut Criterion) {
49 let mut group = c.benchmark_group("selector_matching");

Callers 1

selector_matchingFunction · 0.70

Calls 1

to_strMethod · 0.80

Tested by

no test coverage detected