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

Function newMaintNotificationsTestClient

internal_maint_notif_test.go:393–403  ·  view source on GitHub ↗
(addr string, mode maintnotifications.Mode)

Source from the content-addressed store, hash-verified

391}
392
393func newMaintNotificationsTestClient(addr string, mode maintnotifications.Mode) (*Options, *baseClient) {
394 opt := &Options{
395 Addr: addr,
396 Protocol: 3,
397 MaintNotificationsConfig: &maintnotifications.Config{
398 Mode: mode,
399 },
400 }
401 opt.init()
402 return opt, newTestBaseClient(opt)
403}
404
405func assertMaintNotificationsCalls(t *testing.T, srv interface{ Commands() []string }, want int) {
406 t.Helper()

Calls 2

initMethod · 0.95
newTestBaseClientFunction · 0.85

Tested by

no test coverage detected