mocks

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusKeeper

type ConsensusKeeper struct {
	mock.Mock
}

ConsensusKeeper is an autogenerated mock type for the ConsensusKeeper type

func NewConsensusKeeper

func NewConsensusKeeper(t mockConstructorTestingTNewConsensusKeeper) *ConsensusKeeper

NewConsensusKeeper creates a new instance of ConsensusKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConsensusKeeper) DeleteJob added in v0.8.0

func (_m *ConsensusKeeper) DeleteJob(ctx types.Context, queueTypeName string, id uint64) error

DeleteJob provides a mock function with given fields: ctx, queueTypeName, id

func (*ConsensusKeeper) GetMessagesFromQueue added in v0.8.0

func (_m *ConsensusKeeper) GetMessagesFromQueue(ctx types.Context, queueTypeName string, n int) ([]consensustypes.QueuedSignedMessageI, error)

GetMessagesFromQueue provides a mock function with given fields: ctx, queueTypeName, n

func (*ConsensusKeeper) PutMessageInQueue added in v0.6.0

func (_m *ConsensusKeeper) PutMessageInQueue(ctx types.Context, queueTypeName string, msg consensustypes.ConsensusMsg, opts *consensus.PutOptions) error

PutMessageInQueue provides a mock function with given fields: ctx, queueTypeName, msg, opts

func (*ConsensusKeeper) RemoveConsensusQueue

func (_m *ConsensusKeeper) RemoveConsensusQueue(ctx types.Context, queueTypeName string) error

RemoveConsensusQueue provides a mock function with given fields: ctx, queueTypeName

type ValsetKeeper

type ValsetKeeper struct {
	mock.Mock
}

ValsetKeeper is an autogenerated mock type for the ValsetKeeper type

func NewValsetKeeper

func NewValsetKeeper(t mockConstructorTestingTNewValsetKeeper) *ValsetKeeper

NewValsetKeeper creates a new instance of ValsetKeeper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ValsetKeeper) FindSnapshotByID

func (_m *ValsetKeeper) FindSnapshotByID(ctx types.Context, id uint64) (*valsettypes.Snapshot, error)

FindSnapshotByID provides a mock function with given fields: ctx, id

func (*ValsetKeeper) GetCurrentSnapshot

func (_m *ValsetKeeper) GetCurrentSnapshot(ctx types.Context) (*valsettypes.Snapshot, error)

GetCurrentSnapshot provides a mock function with given fields: ctx

func (*ValsetKeeper) IsJailed added in v0.7.0

func (_m *ValsetKeeper) IsJailed(ctx types.Context, val types.ValAddress) bool

IsJailed provides a mock function with given fields: ctx, val

func (*ValsetKeeper) Jail added in v0.6.0

func (_m *ValsetKeeper) Jail(ctx types.Context, valAddr types.ValAddress, reason string) error

Jail provides a mock function with given fields: ctx, valAddr, reason

func (*ValsetKeeper) KeepValidatorAlive added in v0.6.0

func (_m *ValsetKeeper) KeepValidatorAlive(ctx types.Context, valAddr types.ValAddress) error

KeepValidatorAlive provides a mock function with given fields: ctx, valAddr

func (*ValsetKeeper) SetValidatorBalance added in v0.6.0

func (_m *ValsetKeeper) SetValidatorBalance(ctx types.Context, valAddr types.ValAddress, chainType string, chainReferenceID string, externalAddress string, balance *big.Int) error

SetValidatorBalance provides a mock function with given fields: ctx, valAddr, chainType, chainReferenceID, externalAddress, balance

Jump to

Keyboard shortcuts

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