apptesting

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomAccounts

func CreateRandomAccounts(n int) []sdk.AccAddress

func Setup

func Setup(isCheckTx bool) *app.NovaApp

Types

type KeeperTestHelper

type KeeperTestHelper struct {
	suite.Suite

	App         *app.NovaApp
	Ctx         sdk.Context
	QueryHelper *baseapp.QueryServiceTestHelper
	TestAccs    []sdk.AccAddress
	// contains filtered or unexported fields
}

func (*KeeperTestHelper) BuildTx

func (s *KeeperTestHelper) BuildTx(
	txBuilder client.TxBuilder,
	msgs []sdk.Msg,
	sigV2 signing.SignatureV2,
	memo string, txFee sdk.Coins,
	gasLimit uint64,
) authsigning.Tx

BuildTx create transaction

func (*KeeperTestHelper) EndBlock

func (s *KeeperTestHelper) EndBlock()

EndBlock run end block process

func (*KeeperTestHelper) FundAcc

func (s *KeeperTestHelper) FundAcc(acc sdk.AccAddress, amounts sdk.Coins)

FundAcc add coins to the address

func (*KeeperTestHelper) Setup

func (s *KeeperTestHelper) Setup()

type TestHelper

type TestHelper struct {
	suite.Suite

	App *app.NovaApp
	Ctx sdk.Context
}

Jump to

Keyboard shortcuts

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