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

Function test_remote_config_get

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

Source from the content-addressed store, hash-verified

825
826 #[test]
827 fn test_remote_config_get() {
828 let mut config = RemoteConfig::new();
829 config
830 .add("origin", RemoteEntry::new("https://example.com/repo"))
831 .unwrap();
832
833 let entry = config.get("origin").unwrap();
834 assert_eq!(entry.url, "https://example.com/repo");
835
836 assert!(config.get("nonexistent").is_none());
837 }
838
839 #[test]
840 fn test_remote_config_remove() {

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
unwrapMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected