MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_constructor_remote_error_with_url

Function test_constructor_remote_error_with_url

atomic-cli/src/error.rs:1219–1228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected