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

Function testHashKeyScan

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

Source from the content-addressed store, hash-verified

77}
78
79func testHashKeyScan(t *testing.T, c *redis.Client) {
80 ctx := context.Background()
81 for i := 0; i < 10; i++ {
82 if err := c.Do(ctx, "hset", fmt.Sprintf("%d", i), fmt.Sprintf("%d", i), []byte("value")).Err(); err != nil {
83 t.Fatal(err)
84 }
85 }
86
87 checkScan(t, c, "HASH")
88}
89
90func testListKeyScan(t *testing.T, c *redis.Client) {
91 ctx := context.Background()

Callers 1

TestScanFunction · 0.85

Calls 2

checkScanFunction · 0.85
DoMethod · 0.45

Tested by

no test coverage detected