(path: &Path)
| 240 | |
| 241 | #[cfg(unix)] |
| 242 | fn podman_socket_responds(path: &Path) -> bool { |
| 243 | unix_socket_http_ping(path, |response| { |
| 244 | http_response_is_success(response) && contains_ascii(response, b"Libpod-Api-Version:") |
| 245 | }) |
| 246 | } |
| 247 | |
| 248 | #[cfg(unix)] |
| 249 | fn unix_socket_http_ping(path: &Path, accepts_response: impl FnOnce(&[u8]) -> bool) -> bool { |
no test coverage detected