@@ -20,35 +20,20 @@ func TestNewURL(t *testing.T) {
2020 expect : "https://github.com/motemen/pusheen-explorer" ,
2121 host : "github.com" ,
2222 }, {
23- name : "scp to github " , // Convert SCP-like URL to SSH URL
23+ name : "scp" , // Convert SCP-like URL to SSH URL
2424 url :
"[email protected] :motemen/pusheen-explorer.git" ,
2525 expect :
"ssh://[email protected] /motemen/pusheen-explorer.git" ,
2626 host : "github.com" ,
2727 }, {
28- name : "scp with root to github " ,
28+ name : "scp with root" ,
2929 url :
"[email protected] :/motemen/pusheen-explorer.git" ,
3030 expect :
"ssh://[email protected] /motemen/pusheen-explorer.git" ,
3131 host : "github.com" ,
3232 }, {
33- name : "scp without user to github " ,
33+ name : "scp without user" ,
3434 url : "github.com:motemen/pusheen-explorer.git" ,
3535 expect : "ssh://github.com/motemen/pusheen-explorer.git" ,
3636 host : "github.com" ,
37- }, {
38- name : "scp to others" ,
39- url :
"[email protected] :repo/www.git" ,
40- expect :
"ssh://[email protected] /~/repo/www.git" ,
41- host : "example.com" ,
42- }, {
43- name : "scp with root to others" ,
44- url :
"[email protected] :/repo/www.git" ,
45- expect :
"ssh://[email protected] /repo/www.git" ,
46- host : "example.com" ,
47- }, {
48- name : "scp without user to others" ,
49- url : "example.com:repo/www.git" ,
50- expect : "ssh://example.com/~/repo/www.git" ,
51- host : "example.com" ,
5237 }, {
5338 name : "different name repository" ,
5439 url : "motemen/ghq" ,
0 commit comments