()
| 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 |