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

Function get_css_files

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

Source from the content-addressed store, hash-verified

24}
25
26fn get_css_files() -> Vec<CssFile> {
27 let mut files = vec![];
28 for source_path in glob(CSS_FIXTURES_GLOB).unwrap().flatten() {
29 files.push(CssFile {
30 name: source_path.file_stem().unwrap().to_str().unwrap().to_owned(),
31 source_text: read_to_string(&source_path).unwrap(),
32 });
33 }
34 files
35}
36
37fn get_query_files() -> Vec<QueryFile> {
38 let mut files = vec![];

Callers 1

selector_matchingFunction · 0.70

Calls 1

to_strMethod · 0.80

Tested by

no test coverage detected