testutil

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

README

Testutil Directory

The x/testutil directory is not a cosmos-sdk module perse, but a collection of test utilities to make testing the other x/modules.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConsensusParams = &abci.ConsensusParams{
	Block: &abci.BlockParams{
		MaxBytes: 200000,
		MaxGas:   2000000,
	},
	Evidence: &tmproto.EvidenceParams{
		MaxAgeNumBlocks: 302400,
		MaxAgeDuration:  504 * time.Hour,
		MaxBytes:        10000,
	},
	Validator: &tmproto.ValidatorParams{
		PubKeyTypes: []string{
			tmtypes.ABCIPubKeyTypeEd25519,
		},
	},
}

Functions

func DefaultConfig

func DefaultConfig() network.Config

DefaultConfig returns a default configuration suitable for nearly all testing requirements.

func DefaultFeeString

func DefaultFeeString(cfg network.Config) string

func New

func New(shouldUseDefaultGenesis bool) *app.NibiruApp

New creates application instance with in-memory database and disabled logging.

func NewAppConstructor

func NewAppConstructor(encodingCfg simappparams.EncodingConfig) network.AppConstructor

func NewNibiruApp

func NewNibiruApp(shouldUseDefaultGenesis bool) (*app.NibiruApp, sdk.Context)

func ParseSdkIntFromString

func ParseSdkIntFromString(s string, separator string) ([]sdk.Int, error)

func ParseUint64SliceFromString

func ParseUint64SliceFromString(s string, separator string) ([]uint64, error)

func RequireEqualWithMessage

func RequireEqualWithMessage(
	t require.TestingT, expected interface{}, actual interface{}, varName string)

Types

This section is empty.

Directories

Path Synopsis
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators.
Package network implements and exposes a fully operational in-process Tendermint test network that consists of at least one or potentially many validators.
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.

Jump to

Keyboard shortcuts

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