(t *testing.T, c *redis.Client)
| 110 | } |
| 111 | |
| 112 | func 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 | |
| 123 | func TestXHashScan(t *testing.T) { |
| 124 | c := getTestConn() |