(include_path: &str)
| 2379 | } |
| 2380 | |
| 2381 | fn include_path_looks_like_fastled_code(include_path: &str) -> bool { |
| 2382 | if include_path.ends_with(".hpp") || include_path.ends_with(".cpp") { |
| 2383 | return true; |
| 2384 | } |
| 2385 | |
| 2386 | let filename = include_path.rsplit('/').next().unwrap_or(include_path); |
| 2387 | let filename = filename.to_ascii_lowercase(); |
| 2388 | [ |
| 2389 | "clockless", |
| 2390 | "fastpin", |
| 2391 | "fastspi", |
| 2392 | "led_sysdefs", |
| 2393 | "compile_test", |
| 2394 | "spi_output", |
| 2395 | "is_", |
| 2396 | ] |
| 2397 | .iter() |
| 2398 | .any(|pattern| filename.contains(pattern)) |
| 2399 | } |
| 2400 | |
| 2401 | fn is_external_sdk_header(include_path: &str) -> bool { |
| 2402 | if EXTERNAL_SDK_PREFIXES |
no test coverage detected