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

Method WithReplicas

dgraphtest/config.go:160–163  ·  view source on GitHub ↗

WithReplicas sets the number of replicas in each alpha group

(n int)

Source from the content-addressed store, hash-verified

158
159// WithReplicas sets the number of replicas in each alpha group
160func (cc ClusterConfig) WithReplicas(n int) ClusterConfig {
161 cc.replicas = n
162 return cc
163}
164
165// WithVerbosity sets the verbosity level for the logs
166func (cc ClusterConfig) WithVerbosity(v int) ClusterConfig {

Callers 15

TestCheckUpgradeFunction · 0.80
TestQueryDuplicateNodesFunction · 0.80
setupBulkClusterFunction · 0.80
setupTargetClusterFunction · 0.80
TestMCPSSEFunction · 0.80
TestMainFunction · 0.80
TestShortestPathFunction · 0.80
SetupSubTestMethod · 0.80

Calls

no outgoing calls

Tested by 15

TestCheckUpgradeFunction · 0.64
TestQueryDuplicateNodesFunction · 0.64
setupBulkClusterFunction · 0.64
setupTargetClusterFunction · 0.64
TestMCPSSEFunction · 0.64
TestMainFunction · 0.64
TestShortestPathFunction · 0.64
SetupSubTestMethod · 0.64