()
| 772 | /// Test converting view not found error. |
| 773 | #[test] |
| 774 | fn test_convert_view_not_found() { |
| 775 | let err = RemoteError::view_not_found("missing-stack"); |
| 776 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 777 | |
| 778 | match cli_err { |
| 779 | CliError::RemoteError { message, .. } => { |
| 780 | assert!(message.contains("missing-stack")); |
| 781 | } |
| 782 | _ => panic!("Expected RemoteError"), |
| 783 | } |
| 784 | } |
| 785 | |
| 786 | /// Test converting change not found error. |
| 787 | #[test] |
nothing calls this directly
no test coverage detected