()
| 932 | /// Test converting view not found error. |
| 933 | #[test] |
| 934 | fn test_convert_view_not_found() { |
| 935 | let err = RemoteError::view_not_found("missing-stack"); |
| 936 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 937 | |
| 938 | match cli_err { |
| 939 | CliError::RemoteError { message, .. } => { |
| 940 | assert!(message.contains("missing-stack")); |
| 941 | } |
| 942 | _ => panic!("Expected RemoteError"), |
| 943 | } |
| 944 | } |
| 945 | |
| 946 | /// Test converting change not found error. |
| 947 | #[test] |
nothing calls this directly
no test coverage detected