(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestZSetScan(t *testing.T) { |
| 204 | c := getTestConn() |
| 205 | ctx := context.Background() |
| 206 | |
| 207 | key := "scan_zset" |
| 208 | c.Do(ctx, "ZADD", key, 1, "a", 2, "b") |
| 209 | |
| 210 | if ay, err := c.Do(ctx, "XZSCAN", key, "0").Result(); err != nil { |
| 211 | t.Fatal(err) |
| 212 | } else if ay, ok := ay.([]interface{}); !ok || len(ay) != 2 { |
| 213 | t.Fatal(len(ay)) |
| 214 | } else { |
| 215 | checkScanValues(t, ay[1], "a", "1", "b", "2") |
| 216 | } |
| 217 | } |
nothing calls this directly
no test coverage detected