(ctx context.Context, key string, val []byte, exp time.Duration)
| 83 | } |
| 84 | |
| 85 | func (s *countingFailStorage) SetWithContext(ctx context.Context, key string, val []byte, exp time.Duration) error { |
| 86 | s.setCount++ |
| 87 | if s.setCount > s.failAfterN { |
| 88 | return s.setFailErr |
| 89 | } |
| 90 | return s.failingLimiterStorage.SetWithContext(ctx, key, val, exp) |
| 91 | } |
| 92 | |
| 93 | type contextRecord struct { |
| 94 | key string |
nothing calls this directly
no test coverage detected