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