MCPcopy Create free account
hub / github.com/github/gh-aw / TestBuildRunHTMLURL_MissingRepo

Function TestBuildRunHTMLURL_MissingRepo

pkg/cli/view_command_test.go:73–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestBuildRunHTMLURL_MissingRepo(t *testing.T) {
74 got := buildRunHTMLURL("github.com", "myorg", "", 12345)
75 if got != "" {
76 t.Errorf("buildRunHTMLURL with missing repo = %q; want empty string", got)
77 }
78}
79
80func TestBuildRunHTMLURL_DefaultHostname(t *testing.T) {
81 got := buildRunHTMLURL("", "myorg", "myrepo", 12345)

Callers

nothing calls this directly

Calls 2

buildRunHTMLURLFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected