(t *testing.T, c *redis.Client)
| 67 | } |
| 68 | |
| 69 | func 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 | |
| 79 | func testHashKeyScan(t *testing.T, c *redis.Client) { |
| 80 | ctx := context.Background() |