testutil

package
v3.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: GPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 MockAuthzKeeper

type MockAuthzKeeper struct {
	// contains filtered or unexported fields
}

MockAuthzKeeper is a mock of AuthzKeeper interface.

func NewMockAuthzKeeper

func NewMockAuthzKeeper(ctrl *gomock.Controller) *MockAuthzKeeper

NewMockAuthzKeeper creates a new mock instance.

func (*MockAuthzKeeper) EXPECT

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

func (*MockAuthzKeeper) GetAuthorization

func (m *MockAuthzKeeper) GetAuthorization(ctx context.Context, feeder, granter types0.AccAddress, msgType string) (authz.Authorization, *time.Time)

GetAuthorization mocks base method.

type MockAuthzKeeperMockRecorder

type MockAuthzKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthzKeeperMockRecorder is the mock recorder for MockAuthzKeeper.

func (*MockAuthzKeeperMockRecorder) GetAuthorization

func (mr *MockAuthzKeeperMockRecorder) GetAuthorization(ctx, feeder, granter, msgType any) *gomock.Call

GetAuthorization indicates an expected call of GetAuthorization.

type MockOracleKeeper

type MockOracleKeeper struct {
	// contains filtered or unexported fields
}

MockOracleKeeper is a mock of OracleKeeper interface.

func NewMockOracleKeeper

func NewMockOracleKeeper(ctrl *gomock.Controller) *MockOracleKeeper

NewMockOracleKeeper creates a new mock instance.

func (*MockOracleKeeper) EXPECT

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

func (*MockOracleKeeper) GetValidatorStatus

func (m *MockOracleKeeper) GetValidatorStatus(ctx types0.Context, val types0.ValAddress) types.ValidatorStatus

GetValidatorStatus mocks base method.

func (*MockOracleKeeper) MissReport

func (m *MockOracleKeeper) MissReport(ctx types0.Context, val types0.ValAddress, requestTime time.Time)

MissReport mocks base method.

type MockOracleKeeperMockRecorder

type MockOracleKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockOracleKeeperMockRecorder is the mock recorder for MockOracleKeeper.

func (*MockOracleKeeperMockRecorder) GetValidatorStatus

func (mr *MockOracleKeeperMockRecorder) GetValidatorStatus(ctx, val any) *gomock.Call

GetValidatorStatus indicates an expected call of GetValidatorStatus.

func (*MockOracleKeeperMockRecorder) MissReport

func (mr *MockOracleKeeperMockRecorder) MissReport(ctx, val, requestTime any) *gomock.Call

MissReport indicates an expected call of MissReport.

type MockRestakeKeeper

type MockRestakeKeeper struct {
	// contains filtered or unexported fields
}

MockRestakeKeeper is a mock of RestakeKeeper interface.

func NewMockRestakeKeeper

func NewMockRestakeKeeper(ctrl *gomock.Controller) *MockRestakeKeeper

NewMockRestakeKeeper creates a new mock instance.

func (*MockRestakeKeeper) EXPECT

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

func (*MockRestakeKeeper) SetLockedPower

func (m *MockRestakeKeeper) SetLockedPower(ctx types0.Context, addr types0.AccAddress, key string, amount math.Int) error

SetLockedPower mocks base method.

type MockRestakeKeeperMockRecorder

type MockRestakeKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockRestakeKeeperMockRecorder is the mock recorder for MockRestakeKeeper.

func (*MockRestakeKeeperMockRecorder) SetLockedPower

func (mr *MockRestakeKeeperMockRecorder) SetLockedPower(ctx, addr, key, amount any) *gomock.Call

SetLockedPower indicates an expected call of SetLockedPower.

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) GetValidator

func (m *MockStakingKeeper) GetValidator(ctx context.Context, addr types0.ValAddress) (types1.Validator, error)

GetValidator mocks base method.

func (*MockStakingKeeper) IterateBondedValidatorsByPower

func (m *MockStakingKeeper) IterateBondedValidatorsByPower(arg0 context.Context, arg1 func(int64, types1.ValidatorI) bool) error

IterateBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) TotalBondedTokens

func (m *MockStakingKeeper) TotalBondedTokens(arg0 context.Context) (math.Int, error)

TotalBondedTokens mocks base method.

type MockStakingKeeperMockRecorder

type MockStakingKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockStakingKeeperMockRecorder) GetValidator

func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr any) *gomock.Call

GetValidator indicates an expected call of GetValidator.

func (*MockStakingKeeperMockRecorder) IterateBondedValidatorsByPower

func (mr *MockStakingKeeperMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 any) *gomock.Call

IterateBondedValidatorsByPower indicates an expected call of IterateBondedValidatorsByPower.

func (*MockStakingKeeperMockRecorder) TotalBondedTokens

func (mr *MockStakingKeeperMockRecorder) TotalBondedTokens(arg0 any) *gomock.Call

TotalBondedTokens indicates an expected call of TotalBondedTokens.

Jump to

Keyboard shortcuts

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