MCPcopy
hub / github.com/gofiber/fiber / stubStorage

Struct stubStorage

middleware/idempotency/stub_test.go:24–29  ·  view source on GitHub ↗

stubStorage implements fiber.Storage for testing.

Source from the content-addressed store, hash-verified

22
23// stubStorage implements fiber.Storage for testing.
24type stubStorage struct {
25 data map[string][]byte
26 getErr error
27 setErr error
28 setCount int
29}
30
31func (s *stubStorage) Get(key string) ([]byte, error) {
32 if s.getErr != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected