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