| 1 | use super::*; |
| 2 | |
| 3 | #[test] |
| 4 | fn is_command_available_detects_present_and_absent_binaries() { |
| 5 | #[cfg(unix)] |
| 6 | assert!(is_command_available("sh"), "POSIX `sh` should be on PATH"); |
| 7 | |
| 8 | assert!( |
| 9 | !is_command_available("this-command-cannot-exist-codewhale-tui-test-ENOENT-marker"), |
| 10 | "missing command should return false, not panic" |
| 11 | ); |
| 12 | } |
| 13 |