()
| 888 | |
| 889 | #[test] |
| 890 | fn test_convert_timeout() { |
| 891 | let err = RemoteError::timeout(30); |
| 892 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 893 | |
| 894 | match cli_err { |
| 895 | CliError::RemoteError { message, .. } => { |
| 896 | assert!(message.contains("timed out")); |
| 897 | assert!(message.contains("30")); |
| 898 | } |
| 899 | _ => panic!("Expected RemoteError"), |
| 900 | } |
| 901 | } |
| 902 | |
| 903 | // Format Count Tests |
| 904 |
nothing calls this directly
no test coverage detected