(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestDeleteReleaseHTTPError(t *testing.T) { |
| 98 | reg := &httpmock.Registry{} |
| 99 | defer reg.Verify(t) |
| 100 | reg.Register( |
| 101 | httpmock.REST("DELETE", "releases/123"), |
| 102 | httpmock.StatusStringResponse(http.StatusInternalServerError, `{"message":"Internal Server Error"}`), |
| 103 | ) |
| 104 | |
| 105 | err := deleteRelease(&http.Client{Transport: reg}, "github.com", safeurl.NewImmutableSafeURL("https://api.github.com/releases/123")) |
| 106 | |
| 107 | requireAPIHTTPError(t, err, http.StatusInternalServerError) |
| 108 | } |
| 109 | |
| 110 | func TestTokenHasWorkflowScope(t *testing.T) { |
| 111 | tests := []struct { |
nothing calls this directly
no test coverage detected