Documentation
¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- func GenRandCheckpoint(start, headerSize, id uint64) (headerBlock types.Checkpoint)
- func RandDividendAccounts() []hmTypes.DividendAccount
- func RandomBytes() []byte
- type MockChainManagerKeeper
- type MockChainManagerKeeperMockRecorder
- type MockStakeKeeper
- func (m *MockStakeKeeper) EXPECT() *MockStakeKeeperMockRecorder
- func (m *MockStakeKeeper) GetCurrentProposer(ctx context.Context) *types1.Validator
- func (m *MockStakeKeeper) GetValidatorSet(ctx context.Context) (types1.ValidatorSet, error)
- func (m *MockStakeKeeper) IncrementAccum(ctx context.Context, times int) error
- type MockStakeKeeperMockRecorder
- type MockTopupKeeper
- type MockTopupKeeperMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenRandCheckpoint ¶
func GenRandCheckpoint(start, headerSize, id uint64) (headerBlock types.Checkpoint)
GenRandCheckpoint returns a random checkpoint header
func RandDividendAccounts ¶
func RandDividendAccounts() []hmTypes.DividendAccount
func RandomBytes ¶
func RandomBytes() []byte
Types ¶
type MockChainManagerKeeper ¶
type MockChainManagerKeeper struct {
// contains filtered or unexported fields
}
MockChainManagerKeeper is a mock of ChainManagerKeeper interface.
func NewMockChainManagerKeeper ¶
func NewMockChainManagerKeeper(ctrl *gomock.Controller) *MockChainManagerKeeper
NewMockChainManagerKeeper creates a new mock instance.
func (*MockChainManagerKeeper) EXPECT ¶
func (m *MockChainManagerKeeper) EXPECT() *MockChainManagerKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockChainManagerKeeperMockRecorder ¶
type MockChainManagerKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockChainManagerKeeperMockRecorder is the mock recorder for MockChainManagerKeeper.
func (*MockChainManagerKeeperMockRecorder) GetParams ¶
func (mr *MockChainManagerKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call
GetParams indicates an expected call of GetParams.
type MockStakeKeeper ¶
type MockStakeKeeper struct {
// contains filtered or unexported fields
}
MockStakeKeeper is a mock of StakeKeeper interface.
func NewMockStakeKeeper ¶
func NewMockStakeKeeper(ctrl *gomock.Controller) *MockStakeKeeper
NewMockStakeKeeper creates a new mock instance.
func (*MockStakeKeeper) EXPECT ¶
func (m *MockStakeKeeper) EXPECT() *MockStakeKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStakeKeeper) GetCurrentProposer ¶
func (m *MockStakeKeeper) GetCurrentProposer(ctx context.Context) *types1.Validator
GetCurrentProposer mocks base method.
func (*MockStakeKeeper) GetValidatorSet ¶
func (m *MockStakeKeeper) GetValidatorSet(ctx context.Context) (types1.ValidatorSet, error)
GetValidatorSet mocks base method.
func (*MockStakeKeeper) IncrementAccum ¶
func (m *MockStakeKeeper) IncrementAccum(ctx context.Context, times int) error
IncrementAccum mocks base method.
type MockStakeKeeperMockRecorder ¶
type MockStakeKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockStakeKeeperMockRecorder is the mock recorder for MockStakeKeeper.
func (*MockStakeKeeperMockRecorder) GetCurrentProposer ¶
func (mr *MockStakeKeeperMockRecorder) GetCurrentProposer(ctx interface{}) *gomock.Call
GetCurrentProposer indicates an expected call of GetCurrentProposer.
func (*MockStakeKeeperMockRecorder) GetValidatorSet ¶
func (mr *MockStakeKeeperMockRecorder) GetValidatorSet(ctx interface{}) *gomock.Call
GetValidatorSet indicates an expected call of GetValidatorSet.
func (*MockStakeKeeperMockRecorder) IncrementAccum ¶
func (mr *MockStakeKeeperMockRecorder) IncrementAccum(ctx, times interface{}) *gomock.Call
IncrementAccum indicates an expected call of IncrementAccum.
type MockTopupKeeper ¶
type MockTopupKeeper struct {
// contains filtered or unexported fields
}
MockTopupKeeper is a mock of TopupKeeper interface.
func NewMockTopupKeeper ¶
func NewMockTopupKeeper(ctrl *gomock.Controller) *MockTopupKeeper
NewMockTopupKeeper creates a new mock instance.
func (*MockTopupKeeper) EXPECT ¶
func (m *MockTopupKeeper) EXPECT() *MockTopupKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTopupKeeper) GetAllDividendAccounts ¶
func (m *MockTopupKeeper) GetAllDividendAccounts(ctx context.Context) ([]types.DividendAccount, error)
GetAllDividendAccounts mocks base method.
type MockTopupKeeperMockRecorder ¶
type MockTopupKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockTopupKeeperMockRecorder is the mock recorder for MockTopupKeeper.
func (*MockTopupKeeperMockRecorder) GetAllDividendAccounts ¶
func (mr *MockTopupKeeperMockRecorder) GetAllDividendAccounts(ctx interface{}) *gomock.Call
GetAllDividendAccounts indicates an expected call of GetAllDividendAccounts.