aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/vcs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/vcs/vcs_test.go')
-rw-r--r--pkg/vcs/vcs_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/vcs/vcs_test.go b/pkg/vcs/vcs_test.go
index 01e1fe7f5..7abeba55b 100644
--- a/pkg/vcs/vcs_test.go
+++ b/pkg/vcs/vcs_test.go
@@ -183,6 +183,11 @@ func TestCommitLink(t *testing.T) {
"06690d5c6466b604f674477b522a809673c17eff",
"https://git.breakpoint.cc/cgit/fw/net-next.git/commit/?id=06690d5c6466b604f674477b522a809673c17eff",
},
+ {
+ "git@github.com:torvalds/linux.git",
+ "ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1",
+ "https://github.com/torvalds/linux/commit/ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1",
+ },
}
for _, test := range tests {
link := CommitLink(test.URL, test.Hash)
@@ -222,6 +227,13 @@ func TestFileLink(t *testing.T) {
42,
"https://android.googlesource.com/kernel/common/+/d0c3914ffbe4c00f0a131bae83f811d5606699bc/Makefile#42",
},
+ {
+ "git@github.com:torvalds/linux.git",
+ "ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1",
+ "Makefile",
+ 42,
+ "https://github.com/torvalds/linux/blob/ccd1cdca5cd433c8a5dff78b69a79b31d9b77ee1/Makefile#L42",
+ },
}
for _, test := range tests {
link := FileLink(test.URL, test.Hash, test.File, test.Line)