MCPcopy
hub / github.com/dgraph-io/dgraph / initTest

Function initTest

worker/worker_test.go:144–148  ·  view source on GitHub ↗
(t *testing.T, schemaStr string)

Source from the content-addressed store, hash-verified

142}
143
144func initTest(t *testing.T, schemaStr string) {
145 err := schema.ParseBytes([]byte(schemaStr), 1)
146 require.NoError(t, err)
147 populateGraph(t)
148}
149
150func initClusterTest(t *testing.T, schemaStr string) *dgo.Dgraph {
151 dg, err := testutil.DgraphClient(testutil.GetSockAddr())

Callers 1

TestCheckSchemaFunction · 0.85

Calls 2

ParseBytesFunction · 0.92
populateGraphFunction · 0.85

Tested by

no test coverage detected