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

Function test_url_error_conversion

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

Source from the content-addressed store, hash-verified

554
555 #[test]
556 fn test_url_error_conversion() {
557 let url_result: Result<url::Url, _> = "not a valid url".parse();
558 let url_err = url_result.unwrap_err();
559 let remote_err: RemoteError = url_err.into();
560 assert!(matches!(remote_err, RemoteError::InvalidUrl(_)));
561 }
562}

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected