(ctx context.Context, key string)
| 76 | } |
| 77 | |
| 78 | func (s *contextCheckingStorage) GetWithContext(ctx context.Context, key string) ([]byte, error) { |
| 79 | if ctx.Value(s.ctxKey) == nil { |
| 80 | return nil, errors.New("context value not found") |
| 81 | } |
| 82 | return s.base.GetWithContext(ctx, key) |
| 83 | } |
| 84 | |
| 85 | func (s *contextCheckingStorage) DeleteWithContext(ctx context.Context, key string) error { |
| 86 | if ctx.Value(s.ctxKey) == nil { |
no test coverage detected