flakySessionStorage is a fiber.Storage whose Get/Set/Delete operations can be configured to fail, so the session-backed manager error paths can be exercised deterministically.
| 2573 | // configured to fail, so the session-backed manager error paths can be |
| 2574 | // exercised deterministically. |
| 2575 | type flakySessionStorage struct { |
| 2576 | data map[string][]byte |
| 2577 | mu sync.Mutex |
| 2578 | failGet bool |
| 2579 | failSet bool |
| 2580 | failDel bool |
| 2581 | } |
| 2582 | |
| 2583 | func newFlakySessionStorage() *flakySessionStorage { |
| 2584 | return &flakySessionStorage{data: make(map[string][]byte)} |
nothing calls this directly
no outgoing calls
no test coverage detected