testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 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() testutilcli.Config

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

func DefaultFeeString

func DefaultFeeString(cfg testutilcli.Config) string

func NewAppConstructor

func NewAppConstructor() testutilcli.AppConstructor

func NewNibiruApp

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

NewNibiruApp creates an 'app.NibiruApp' instance with an in-memory

'tmdb.MemDB' and fresh 'sdk.Context'.

func NewTestApp added in v0.1.0

func NewTestApp(shouldUseDefaultGenesis bool) *app.NibiruApp

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

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 mock is a generated GoMock package.
Package mock is a generated GoMock package.
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