(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestHashScan(t *testing.T) { |
| 140 | c := getTestConn() |
| 141 | |
| 142 | ctx := context.Background() |
| 143 | key := "scan_hash" |
| 144 | c.Do(ctx, "HMSET", key, "a", 1, "b", 2) |
| 145 | |
| 146 | if ay, err := c.Do(ctx, "HSCAN", key, "0").Result(); err != nil { |
| 147 | t.Fatal(err) |
| 148 | } else if ay, ok := ay.([]interface{}); !ok || len(ay) != 2 { |
| 149 | t.Fatal(len(ay)) |
| 150 | } else { |
| 151 | checkScanValues(t, ay[1], "a", "1", "b", "2") |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | func TestXSetScan(t *testing.T) { |
| 156 | c := getTestConn() |
nothing calls this directly
no test coverage detected