testutil

package
v0.400.3 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgWithdrawDelegatorRewardExec

func MsgWithdrawDelegatorRewardExec(clientCtx client.Context, valAddr fmt.Stringer, extraArgs ...string) ([]byte, error)

Types

type GRPCQueryTestSuite

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

func (*GRPCQueryTestSuite) SetupSuite

func (s *GRPCQueryTestSuite) SetupSuite()

func (*GRPCQueryTestSuite) TestQueryDelegatorRewardsGRPC

func (s *GRPCQueryTestSuite) TestQueryDelegatorRewardsGRPC()

func (*GRPCQueryTestSuite) TestQueryDelegatorValidatorsGRPC

func (s *GRPCQueryTestSuite) TestQueryDelegatorValidatorsGRPC()

func (*GRPCQueryTestSuite) TestQueryOutstandingRewardsGRPC

func (s *GRPCQueryTestSuite) TestQueryOutstandingRewardsGRPC()

func (*GRPCQueryTestSuite) TestQueryParamsGRPC

func (s *GRPCQueryTestSuite) TestQueryParamsGRPC()

func (*GRPCQueryTestSuite) TestQuerySlashesGRPC

func (s *GRPCQueryTestSuite) TestQuerySlashesGRPC()

func (*GRPCQueryTestSuite) TestQueryValidatorCommissionGRPC

func (s *GRPCQueryTestSuite) TestQueryValidatorCommissionGRPC()

func (*GRPCQueryTestSuite) TestQueryValidatorCommunityPoolGRPC

func (s *GRPCQueryTestSuite) TestQueryValidatorCommunityPoolGRPC()

func (*GRPCQueryTestSuite) TestQueryWithdrawAddressGRPC

func (s *GRPCQueryTestSuite) TestQueryWithdrawAddressGRPC()

type IntegrationTestSuite

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

func NewIntegrationTestSuite

func NewIntegrationTestSuite(cfg network.Config) *IntegrationTestSuite

func (*IntegrationTestSuite) SetupTest

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

func (s *IntegrationTestSuite) TearDownTest()

TearDownTest cleans up the curret test network after _each_ test.

func (*IntegrationTestSuite) TestGetCmdQueryCommunityPool

func (s *IntegrationTestSuite) TestGetCmdQueryCommunityPool()

func (*IntegrationTestSuite) TestGetCmdQueryDelegatorRewards

func (s *IntegrationTestSuite) TestGetCmdQueryDelegatorRewards()

func (*IntegrationTestSuite) TestGetCmdQueryParams

func (s *IntegrationTestSuite) TestGetCmdQueryParams()

func (*IntegrationTestSuite) TestGetCmdQueryValidatorCommission

func (s *IntegrationTestSuite) TestGetCmdQueryValidatorCommission()

func (*IntegrationTestSuite) TestGetCmdQueryValidatorOutstandingRewards

func (s *IntegrationTestSuite) TestGetCmdQueryValidatorOutstandingRewards()

func (*IntegrationTestSuite) TestGetCmdQueryValidatorSlashes

func (s *IntegrationTestSuite) TestGetCmdQueryValidatorSlashes()

func (*IntegrationTestSuite) TestGetCmdSubmitProposal

func (s *IntegrationTestSuite) TestGetCmdSubmitProposal()

func (*IntegrationTestSuite) TestNewFundCommunityPoolCmd

func (s *IntegrationTestSuite) TestNewFundCommunityPoolCmd()

func (*IntegrationTestSuite) TestNewSetWithdrawAddrCmd

func (s *IntegrationTestSuite) TestNewSetWithdrawAddrCmd()

func (*IntegrationTestSuite) TestNewWithdrawAllRewardsCmd

func (s *IntegrationTestSuite) TestNewWithdrawAllRewardsCmd()

func (*IntegrationTestSuite) TestNewWithdrawRewardsCmd

func (s *IntegrationTestSuite) TestNewWithdrawRewardsCmd()

Jump to

Keyboard shortcuts

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