─── buildRunHTMLURL ──────────────────────────────────────────────────────────
(t *testing.T)
| 56 | // ─── buildRunHTMLURL ────────────────────────────────────────────────────────── |
| 57 | |
| 58 | func 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 | |
| 66 | func TestBuildRunHTMLURL_MissingOwner(t *testing.T) { |
| 67 | got := buildRunHTMLURL("github.com", "", "myrepo", 12345) |
nothing calls this directly
no test coverage detected