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

Function test_remote_config_remove

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

Source from the content-addressed store, hash-verified

838
839 #[test]
840 fn test_remote_config_remove() {
841 let mut config = RemoteConfig::new();
842 config
843 .add("origin", RemoteEntry::new("https://example.com/repo"))
844 .unwrap();
845
846 let removed = config.remove("origin").unwrap();
847 assert_eq!(removed.url, "https://example.com/repo");
848 assert!(!config.contains("origin"));
849 }
850
851 #[test]
852 fn test_remote_config_remove_nonexistent() {

Callers

nothing calls this directly

Calls 3

removeMethod · 0.65
unwrapMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected