()
| 451 | |
| 452 | #[test] |
| 453 | fn test_convert_timeout() { |
| 454 | let err = RemoteError::timeout(30); |
| 455 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 456 | |
| 457 | match cli_err { |
| 458 | CliError::RemoteError { message, .. } => { |
| 459 | assert!(message.contains("timed out")); |
| 460 | assert!(message.contains("30")); |
| 461 | } |
| 462 | _ => panic!("Expected RemoteError"), |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | // ========================================================================= |
| 467 | // Format Count Tests |
nothing calls this directly
no test coverage detected