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

Function testSetKeyScan

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

Source from the content-addressed store, hash-verified

110}
111
112func testSetKeyScan(t *testing.T, c *redis.Client) {
113 ctx := context.Background()
114 for i := 0; i < 10; i++ {
115 if err := c.Do(ctx, "sadd", fmt.Sprintf("%d", i), fmt.Sprintf("%d", i)).Err(); err != nil {
116 t.Fatal(err)
117 }
118 }
119
120 checkScan(t, c, "SET")
121}
122
123func TestXHashScan(t *testing.T) {
124 c := getTestConn()

Callers 1

TestScanFunction · 0.85

Calls 2

checkScanFunction · 0.85
DoMethod · 0.45

Tested by

no test coverage detected