(root_prefix: &str, test_dir_path: &str)
| 2974 | } |
| 2975 | |
| 2976 | fn 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 | |
| 2993 | fn parse_aggregator_includes(path: &Path) -> BTreeSet<String> { |
| 2994 | let mut includes = BTreeSet::new(); |
no test coverage detected