(t *testing.T)
| 153 | } |
| 154 | |
| 155 | func TestXSetScan(t *testing.T) { |
| 156 | c := getTestConn() |
| 157 | |
| 158 | ctx := context.Background() |
| 159 | key := "scan_set" |
| 160 | c.Do(ctx, "SADD", key, "a", "b") |
| 161 | |
| 162 | if ay, err := c.Do(ctx, "XSSCAN", key, "").Result(); err != nil { |
| 163 | t.Fatal(err) |
| 164 | } else if ay, ok := ay.([]interface{}); !ok || len(ay) != 2 { |
| 165 | t.Fatal(len(ay)) |
| 166 | } else { |
| 167 | checkScanValues(t, ay[1], "a", "b") |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | func TestSetScan(t *testing.T) { |
| 172 | c := getTestConn() |
nothing calls this directly
no test coverage detected