testutil

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMultiStore

func CreateMultiStore(keys map[string]*storetypes.KVStoreKey, logger log.Logger) storetypes.CommitMultiStore

CreateMultiStore is a helper for setting up multiple stores for provided modules.

func MakeTestTxConfig

func MakeTestTxConfig(codecOpt testutil.CodecOptions) client.TxConfig

Types

type TestBuilderTxConfig

type TestBuilderTxConfig struct {
	client.TxConfig
	TxBuilder *TestTxBuilder
}

func MakeBuilderTestTxConfig

func MakeBuilderTestTxConfig(codecOpt testutil.CodecOptions) TestBuilderTxConfig

func (TestBuilderTxConfig) NewTxBuilder

func (cfg TestBuilderTxConfig) NewTxBuilder() client.TxBuilder

type TestEncodingConfig

type TestEncodingConfig struct {
	InterfaceRegistry types.InterfaceRegistry
	Codec             codec.Codec
	TxConfig          client.TxConfig
	Amino             *codec.LegacyAmino
}

TestEncodingConfig defines an encoding configuration that is used for testing purposes. Note, MakeTestEncodingConfig takes a series of AppModule types which should only contain the relevant module being tested and any potential dependencies.

func MakeTestEncodingConfig

func MakeTestEncodingConfig(codecOpt testutil.CodecOptions, modules ...module.AppModule) TestEncodingConfig

type TestTxBuilder

type TestTxBuilder struct {
	client.TxBuilder
	ExtOptions []*types.Any
}

func (*TestTxBuilder) SetExtensionOptions

func (b *TestTxBuilder) SetExtensionOptions(extOpts ...*types.Any)

Jump to

Keyboard shortcuts

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