()
| 983 | |
| 984 | #[test] |
| 985 | fn test_convert_timeout() { |
| 986 | let err = RemoteError::timeout(30); |
| 987 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 988 | |
| 989 | match cli_err { |
| 990 | CliError::RemoteError { message, .. } => { |
| 991 | assert!(message.contains("timed out")); |
| 992 | assert!(message.contains("30")); |
| 993 | } |
| 994 | _ => panic!("Expected RemoteError"), |
| 995 | } |
| 996 | } |
| 997 | |
| 998 | // Format Count Tests |
| 999 |
nothing calls this directly
no test coverage detected