MCPcopy Create free account
hub / github.com/FastLED/FastLED / source_mirror_dir_has_headers

Function source_mirror_dir_has_headers

ci/lint_cpp_rs/src/lib.rs:2976–2991  ·  view source on GitHub ↗
(root_prefix: &str, test_dir_path: &str)

Source from the content-addressed store, hash-verified

2974}
2975
2976fn source_mirror_dir_has_headers(root_prefix: &str, test_dir_path: &str) -> bool {
2977 let src_dir = join_project_path(root_prefix, &format!("src/{test_dir_path}"));
2978 let Ok(entries) = fs::read_dir(src_dir) else {
2979 return false;
2980 };
2981 entries.flatten().any(|entry| {
2982 let path = entry.path();
2983 path.is_file()
2984 && path
2985 .file_name()
2986 .and_then(|value| value.to_str())
2987 .is_some_and(|name| {
2988 name.ends_with(".h") || name.ends_with(".hpp") || name.ends_with(".cpp.hpp")
2989 })
2990 })
2991}
2992
2993fn parse_aggregator_includes(path: &Path) -> BTreeSet<String> {
2994 let mut includes = BTreeSet::new();

Callers 1

check_file_contentMethod · 0.85

Calls 4

join_project_pathFunction · 0.85
anyMethod · 0.65
pathMethod · 0.45
ends_withMethod · 0.45

Tested by

no test coverage detected