(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestScan(t *testing.T) { |
| 15 | c := getTestConn() |
| 16 | |
| 17 | ctx := context.Background() |
| 18 | |
| 19 | c.FlushAll(ctx) |
| 20 | testKVScan(t, c) |
| 21 | testHashKeyScan(t, c) |
| 22 | testListKeyScan(t, c) |
| 23 | testZSetKeyScan(t, c) |
| 24 | testSetKeyScan(t, c) |
| 25 | c.FlushAll(ctx) |
| 26 | } |
| 27 | |
| 28 | func checkScanValues(t *testing.T, ay interface{}, values ...interface{}) { |
| 29 | a, ok := ay.([]interface{}) |
nothing calls this directly
no test coverage detected