(haystack: &[u8], needle: &[u8])
| 289 | |
| 290 | #[cfg(unix)] |
| 291 | fn contains_ascii(haystack: &[u8], needle: &[u8]) -> bool { |
| 292 | haystack |
| 293 | .windows(needle.len()) |
| 294 | .any(|window| window.eq_ignore_ascii_case(needle)) |
| 295 | } |
| 296 | |
| 297 | #[cfg(all(unix, test))] |
| 298 | fn is_reachable_unix_socket(path: &Path) -> bool { |
no test coverage detected