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

Function test_remote_config_set_url

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

Source from the content-addressed store, hash-verified

857
858 #[test]
859 fn test_remote_config_set_url() {
860 let mut config = RemoteConfig::new();
861 config
862 .add("origin", RemoteEntry::new("https://example.com/repo"))
863 .unwrap();
864
865 config.set_url("origin", "https://new.com/repo").unwrap();
866 assert_eq!(config.get("origin").unwrap().url, "https://new.com/repo");
867 }
868
869 #[test]
870 fn test_remote_config_set_default() {

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
addMethod · 0.45
set_urlMethod · 0.45

Tested by

no test coverage detected