(t *testing.T, c *redis.Client)
| 88 | } |
| 89 | |
| 90 | func testListKeyScan(t *testing.T, c *redis.Client) { |
| 91 | ctx := context.Background() |
| 92 | for i := 0; i < 10; i++ { |
| 93 | if err := c.Do(ctx, "lpush", fmt.Sprintf("%d", i), fmt.Sprintf("%d", i)).Err(); err != nil { |
| 94 | t.Fatal(err) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | checkScan(t, c, "LIST") |
| 99 | } |
| 100 | |
| 101 | func testZSetKeyScan(t *testing.T, c *redis.Client) { |
| 102 | ctx := context.Background() |