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

Method GetWebpushSubscriptionsByUserID

coderd/webpush_test.go:212–217  ·  view source on GitHub ↗
(ctx context.Context, userID uuid.UUID)

Source from the content-addressed store, hash-verified

210}
211
212func (s *testWebpushErrorStore) GetWebpushSubscriptionsByUserID(ctx context.Context, userID uuid.UUID) ([]database.WebpushSubscription, error) {
213 if err := s.getWebpushSubscriptionsErr.Load(); err != nil {
214 return nil, *err
215 }
216 return s.Store.GetWebpushSubscriptionsByUserID(ctx, userID)
217}
218
219func TestDeleteWebpushSubscription(t *testing.T) {
220 t.Parallel()

Callers

nothing calls this directly

Calls 2

LoadMethod · 0.45

Tested by

no test coverage detected