(t *testing.T, c *redis.Client)
| 77 | } |
| 78 | |
| 79 | func 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 | |
| 90 | func testListKeyScan(t *testing.T, c *redis.Client) { |
| 91 | ctx := context.Background() |