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

Function testListKeyScan

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

Source from the content-addressed store, hash-verified

88}
89
90func testListKeyScan(t *testing.T, c *redis.Client) {
91 ctx := context.Background()
92 for i := 0; i < 10; i++ {
93 if err := c.Do(ctx, "lpush", fmt.Sprintf("%d", i), fmt.Sprintf("%d", i)).Err(); err != nil {
94 t.Fatal(err)
95 }
96 }
97
98 checkScan(t, c, "LIST")
99}
100
101func testZSetKeyScan(t *testing.T, c *redis.Client) {
102 ctx := context.Background()

Callers 1

TestScanFunction · 0.85

Calls 2

checkScanFunction · 0.85
DoMethod · 0.45

Tested by

no test coverage detected