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

Function TestMain

query/integration_test.go:19–32  ·  view source on GitHub ↗
(m *testing.M)

Source from the content-addressed store, hash-verified

17)
18
19func TestMain(m *testing.M) {
20 dc = dgraphtest.NewComposeCluster()
21
22 var err error
23 var cleanup func()
24 client, cleanup, err = dc.Client()
25 x.Panic(err)
26 defer cleanup()
27 x.Panic(client.LoginIntoNamespace(context.Background(), dgraphapi.DefaultUser,
28 dgraphapi.DefaultPassword, x.RootNamespace))
29
30 populateCluster(dc)
31 m.Run()
32}

Callers

nothing calls this directly

Calls 7

NewComposeClusterFunction · 0.92
PanicFunction · 0.92
cleanupFunction · 0.85
LoginIntoNamespaceMethod · 0.80
populateClusterFunction · 0.70
ClientMethod · 0.65
RunMethod · 0.45

Tested by

no test coverage detected