MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / TestVectorGraphQLAddVectorPredicate

Function TestVectorGraphQLAddVectorPredicate

query/vector/vector_graphql_test.go:155–163  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

153}
154
155func TestVectorGraphQLAddVectorPredicate(t *testing.T) {
156 require.NoError(t, client.DropAll())
157
158 hc, err := dc.HTTPClient()
159 require.NoError(t, err)
160 hc.LoginIntoNamespace("groot", "password", 0)
161 // add schema
162 require.NoError(t, hc.UpdateGQLSchema(fmt.Sprintf(graphQLVectorSchema, "euclidean")))
163}
164
165func TestVectorSchema(t *testing.T) {
166 require.NoError(t, client.DropAll())

Callers

nothing calls this directly

Calls 4

DropAllMethod · 0.80
LoginIntoNamespaceMethod · 0.80
UpdateGQLSchemaMethod · 0.80
HTTPClientMethod · 0.65

Tested by

no test coverage detected