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

Function test_remote_config_names

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

Source from the content-addressed store, hash-verified

986
987 #[test]
988 fn test_remote_config_names() {
989 let mut config = RemoteConfig::new();
990 config
991 .add("origin", RemoteEntry::new("https://origin.com/repo"))
992 .unwrap();
993 config
994 .add("upstream", RemoteEntry::new("https://upstream.com/repo"))
995 .unwrap();
996
997 let names: Vec<&str> = config.names().collect();
998 assert_eq!(names.len(), 2);
999 }
1000
1001 // File I/O Tests
1002

Callers

nothing calls this directly

Calls 4

namesMethod · 0.80
unwrapMethod · 0.45
addMethod · 0.45
collectMethod · 0.45

Tested by

no test coverage detected