(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestXZSetScan(t *testing.T) { |
| 188 | c := getTestConn() |
| 189 | ctx := context.Background() |
| 190 | |
| 191 | key := "scan_zset" |
| 192 | c.Do(ctx, "ZADD", key, 1, "a", 2, "b") |
| 193 | |
| 194 | if ay, err := c.Do(ctx, "XZSCAN", key, "").Result(); err != nil { |
| 195 | t.Fatal(err) |
| 196 | } else if ay, ok := ay.([]interface{}); !ok || len(ay) != 2 { |
| 197 | t.Fatal(len(ay)) |
| 198 | } else { |
| 199 | checkScanValues(t, ay[1], "a", "1", "b", "2") |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | func TestZSetScan(t *testing.T) { |
| 204 | c := getTestConn() |
nothing calls this directly
no test coverage detected