testutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgAdvanceEpochExec added in v0.1.1

func MsgAdvanceEpochExec(clientCtx client.Context, from string,
	extraAtgs ...string) (testutil.BufferWriter, error)

MsgAdvanceEpochExec creates a transaction to advance epoch by 1.

func MsgCreateFixedAmountPlanExec

func MsgCreateFixedAmountPlanExec(clientCtx client.Context, from string, file string,
	extraArgs ...string) (testutil.BufferWriter, error)

MsgCreateFixedAmountPlanExec creates a transaction for creating a private fixed amount plan.

func MsgSendExec added in v0.1.1

func MsgSendExec(clientCtx client.Context, from string, to string, amount string,
	extraAtgs ...string) (testutil.BufferWriter, error)

MsgSendExec creates a transaction to transfer coins.

func MsgStakeExec

func MsgStakeExec(clientCtx client.Context, from string, stakingCoins string,
	extraArgs ...string) (testutil.BufferWriter, error)

MsgStakeExec creates a transaction for staking coin.

func NewAppConstructor

func NewAppConstructor(encodingCfg params.EncodingConfig, db *dbm.MemDB) network.AppConstructor

NewAppConstructor returns a new network AppConstructor.

func NewConfig

func NewConfig(dbm *dbm.MemDB) network.Config

NewConfig returns config that defines the necessary testing requirements used to bootstrap and start an in-process local testing network.

Types

type IntegrationTestSuite added in v0.1.1

type IntegrationTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*IntegrationTestSuite) SetupTest added in v0.1.1

func (s *IntegrationTestSuite) SetupTest()

SetupTest creates a new network for _each_ integration test. We create a new network for each test because there are some state modifications that are needed to be made in order to make useful queries. However, we don't want these state changes to be present in other tests.

func (*IntegrationTestSuite) TearDownTest added in v0.1.1

func (s *IntegrationTestSuite) TearDownTest()

TearDownTest cleans up the current test network after each test in the suite.

func (*IntegrationTestSuite) TestNewCreateFixedAmountPlanCmd added in v0.1.1

func (s *IntegrationTestSuite) TestNewCreateFixedAmountPlanCmd()

func (*IntegrationTestSuite) TestNewCreateRatioPlanCmd added in v0.1.1

func (s *IntegrationTestSuite) TestNewCreateRatioPlanCmd()

func (*IntegrationTestSuite) TestNewHarvestCmd added in v0.1.1

func (s *IntegrationTestSuite) TestNewHarvestCmd()

func (*IntegrationTestSuite) TestNewStakeCmd added in v0.1.1

func (s *IntegrationTestSuite) TestNewStakeCmd()

func (*IntegrationTestSuite) TestNewUnstakeCmd added in v0.1.1

func (s *IntegrationTestSuite) TestNewUnstakeCmd()

type QueryCmdTestSuite added in v0.1.1

type QueryCmdTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*QueryCmdTestSuite) SetupSuite added in v0.1.1

func (s *QueryCmdTestSuite) SetupSuite()

func (*QueryCmdTestSuite) TearDownSuite added in v0.1.1

func (s *QueryCmdTestSuite) TearDownSuite()

func (*QueryCmdTestSuite) TestCmdQueryCurrentEpochDays added in v0.1.1

func (s *QueryCmdTestSuite) TestCmdQueryCurrentEpochDays()

func (*QueryCmdTestSuite) TestCmdQueryParams added in v0.1.1

func (s *QueryCmdTestSuite) TestCmdQueryParams()

func (*QueryCmdTestSuite) TestCmdQueryPlan added in v0.1.1

func (s *QueryCmdTestSuite) TestCmdQueryPlan()

func (*QueryCmdTestSuite) TestCmdQueryPlans added in v0.1.1

func (s *QueryCmdTestSuite) TestCmdQueryPlans()

func (*QueryCmdTestSuite) TestCmdQueryRewards added in v0.1.1

func (s *QueryCmdTestSuite) TestCmdQueryRewards()

func (*QueryCmdTestSuite) TestCmdQueryStakings added in v0.1.1

func (s *QueryCmdTestSuite) TestCmdQueryStakings()

func (*QueryCmdTestSuite) TestCmdQueryTotalStakings added in v0.1.1

func (s *QueryCmdTestSuite) TestCmdQueryTotalStakings()

Jump to

Keyboard shortcuts

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