(dim int)
| 24 | } |
| 25 | |
| 26 | func generateRandomVector(dim int) redis.VectorValues { |
| 27 | v := make([]float64, dim) |
| 28 | for i := range v { |
| 29 | v[i] = float64(rand.Intn(1000)) + rand.Float64() |
| 30 | } |
| 31 | return redis.VectorValues{Val: v} |
| 32 | } |
| 33 | |
| 34 | var _ = Describe("Redis VectorSet commands", Label("vectorset"), func() { |
| 35 | ctx := context.TODO() |
no test coverage detected