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

Method record

internal_maint_notif_test.go:486–500  ·  view source on GitHub ↗
(full string)

Source from the content-addressed store, hash-verified

484}
485
486func (s *mockMaintNotificationsDowngradeServer) record(full string) int {
487 s.mu.Lock()
488 defer s.mu.Unlock()
489 s.commands = append(s.commands, full)
490 if full != maintNotificationsCommand {
491 return 0
492 }
493 calls := 0
494 for _, cmd := range s.commands {
495 if cmd == maintNotificationsCommand {
496 calls++
497 }
498 }
499 return calls
500}
501
502func (s *mockMaintNotificationsDowngradeServer) handle(c net.Conn) {
503 defer c.Close()

Callers 1

handleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected