(t *testing.T)
| 182 | } |
| 183 | |
| 184 | func TestDeleteSubscription(t *testing.T) { |
| 185 | client, reg := newTestClient(t, "github.com") |
| 186 | reg.Register(httpmock.REST("DELETE", "event-subscriptions/sub_1"), httpmock.StatusStringResponse(http.StatusNoContent, "")) |
| 187 | |
| 188 | err := client.DeleteSubscription(context.Background(), "sub_1") |
| 189 | |
| 190 | require.NoError(t, err) |
| 191 | } |
| 192 | |
| 193 | func TestClientErrors(t *testing.T) { |
| 194 | create := func(c EventClient) error { |
nothing calls this directly
no test coverage detected