Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- type MockSlashingKeeper
- type MockSlashingKeeperMockRecorder
- type MockStakingKeeper
- func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
- func (m *MockStakingKeeper) GetAllValidators(ctx context.Context) ([]types1.Validator, error)
- func (m *MockStakingKeeper) GetBondedValidatorsByPower(ctx context.Context) ([]types1.Validator, error)
- func (m *MockStakingKeeper) GetLastTotalPower(ctx context.Context) (math.Int, error)
- func (m *MockStakingKeeper) GetValidator(ctx context.Context, addr types0.ValAddress) (types1.Validator, error)
- func (m *MockStakingKeeper) GetValidatorUpdates(ctx context.Context) ([]types.ValidatorUpdate, error)
- func (m *MockStakingKeeper) IterateLastValidatorPowers(ctx context.Context, handler func(types0.ValAddress, int64) bool) error
- type MockStakingKeeperMockRecorder
- func (mr *MockStakingKeeperMockRecorder) GetAllValidators(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetBondedValidatorsByPower(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetLastTotalPower(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetValidatorUpdates(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) IterateLastValidatorPowers(ctx, handler any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSlashingKeeper ¶
type MockSlashingKeeper struct {
// contains filtered or unexported fields
}
MockSlashingKeeper is a mock of SlashingKeeper interface.
func NewMockSlashingKeeper ¶
func NewMockSlashingKeeper(ctrl *gomock.Controller) *MockSlashingKeeper
NewMockSlashingKeeper creates a new mock instance.
func (*MockSlashingKeeper) EXPECT ¶
func (m *MockSlashingKeeper) EXPECT() *MockSlashingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSlashingKeeper) Jail ¶
func (m *MockSlashingKeeper) Jail(ctx context.Context, consAddr types0.ConsAddress) error
Jail mocks base method.
type MockSlashingKeeperMockRecorder ¶
type MockSlashingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockSlashingKeeperMockRecorder is the mock recorder for MockSlashingKeeper.
type MockStakingKeeper ¶
type MockStakingKeeper struct {
// contains filtered or unexported fields
}
MockStakingKeeper is a mock of StakingKeeper interface.
func NewMockStakingKeeper ¶
func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper
NewMockStakingKeeper creates a new mock instance.
func (*MockStakingKeeper) EXPECT ¶
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStakingKeeper) GetAllValidators ¶
GetAllValidators mocks base method.
func (*MockStakingKeeper) GetBondedValidatorsByPower ¶
func (m *MockStakingKeeper) GetBondedValidatorsByPower(ctx context.Context) ([]types1.Validator, error)
GetBondedValidatorsByPower mocks base method.
func (*MockStakingKeeper) GetLastTotalPower ¶
GetLastTotalPower mocks base method.
func (*MockStakingKeeper) GetValidator ¶
func (m *MockStakingKeeper) GetValidator(ctx context.Context, addr types0.ValAddress) (types1.Validator, error)
GetValidator mocks base method.
func (*MockStakingKeeper) GetValidatorUpdates ¶
func (m *MockStakingKeeper) GetValidatorUpdates(ctx context.Context) ([]types.ValidatorUpdate, error)
GetValidatorUpdates mocks base method.
func (*MockStakingKeeper) IterateLastValidatorPowers ¶
func (m *MockStakingKeeper) IterateLastValidatorPowers(ctx context.Context, handler func(types0.ValAddress, int64) bool) error
IterateLastValidatorPowers mocks base method.
type MockStakingKeeperMockRecorder ¶
type MockStakingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
func (*MockStakingKeeperMockRecorder) GetAllValidators ¶
func (mr *MockStakingKeeperMockRecorder) GetAllValidators(ctx any) *gomock.Call
GetAllValidators indicates an expected call of GetAllValidators.
func (*MockStakingKeeperMockRecorder) GetBondedValidatorsByPower ¶
func (mr *MockStakingKeeperMockRecorder) GetBondedValidatorsByPower(ctx any) *gomock.Call
GetBondedValidatorsByPower indicates an expected call of GetBondedValidatorsByPower.
func (*MockStakingKeeperMockRecorder) GetLastTotalPower ¶
func (mr *MockStakingKeeperMockRecorder) GetLastTotalPower(ctx any) *gomock.Call
GetLastTotalPower indicates an expected call of GetLastTotalPower.
func (*MockStakingKeeperMockRecorder) GetValidator ¶
func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr any) *gomock.Call
GetValidator indicates an expected call of GetValidator.
func (*MockStakingKeeperMockRecorder) GetValidatorUpdates ¶
func (mr *MockStakingKeeperMockRecorder) GetValidatorUpdates(ctx any) *gomock.Call
GetValidatorUpdates indicates an expected call of GetValidatorUpdates.
func (*MockStakingKeeperMockRecorder) IterateLastValidatorPowers ¶
func (mr *MockStakingKeeperMockRecorder) IterateLastValidatorPowers(ctx, handler any) *gomock.Call
IterateLastValidatorPowers indicates an expected call of IterateLastValidatorPowers.