()
| 690 | |
| 691 | #[test] |
| 692 | fn test_convert_timeout() { |
| 693 | let err = RemoteError::timeout(30); |
| 694 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 695 | |
| 696 | match cli_err { |
| 697 | CliError::RemoteError { message, .. } => { |
| 698 | assert!(message.contains("timed out")); |
| 699 | assert!(message.contains("30")); |
| 700 | } |
| 701 | _ => panic!("Expected RemoteError"), |
| 702 | } |
| 703 | } |
| 704 | |
| 705 | // ========================================================================= |
| 706 | // Format Count Tests |
nothing calls this directly
no test coverage detected