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

Function testKVScan

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

Source from the content-addressed store, hash-verified

67}
68
69func testKVScan(t *testing.T, c *redis.Client) {
70 ctx := context.Background()
71 for i := 0; i < 10; i++ {
72 if err := c.Do(ctx, "set", fmt.Sprintf("%d", i), []byte("value")).Err(); err != nil {
73 t.Fatal(err)
74 }
75 }
76 checkScan(t, c, "KV")
77}
78
79func testHashKeyScan(t *testing.T, c *redis.Client) {
80 ctx := context.Background()

Callers 1

TestScanFunction · 0.85

Calls 2

checkScanFunction · 0.85
DoMethod · 0.45

Tested by

no test coverage detected