()
| 436 | |
| 437 | #[test] |
| 438 | fn should_test_happy_path() { |
| 439 | // Remote HTTPS URL. |
| 440 | let cfg = GitConfig::new(REPO_URL.into(), Some("main".to_owned()), None).unwrap(); |
| 441 | |
| 442 | assert_eq!(cfg.remote.as_ref(), Url::parse(REPO_URL).unwrap().as_str()); |
| 443 | assert_eq!(cfg.branch, GitReference::Branch("main".to_owned())); |
| 444 | } |
| 445 | |
| 446 | #[test] |
| 447 | fn should_support_abbreviated_repository_short_urls_like() { |
nothing calls this directly
no outgoing calls
no test coverage detected