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

Function TestBuildRunHTMLURL_DefaultHostname

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

Source from the content-addressed store, hash-verified

78}
79
80func TestBuildRunHTMLURL_DefaultHostname(t *testing.T) {
81 got := buildRunHTMLURL("", "myorg", "myrepo", 12345)
82 want := "https://github.com/myorg/myrepo/actions/runs/12345"
83 if got != want {
84 t.Errorf("buildRunHTMLURL with empty hostname = %q; want %q", got, want)
85 }
86}
87
88func TestBuildRunHTMLURL_GHES(t *testing.T) {
89 got := buildRunHTMLURL("github.example.com", "myorg", "myrepo", 12345)

Callers

nothing calls this directly

Calls 2

buildRunHTMLURLFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected