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

Function TestBuildRunHTMLURL_WithOwnerRepo

pkg/cli/view_command_test.go:58–64  ·  view source on GitHub ↗

─── buildRunHTMLURL ──────────────────────────────────────────────────────────

(t *testing.T)

Source from the content-addressed store, hash-verified

56// ─── buildRunHTMLURL ──────────────────────────────────────────────────────────
57
58func TestBuildRunHTMLURL_WithOwnerRepo(t *testing.T) {
59 got := buildRunHTMLURL("github.com", "myorg", "myrepo", 12345)
60 want := "https://github.com/myorg/myrepo/actions/runs/12345"
61 if got != want {
62 t.Errorf("buildRunHTMLURL = %q; want %q", got, want)
63 }
64}
65
66func TestBuildRunHTMLURL_MissingOwner(t *testing.T) {
67 got := buildRunHTMLURL("github.com", "", "myrepo", 12345)

Callers

nothing calls this directly

Calls 2

buildRunHTMLURLFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected