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