(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestGetSubscription(t *testing.T) { |
| 78 | client, reg := newTestClient(t, "github.com") |
| 79 | reg.Register(httpmock.REST("GET", "event-subscriptions/sub_1"), httpmock.StringResponse(subscriptionJSON)) |
| 80 | |
| 81 | sub, err := client.GetSubscription(context.Background(), "sub_1") |
| 82 | |
| 83 | require.NoError(t, err) |
| 84 | assert.Equal(t, wantSubscription, sub) |
| 85 | } |
| 86 | |
| 87 | func TestListSubscriptions(t *testing.T) { |
| 88 | page := func(link string, ids ...string) httpmock.Responder { |
nothing calls this directly
no test coverage detected