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

Method SetupTest

acl/upgrade_test.go:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (asuite *AclTestSuite) SetupTest() {
31 conf := dgraphtest.NewClusterConfig().WithNumAlphas(1).WithNumZeros(1).
32 WithReplicas(1).WithACL(20 * time.Second).WithEncryption().WithVersion(asuite.uc.Before)
33 c, err := dgraphtest.NewLocalCluster(conf)
34 x.Panic(err)
35 if err := c.Start(); err != nil {
36 c.Cleanup(true)
37 asuite.T().Fatal(err)
38 }
39 asuite.lc = c
40 asuite.dc = c
41}
42
43func (asuite *AclTestSuite) TearDownTest() {
44 asuite.lc.Cleanup(asuite.T().Failed())

Callers

nothing calls this directly

Calls 12

StartMethod · 0.95
CleanupMethod · 0.95
NewClusterConfigFunction · 0.92
NewLocalClusterFunction · 0.92
PanicFunction · 0.92
WithVersionMethod · 0.80
WithACLMethod · 0.80
WithReplicasMethod · 0.80
WithNumZerosMethod · 0.80
WithNumAlphasMethod · 0.80
FatalMethod · 0.80
WithEncryptionMethod · 0.45

Tested by

no test coverage detected