MCPcopy Index your code
hub / github.com/coder/coder / mockWebpushDispatcher

Struct mockWebpushDispatcher

coderd/x/chatd/chatd_test.go:6428–6433  ·  view source on GitHub ↗

mockWebpushDispatcher implements webpush.Dispatcher and records Dispatch calls.

Source from the content-addressed store, hash-verified

6426
6427// mockWebpushDispatcher implements webpush.Dispatcher and records Dispatch calls.
6428type mockWebpushDispatcher struct {
6429 dispatchCount atomic.Int32
6430 mu sync.Mutex
6431 lastMessage codersdk.WebpushMessage
6432 lastUserID uuid.UUID
6433}
6434
6435func (m *mockWebpushDispatcher) Dispatch(_ context.Context, userID uuid.UUID, msg codersdk.WebpushMessage) error {
6436 m.dispatchCount.Add(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected