MCPcopy
hub / github.com/CodisLabs/codis / player

Method player

extern/deprecated/redis-test/basic_incr.go:39–51  ·  view source on GitHub ↗
(gid int, tg *TestGroup)

Source from the content-addressed store, hash-verified

37}
38
39func (tc *BasicIncrTestCase) player(gid int, tg *TestGroup) {
40 tg.PlayerWait()
41 defer tg.PlayerDone()
42 c := NewConn(tc.proxy)
43 defer c.Close()
44 u := NewUnit(fmt.Sprintf("basic_incr_%d_tag{%s}", gid, NewZeroTag()))
45 u.Del(c, false)
46 for i := 0; i < tc.round; i++ {
47 u.Incr(c)
48 ops.Incr()
49 }
50 u.Del(c, true)
51}

Callers 1

mainMethod · 0.95

Calls 8

CloseMethod · 0.95
DelMethod · 0.95
IncrMethod · 0.95
NewUnitFunction · 0.85
NewZeroTagFunction · 0.85
PlayerWaitMethod · 0.80
PlayerDoneMethod · 0.80
NewConnFunction · 0.70

Tested by

no test coverage detected