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

Function test_constructor_remote_error_without_url

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected