()
| 693 | /// Test converting view not found error. |
| 694 | #[test] |
| 695 | fn test_convert_view_not_found() { |
| 696 | let err = RemoteError::view_not_found("missing-stack"); |
| 697 | let cli_err = convert_remote_error(err, "http://example.com"); |
| 698 | |
| 699 | match cli_err { |
| 700 | CliError::RemoteError { message, .. } => { |
| 701 | assert!(message.contains("missing-stack")); |
| 702 | } |
| 703 | _ => panic!("Expected RemoteError"), |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | /// Test converting change not found error. |
| 708 | #[test] |
nothing calls this directly
no test coverage detected