(m *testing.M)
| 17 | ) |
| 18 | |
| 19 | func 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 | } |
nothing calls this directly
no test coverage detected