()
| 1255 | |
| 1256 | #[test] |
| 1257 | fn test_from_anyhow_error() { |
| 1258 | let anyhow_err = anyhow::anyhow!("something went wrong"); |
| 1259 | let cli_err: CliError = anyhow_err.into(); |
| 1260 | match cli_err { |
| 1261 | CliError::Internal(_) => {} |
| 1262 | _ => panic!("Expected Internal variant"), |
| 1263 | } |
| 1264 | } |
| 1265 | |
| 1266 | // ------------------------------------------------------------------------- |
| 1267 | // Edge Case Tests |
nothing calls this directly
no outgoing calls
no test coverage detected