testutil

package
v0.46.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgWithdrawDelegatorRewardExec added in v0.40.0

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

Types

type GRPCQueryTestSuite added in v0.46.0

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

func (*GRPCQueryTestSuite) SetupSuite added in v0.46.0

func (s *GRPCQueryTestSuite) SetupSuite()

func (*GRPCQueryTestSuite) TearDownSuite added in v0.46.0

func (s *GRPCQueryTestSuite) TearDownSuite()

TearDownSuite cleans up the curret test network after _each_ test.

func (*GRPCQueryTestSuite) TestQueryDelegatorRewardsGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQueryDelegatorRewardsGRPC()

func (*GRPCQueryTestSuite) TestQueryDelegatorValidatorsGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQueryDelegatorValidatorsGRPC()

func (*GRPCQueryTestSuite) TestQueryOutstandingRewardsGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQueryOutstandingRewardsGRPC()

func (*GRPCQueryTestSuite) TestQueryParamsGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQueryParamsGRPC()

func (*GRPCQueryTestSuite) TestQuerySlashesGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQuerySlashesGRPC()

func (*GRPCQueryTestSuite) TestQueryValidatorCommissionGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQueryValidatorCommissionGRPC()

func (*GRPCQueryTestSuite) TestQueryValidatorCommunityPoolGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQueryValidatorCommunityPoolGRPC()

func (*GRPCQueryTestSuite) TestQueryWithdrawAddressGRPC added in v0.46.0

func (s *GRPCQueryTestSuite) TestQueryWithdrawAddressGRPC()

type IntegrationTestSuite added in v0.43.0

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

func NewIntegrationTestSuite added in v0.43.0

func NewIntegrationTestSuite(cfg network.Config) *IntegrationTestSuite

func (*IntegrationTestSuite) SetupSuite added in v0.46.0

func (s *IntegrationTestSuite) SetupSuite()

SetupSuite 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) TearDownSuite added in v0.46.0

func (s *IntegrationTestSuite) TearDownSuite()

TearDownSuite cleans up the curret test network after _each_ test.

func (*IntegrationTestSuite) TestGetCmdQueryCommunityPool added in v0.43.0

func (s *IntegrationTestSuite) TestGetCmdQueryCommunityPool()

func (*IntegrationTestSuite) TestGetCmdQueryDelegatorRewards added in v0.43.0

func (s *IntegrationTestSuite) TestGetCmdQueryDelegatorRewards()

func (*IntegrationTestSuite) TestGetCmdQueryParams added in v0.43.0

func (s *IntegrationTestSuite) TestGetCmdQueryParams()

func (*IntegrationTestSuite) TestGetCmdQueryValidatorCommission added in v0.43.0

func (s *IntegrationTestSuite) TestGetCmdQueryValidatorCommission()

func (*IntegrationTestSuite) TestGetCmdQueryValidatorOutstandingRewards added in v0.43.0

func (s *IntegrationTestSuite) TestGetCmdQueryValidatorOutstandingRewards()

func (*IntegrationTestSuite) TestGetCmdQueryValidatorSlashes added in v0.43.0

func (s *IntegrationTestSuite) TestGetCmdQueryValidatorSlashes()

func (*IntegrationTestSuite) TestGetCmdSubmitProposal added in v0.43.0

func (s *IntegrationTestSuite) TestGetCmdSubmitProposal()

func (*IntegrationTestSuite) TestNewFundCommunityPoolCmd added in v0.43.0

func (s *IntegrationTestSuite) TestNewFundCommunityPoolCmd()

func (*IntegrationTestSuite) TestNewSetWithdrawAddrCmd added in v0.43.0

func (s *IntegrationTestSuite) TestNewSetWithdrawAddrCmd()

func (*IntegrationTestSuite) TestNewWithdrawAllRewardsCmd added in v0.43.0

func (s *IntegrationTestSuite) TestNewWithdrawAllRewardsCmd()

func (*IntegrationTestSuite) TestNewWithdrawRewardsCmd added in v0.43.0

func (s *IntegrationTestSuite) TestNewWithdrawRewardsCmd()

type WithdrawAllTestSuite added in v0.46.0

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

func (*WithdrawAllTestSuite) SetupSuite added in v0.46.0

func (s *WithdrawAllTestSuite) SetupSuite()

func (*WithdrawAllTestSuite) TearDownSuite added in v0.46.0

func (s *WithdrawAllTestSuite) TearDownSuite()

TearDownSuite cleans up the curret test network after _each_ test.

func (*WithdrawAllTestSuite) TestNewWithdrawAllRewardsGenerateOnly added in v0.46.0

func (s *WithdrawAllTestSuite) TestNewWithdrawAllRewardsGenerateOnly()

This test requires multiple validators, if I add this test to `IntegrationTestSuite` by increasing `NumValidators` the existing tests are leading to non-determnism so created new suite for this test.

Jump to

Keyboard shortcuts

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