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

Function test_remote_config_add_invalid_url

atomic-repository/src/remote.rs:819–824  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

817
818 #[test]
819 fn test_remote_config_add_invalid_url() {
820 let mut config = RemoteConfig::new();
821
822 let result = config.add("origin", RemoteEntry::new("not-a-url"));
823 assert!(matches!(result, Err(RemoteError::InvalidUrl { .. })));
824 }
825
826 #[test]
827 fn test_remote_config_get() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected