MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / testZSetKeyScan

Function testZSetKeyScan

scan_test.go:101–110  ·  view source on GitHub ↗
(t *testing.T, c *redis.Client)

Source from the content-addressed store, hash-verified

99}
100
101func testZSetKeyScan(t *testing.T, c *redis.Client) {
102 ctx := context.Background()
103 for i := 0; i < 10; i++ {
104 if err := c.Do(ctx, "zadd", fmt.Sprintf("%d", i), i, []byte("value")).Err(); err != nil {
105 t.Fatal(err)
106 }
107 }
108
109 checkScan(t, c, "ZSET")
110}
111
112func testSetKeyScan(t *testing.T, c *redis.Client) {
113 ctx := context.Background()

Callers 1

TestScanFunction · 0.85

Calls 2

checkScanFunction · 0.85
DoMethod · 0.45

Tested by

no test coverage detected