testutil

package
v0.4.0-dev.10 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

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

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.

func (*MockSlashingKeeperMockRecorder) Jail

func (mr *MockSlashingKeeperMockRecorder) Jail(ctx, consAddr any) *gomock.Call

Jail indicates an expected call of Jail.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStakingKeeper) GetAllValidators

func (m *MockStakingKeeper) GetAllValidators(ctx context.Context) ([]types1.Validator, error)

GetAllValidators mocks base method.

func (*MockStakingKeeper) GetBondedValidatorsByPower

func (m *MockStakingKeeper) GetBondedValidatorsByPower(ctx context.Context) ([]types1.Validator, error)

GetBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) GetLastTotalPower

func (m *MockStakingKeeper) GetLastTotalPower(ctx context.Context) (math.Int, error)

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.

Jump to

Keyboard shortcuts

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