mocks

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlashingKeeper

type SlashingKeeper struct {
	mock.Mock
}

SlashingKeeper is an autogenerated mock type for the SlashingKeeper type

func NewSlashingKeeper

func NewSlashingKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *SlashingKeeper

NewSlashingKeeper creates a new instance of SlashingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*SlashingKeeper) IterateValidatorSigningInfos

func (_m *SlashingKeeper) IterateValidatorSigningInfos(_a0 context.Context, _a1 func(types.ConsAddress, slashingtypes.ValidatorSigningInfo) bool) error

IterateValidatorSigningInfos provides a mock function with given fields: _a0, _a1

func (*SlashingKeeper) SignedBlocksWindow

func (_m *SlashingKeeper) SignedBlocksWindow(_a0 context.Context) (int64, error)

SignedBlocksWindow provides a mock function with given fields: _a0

type StakingKeeper

type StakingKeeper struct {
	mock.Mock
}

StakingKeeper is an autogenerated mock type for the StakingKeeper type

func NewStakingKeeper

func NewStakingKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *StakingKeeper

NewStakingKeeper creates a new instance of StakingKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StakingKeeper) GetValidator

func (_m *StakingKeeper) GetValidator(_a0 context.Context, _a1 types.ValAddress) (stakingtypes.Validator, error)

GetValidator provides a mock function with given fields: _a0, _a1

func (*StakingKeeper) GetValidatorByConsAddr

func (_m *StakingKeeper) GetValidatorByConsAddr(_a0 context.Context, _a1 types.ConsAddress) (stakingtypes.Validator, error)

GetValidatorByConsAddr provides a mock function with given fields: _a0, _a1

func (*StakingKeeper) IterateValidators

func (_m *StakingKeeper) IterateValidators(_a0 context.Context, _a1 func(int64, stakingtypes.ValidatorI) bool) error

IterateValidators provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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