(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func 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 | |
| 88 | func TestBuildRunHTMLURL_GHES(t *testing.T) { |
| 89 | got := buildRunHTMLURL("github.example.com", "myorg", "myrepo", 12345) |
nothing calls this directly
no test coverage detected