@@ -16,55 +16,55 @@ func TestParseGitURL(t *testing.T) {
1616 }{
1717 {"1" ,
1818 "[email protected] :path/to/repo.git" ,
19- & GitURL {scheme : "scp" , user : "user" , host : "host.xz" , path : "path/to" , repo : "repo.git" },
19+ & GitURL {Scheme : "scp" , User : "user" , Host : "host.xz" , Path : "path/to" , Repo : "repo.git" },
2020 false ,
2121 },
2222 {"2" ,
232324- & GitURL {scheme : "scp" , user : "git" , host : "github.com" , path : "org" , repo : "repo" },
24+ & GitURL {Scheme : "scp" , User : "git" , Host : "github.com" , Path : "org" , Repo : "repo" },
2525 false },
2626 {"3" ,
2727 "ssh://[email protected] :123/path/to/repo.git" ,
28- & GitURL {scheme : "ssh" , user : "user" , host : "host.xz:123" , path : "path/to" , repo : "repo.git" },
28+ & GitURL {Scheme : "ssh" , User : "user" , Host : "host.xz:123" , Path : "path/to" , Repo : "repo.git" },
2929 false },
3030 {"4" ,
3131 "ssh://[email protected] /org/repo" ,
32- & GitURL {scheme : "ssh" , user : "git" , host : "github.com" , path : "org" , repo : "repo" },
32+ & GitURL {Scheme : "ssh" , User : "git" , Host : "github.com" , Path : "org" , Repo : "repo" },
3333 false },
3434 {"5" ,
3535 "https://host.xz:345/path/to/repo.git" ,
36- & GitURL {scheme : "https" , host : "host.xz:345" , path : "path/to" , repo : "repo.git" },
36+ & GitURL {Scheme : "https" , Host : "host.xz:345" , Path : "path/to" , Repo : "repo.git" },
3737 false },
3838 {"6" ,
3939 "https://github.com/org/repo" ,
40- & GitURL {scheme : "https" , host : "github.com" , path : "org" , repo : "repo" },
40+ & GitURL {Scheme : "https" , Host : "github.com" , Path : "org" , Repo : "repo" },
4141 false },
4242 {"7" ,
4343 "https://host.xz:123/path/to/repo.git" ,
44- & GitURL {scheme : "https" , host : "host.xz:123" , path : "path/to" , repo : "repo.git" },
44+ & GitURL {Scheme : "https" , Host : "host.xz:123" , Path : "path/to" , Repo : "repo.git" },
4545 false },
4646 {
4747 "valid-special-char-scp" ,
4848 "user.name-with_@host-with_x.xz:123:path-with_.x/to/prr.test_test-repo0.git" ,
49- & GitURL {scheme : "scp" , user : "user.name-with_" , host : "host-with_x.xz:123" , path : "path-with_.x/to" , repo : "prr.test_test-repo0.git" },
49+ & GitURL {Scheme : "scp" , User : "user.name-with_" , Host : "host-with_x.xz:123" , Path : "path-with_.x/to" , Repo : "prr.test_test-repo0.git" },
5050 false ,
5151 },
5252 {
5353 "valid-special-char-ssh" ,
5454 "ssh://user.name-with_@host-with_x.xz:123/path-with_.x/to/prr.test_test-repo1.git" ,
55- & GitURL {scheme : "ssh" , user : "user.name-with_" , host : "host-with_x.xz:123" , path : "path-with_.x/to" , repo : "prr.test_test-repo1.git" },
55+ & GitURL {Scheme : "ssh" , User : "user.name-with_" , Host : "host-with_x.xz:123" , Path : "path-with_.x/to" , Repo : "prr.test_test-repo1.git" },
5656 false ,
5757 },
5858 {
5959 "valid-special-char-https" ,
6060 "https://host-with_x.xz:123/path-with_.x/to/prr.test_test-repo2.git" ,
61- & GitURL {scheme : "https" , host : "host-with_x.xz:123" , path : "path-with_.x/to" , repo : "prr.test_test-repo2.git" },
61+ & GitURL {Scheme : "https" , Host : "host-with_x.xz:123" , Path : "path-with_.x/to" , Repo : "prr.test_test-repo2.git" },
6262 false ,
6363 },
6464 {
6565 "valid-special-char-local" ,
6666 "file:///path-with_.x/to/prr.test_test-repo3.git" ,
67- & GitURL {scheme : "local" , path : "path-with_.x/to" , repo : "prr.test_test-repo3.git" },
67+ & GitURL {Scheme : "local" , Path : "path-with_.x/to" , Repo : "prr.test_test-repo3.git" },
6868 false ,
6969 },
7070
0 commit comments