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

Struct cmdErrInjector

tx_unwatch_test.go:120–123  ·  view source on GitHub ↗

cmdErrInjector fails a single named command without sending it, simulating a server error on that command (e.g. a WATCH that the server rejects).

Source from the content-addressed store, hash-verified

118// cmdErrInjector fails a single named command without sending it, simulating a
119// server error on that command (e.g. a WATCH that the server rejects).
120type cmdErrInjector struct {
121 name string
122 err error
123}
124
125func (h *cmdErrInjector) DialHook(next redis.DialHook) redis.DialHook { return next }
126

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected