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

Method Test

coderd/webpush/webpush.go:55–55  ·  view source on GitHub ↗

Test sends a test web push notificatoin to a subscription to ensure it is valid.

(ctx context.Context, req codersdk.WebpushSubscription)

Source from the content-addressed store, hash-verified

53 Dispatch(ctx context.Context, userID uuid.UUID, notification codersdk.WebpushMessage) error
54 // Test sends a test web push notificatoin to a subscription to ensure it is valid.
55 Test(ctx context.Context, req codersdk.WebpushSubscription) error
56 // PublicKey returns the VAPID public key for the webpush dispatcher.
57 PublicKey() string
58}

Callers 3

TestSSRFPreventionFunction · 0.65
TestPool_ExpiryFunction · 0.65

Implementers 5

testWebpushDispatchercoderd/webpush_test.go
Webpushercoderd/webpush/webpush.go
NoopWebpushercoderd/webpush/webpush.go
recordingWebpushDispatchercoderd/x/chatd/turn_summary_internal_t
mockWebpushDispatchercoderd/x/chatd/chatd_test.go

Calls

no outgoing calls

Tested by 2

TestSSRFPreventionFunction · 0.52
TestPool_ExpiryFunction · 0.52