networksuite

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package networksuite provides a base test suite for tests that need a local network instance

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultAppConstructor = func(val network.ValidatorI) servertypes.Application {
		return app.New(
			val.GetCtx().Logger,
			cmtdb.NewMemDB(),
			nil,
			true,
			simtestutil.EmptyAppOptions{},
			baseapp.SetPruning(pruningtypes.NewPruningOptionsFromString(val.GetAppConfig().Pruning)),
			baseapp.SetMinGasPrices(val.GetAppConfig().MinGasPrices),
			baseapp.SetChainID(chainID),
		)
	}
)

Functions

This section is empty.

Types

type NetworkTestSuite

type NetworkTestSuite struct {
	suite.Suite

	NetworkSuite *network.TestSuite
	AuctionState auctiontypes.GenesisState
	AuthState    authtypes.GenesisState
	BankState    banktypes.GenesisState
	Accounts     []*account.Account
}

NetworkTestSuite is a test suite for query tests that initializes a network instance.

func (*NetworkTestSuite) SetupSuite

func (nts *NetworkTestSuite) SetupSuite()

SetupSuite setups the local network with a genesis state.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL