@@ -16,55 +16,55 @@ func TestParseGitURL(t *testing.T) {
16
16
}{
17
17
{"1" ,
18
18
"[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" },
20
20
false ,
21
21
},
22
22
{"2" ,
23
23
24
- & 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" },
25
25
false },
26
26
{"3" ,
27
27
"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" },
29
29
false },
30
30
{"4" ,
31
31
"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" },
33
33
false },
34
34
{"5" ,
35
35
"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" },
37
37
false },
38
38
{"6" ,
39
39
"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" },
41
41
false },
42
42
{"7" ,
43
43
"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" },
45
45
false },
46
46
{
47
47
"valid-special-char-scp" ,
48
48
"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" },
50
50
false ,
51
51
},
52
52
{
53
53
"valid-special-char-ssh" ,
54
54
"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" },
56
56
false ,
57
57
},
58
58
{
59
59
"valid-special-char-https" ,
60
60
"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" },
62
62
false ,
63
63
},
64
64
{
65
65
"valid-special-char-local" ,
66
66
"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" },
68
68
false ,
69
69
},
70
70
0 commit comments