MCPcopy Create free account
hub / github.com/bufbuild/buf-examples / TestWebhookEventHandler_Event

Function TestWebhookEventHandler_Event

bsr/webhooks/cmd/main_test.go:26–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24)
25
26func TestWebhookEventHandler_Event(t *testing.T) {
27 t.Parallel()
28
29 handler := &webhookEventHandler{}
30
31 req := &webhookv1alpha1.EventRequest{
32 Event: registryv1alpha1.WebhookEvent_WEBHOOK_EVENT_UNSPECIFIED,
33 }
34
35 resp, err := handler.Event(context.Background(), req)
36
37 require.NoError(t, err)
38 require.NotNil(t, resp)
39}

Callers

nothing calls this directly

Calls 1

EventMethod · 0.95

Tested by

no test coverage detected