()
| 103 | |
| 104 | #[test] |
| 105 | fn test_infer_repo_name_dot_atomic() { |
| 106 | let url = |
| 107 | Url::parse("https://api.example.com/tenant/t/portfolio/p/project/myrepo/.atomic").unwrap(); |
| 108 | assert_eq!(infer_repo_name(&url), Some("myrepo".to_string())); |
| 109 | } |
| 110 | |
| 111 | #[test] |
| 112 | fn test_infer_repo_name_git_suffix() { |