()
| 857 | |
| 858 | #[test] |
| 859 | fn test_remote_config_set_url() { |
| 860 | let mut config = RemoteConfig::new(); |
| 861 | config |
| 862 | .add("origin", RemoteEntry::new("https://example.com/repo")) |
| 863 | .unwrap(); |
| 864 | |
| 865 | config.set_url("origin", "https://new.com/repo").unwrap(); |
| 866 | assert_eq!(config.get("origin").unwrap().url, "https://new.com/repo"); |
| 867 | } |
| 868 | |
| 869 | #[test] |
| 870 | fn test_remote_config_set_default() { |