()
| 677 | |
| 678 | #[test] |
| 679 | fn test_convert_timeout() { |
| 680 | let err = RemoteError::timeout(30); |
| 681 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 682 | |
| 683 | match cli_err { |
| 684 | CliError::RemoteError { message, .. } => { |
| 685 | assert!(message.contains("timed out")); |
| 686 | assert!(message.contains("30")); |
| 687 | } |
| 688 | _ => panic!("Expected RemoteError"), |
| 689 | } |
| 690 | } |
| 691 | |
| 692 | // Format Count Tests |
| 693 |
nothing calls this directly
no test coverage detected