MCPcopy Create free account
hub / github.com/akash-network/node / NewNetworkTestSuite

Function NewNetworkTestSuite

testutil/network_suite.go:43–57  ·  view source on GitHub ↗
(cfg *network.Config, container interface{})

Source from the content-addressed store, hash-verified

41}
42
43func NewNetworkTestSuite(cfg *network.Config, container interface{}) *NetworkTestSuite {
44 nts := &NetworkTestSuite{
45 Suite: &suite.Suite{},
46 testIdx: -1,
47 container: container,
48 }
49 if cfg == nil {
50 nts.cfg = network.DefaultConfig(NewTestNetworkFixture)
51 nts.cfg.NumValidators = 1
52 } else {
53 nts.cfg = *cfg
54 }
55
56 return nts
57}
58
59func (nts *NetworkTestSuite) countTests() int {
60 vof := reflect.TypeOf(nts.container)

Callers 2

TestIntegrationGRPCFunction · 0.92
TestIntegrationCLIFunction · 0.92

Calls 1

DefaultConfigFunction · 0.92

Tested by 2

TestIntegrationGRPCFunction · 0.74
TestIntegrationCLIFunction · 0.74