()
| 1245 | |
| 1246 | #[test] |
| 1247 | fn test_from_io_error() { |
| 1248 | let io_err = std::io::Error::new(std::io::ErrorKind::PermissionDenied, "access denied"); |
| 1249 | let cli_err: CliError = io_err.into(); |
| 1250 | match cli_err { |
| 1251 | CliError::Io(_) => {} |
| 1252 | _ => panic!("Expected Io variant"), |
| 1253 | } |
| 1254 | } |
| 1255 | |
| 1256 | #[test] |
| 1257 | fn test_from_anyhow_error() { |
nothing calls this directly
no outgoing calls
no test coverage detected