MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / verifySuccess

Function verifySuccess

workers/webhook/pkg/webhook/sender_test.go:263–272  ·  view source on GitHub ↗
(t *testing.T, mockState *mockChannelStateManager)

Source from the content-addressed store, hash-verified

261}
262
263func verifySuccess(t *testing.T, mockState *mockChannelStateManager) {
264 t.Helper()
265 if len(mockState.successCalls) != 1 {
266 t.Errorf("expected 1 success call, got %d", len(mockState.successCalls))
267 } else if mockState.successCalls[0].channelID != "chan-1" {
268 t.Errorf("unexpected channel ID: %s", mockState.successCalls[0].channelID)
269 } else if mockState.successCalls[0].eventID != "evt-123" {
270 t.Errorf("unexpected event ID: %s", mockState.successCalls[0].eventID)
271 }
272}

Calls

no outgoing calls

Tested by

no test coverage detected