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

Function test_remote_config_add

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

Source from the content-addressed store, hash-verified

774
775 #[test]
776 fn test_remote_config_add() {
777 let mut config = RemoteConfig::new();
778 config
779 .add("origin", RemoteEntry::new("https://example.com/repo"))
780 .unwrap();
781
782 assert!(!config.is_empty());
783 assert_eq!(config.len(), 1);
784 assert!(config.contains("origin"));
785 }
786
787 #[test]
788 fn test_remote_config_add_duplicate() {

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected