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