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

Function test_url_error_conversion

atomic-remote/src/error.rs:460–465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458
459 #[test]
460 fn test_url_error_conversion() {
461 let url_result: Result<url::Url, _> = "not a valid url".parse();
462 let url_err = url_result.unwrap_err();
463 let remote_err: RemoteError = url_err.into();
464 assert!(matches!(remote_err, RemoteError::InvalidUrl(_)));
465 }
466}

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected