(include_path: &str)
| 2429 | } |
| 2430 | |
| 2431 | fn banned_subpath_replacement(include_path: &str) -> Option<String> { |
| 2432 | BANNED_INTERNAL_SUBPATHS |
| 2433 | .iter() |
| 2434 | .find_map(|(banned_prefix, replacement_prefix)| { |
| 2435 | include_path |
| 2436 | .strip_prefix(banned_prefix) |
| 2437 | .map(|suffix| format!("{replacement_prefix}{suffix}")) |
| 2438 | }) |
| 2439 | } |
| 2440 | |
| 2441 | fn is_valid_include_path(include_path: &str) -> bool { |
| 2442 | if is_top_level_include(include_path) || is_external_sdk_header(include_path) { |
no test coverage detected