(t *testing.T)
| 161 | } |
| 162 | |
| 163 | func TestVectorSchema(t *testing.T) { |
| 164 | dg := initClusterTest(t, ` |
| 165 | neighbour: [uid] . |
| 166 | vectortest: float32vector @index(hnsw(metric: "euclidean")) .`) |
| 167 | |
| 168 | resp, err := testutil.RetryQuery(dg, "schema {}") |
| 169 | require.NoError(t, err) |
| 170 | |
| 171 | x.AssertTrue(strings.Contains(string(resp.Json), `{"predicate":"vectortest","type":"float32vector","tokenizer":["hnsw(\"metric\":\"euclidean\")"],"index_specs":[{"name":"hnsw","options":[{"key":"metric","value":"euclidean"}]}]}]`)) |
| 172 | } |
| 173 | |
| 174 | func TestProcessTask(t *testing.T) { |
| 175 | dg := initClusterTest(t, `neighbour: [uid] .`) |
nothing calls this directly
no test coverage detected