()
| 626 | |
| 627 | #[test] |
| 628 | fn test_convert_timeout() { |
| 629 | let err = RemoteError::timeout(30); |
| 630 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 631 | |
| 632 | match cli_err { |
| 633 | CliError::RemoteError { message, .. } => { |
| 634 | assert!(message.contains("timed out")); |
| 635 | assert!(message.contains("30")); |
| 636 | } |
| 637 | _ => panic!("Expected RemoteError"), |
| 638 | } |
| 639 | } |
| 640 | |
| 641 | // Format Count Tests |
| 642 |
nothing calls this directly
no test coverage detected