testclient

package
v0.1.37 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: MIT Imports: 17 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

View Source
var (
	// LocalCometTCPURL provides a default URL pointing to the localnet TCP endpoint.
	LocalCometTCPURL = "tcp://localhost:26657"

	// TxConfig provided by app.AppConfig(), intended as a convenience for use in tests.
	TxConfig client.TxConfig
	// Marshaler provided by app.AppConfig(), intended as a convenience for use in tests.
	Marshaler codec.Codec
	// InterfaceRegistry provided by app.AppConfig(), intended as a convenience for use in tests.
	InterfaceRegistry codectypes.InterfaceRegistry
)

Functions

func NewKey

func NewKey(
	t *testing.T,
	name string,
	keyring cosmoskeyring.Keyring,
) (key *cosmoskeyring.Record, mnemonic string)

NewKey creates a new Secp256k1 key and mnemonic for the given name within the provided keyring.

func NewLocalnetClientCtx

func NewLocalnetClientCtx(t gocuke.TestingT, flagSet *pflag.FlagSet) *client.Context

NewLocalnetClientCtx creates a client context specifically tailored for localnet environments. The returned client context is initialized with encoding configurations, a default home directory, a default account retriever, and command flags.

Parameters: - t: The testing.T instance used for the current test. - flagSet: The set of flags to be read for initializing the client context.

Returns: - A pointer to a populated client.Context instance suitable for localnet usage.

func NewLocalnetFlagSet

func NewLocalnetFlagSet(t gocuke.TestingT) *pflag.FlagSet

NewLocalnetFlagSet creates a set of predefined flags suitable for a localnet testing environment.

Parameters: - t: The testing.T instance used for the current test.

Returns: - A flag set populated with flags tailored for localnet environments.

Types

This section is empty.

Directories

Path Synopsis
Package testblock provides helper functions for constructing real (e.g.
Package testblock provides helper functions for constructing real (e.g.
Package testqueryclients provides helper functions for contstructing mock AccountQueryClient objects parameterized call arguments, return value(s), and/or expectations thereof.
Package testqueryclients provides helper functions for contstructing mock AccountQueryClient objects parameterized call arguments, return value(s), and/or expectations thereof.

Jump to

Keyboard shortcuts

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