()
| 1217 | |
| 1218 | #[test] |
| 1219 | fn test_constructor_remote_error_with_url() { |
| 1220 | let err = CliError::remote_error("timeout", Some("https://git.example.com".into())); |
| 1221 | match err { |
| 1222 | CliError::RemoteError { message, url } => { |
| 1223 | assert_eq!(message, "timeout"); |
| 1224 | assert_eq!(url, Some("https://git.example.com".to_string())); |
| 1225 | } |
| 1226 | _ => panic!("Wrong error variant"), |
| 1227 | } |
| 1228 | } |
| 1229 | |
| 1230 | #[test] |
| 1231 | fn test_constructor_remote_error_without_url() { |
nothing calls this directly
no outgoing calls
no test coverage detected