()
| 1229 | |
| 1230 | #[test] |
| 1231 | fn test_constructor_remote_error_without_url() { |
| 1232 | let err = CliError::remote_error("network error", None); |
| 1233 | match err { |
| 1234 | CliError::RemoteError { message, url } => { |
| 1235 | assert_eq!(message, "network error"); |
| 1236 | assert!(url.is_none()); |
| 1237 | } |
| 1238 | _ => panic!("Wrong error variant"), |
| 1239 | } |
| 1240 | } |
| 1241 | |
| 1242 | // ------------------------------------------------------------------------- |
| 1243 | // From Trait Tests |
nothing calls this directly
no outgoing calls
no test coverage detected