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

Method count

tx_unwatch_test.go:34–44  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

32}
33
34func (h *cmdRecorder) count(name string) int {
35 h.mu.Lock()
36 defer h.mu.Unlock()
37 n := 0
38 for _, c := range h.sent {
39 if c == name {
40 n++
41 }
42 }
43 return n
44}
45
46func (h *cmdRecorder) DialHook(next redis.DialHook) redis.DialHook { return next }
47

Callers 2

hasMethod · 0.95
tx_unwatch_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected