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

Method invalidateCount

coderd/webpush_test.go:206–210  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204}
205
206func (d *testWebpushDispatcher) invalidateCount() int {
207 d.invalidateUserLock.Lock()
208 defer d.invalidateUserLock.Unlock()
209 return len(d.invalidateUserIDs)
210}
211
212func (s *testWebpushErrorStore) GetWebpushSubscriptionsByUserID(ctx context.Context, userID uuid.UUID) ([]database.WebpushSubscription, error) {
213 if err := s.getWebpushSubscriptionsErr.Load(); err != nil {

Callers 1

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected