()
| 817 | |
| 818 | #[test] |
| 819 | fn test_remote_config_add_invalid_url() { |
| 820 | let mut config = RemoteConfig::new(); |
| 821 | |
| 822 | let result = config.add("origin", RemoteEntry::new("not-a-url")); |
| 823 | assert!(matches!(result, Err(RemoteError::InvalidUrl { .. }))); |
| 824 | } |
| 825 | |
| 826 | #[test] |
| 827 | fn test_remote_config_get() { |