Extract just the binary name from a full path.
(path: &str)
| 421 | |
| 422 | /// Extract just the binary name from a full path. |
| 423 | fn short_binary_name(path: &str) -> String { |
| 424 | path.rsplit('/').next().unwrap_or(path).to_string() |
| 425 | } |
| 426 | |
| 427 | /// Check if a destination host is always-blocked. |
| 428 | /// |
no test coverage detected