MCPcopy
hub / github.com/redis/go-redis / mockPool

Struct mockPool

maintnotifications/pool_hook_test.go:49–52  ·  view source on GitHub ↗

mockPool implements pool.Pooler for testing

Source from the content-addressed store, hash-verified

47
48// mockPool implements pool.Pooler for testing
49type mockPool struct {
50 removedConnections map[uint64]bool
51 mu sync.Mutex
52}
53
54func (mp *mockPool) NewConn(ctx context.Context) (*pool.Conn, error) {
55 return nil, errors.New("not implemented")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected