()
| 774 | |
| 775 | #[test] |
| 776 | fn test_remote_config_add() { |
| 777 | let mut config = RemoteConfig::new(); |
| 778 | config |
| 779 | .add("origin", RemoteEntry::new("https://example.com/repo")) |
| 780 | .unwrap(); |
| 781 | |
| 782 | assert!(!config.is_empty()); |
| 783 | assert_eq!(config.len(), 1); |
| 784 | assert!(config.contains("origin")); |
| 785 | } |
| 786 | |
| 787 | #[test] |
| 788 | fn test_remote_config_add_duplicate() { |