testutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type MockAccountKeeper

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

MockAccountKeeper is a mock of AccountKeeper interface.

func NewMockAccountKeeper

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance.

func (*MockAccountKeeper) EXPECT

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

func (*MockAccountKeeper) SetAccount

func (m *MockAccountKeeper) SetAccount(ctx context.Context, acc types0.AccountI)

SetAccount mocks base method.

type MockAccountKeeperMockRecorder

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

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

func (*MockAccountKeeperMockRecorder) SetAccount

func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call

SetAccount indicates an expected call of SetAccount.

type MockBankKeeper

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

MockBankKeeper is a mock of BankKeeper interface.

func NewMockBankKeeper

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance.

func (*MockBankKeeper) EXPECT

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

func (*MockBankKeeper) GetAllBalances

func (m *MockBankKeeper) GetAllBalances(ctx types0.Context, addr types0.AccAddress) types0.Coins

GetAllBalances mocks base method.

func (*MockBankKeeper) MintCoins

func (m *MockBankKeeper) MintCoins(ctx types0.Context, moduleName string, amt types0.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx types0.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error

SendCoinsFromModuleToAccount mocks base method.

type MockBankKeeperMockRecorder

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) GetAllBalances

func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances.

func (*MockBankKeeperMockRecorder) MintCoins

func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

type MockCometinfo

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

MockCometinfo is a mock of Cometinfo interface.

func NewMockCometinfo

func NewMockCometinfo(ctrl *gomock.Controller) *MockCometinfo

NewMockCometinfo creates a new mock instance.

func (*MockCometinfo) EXPECT

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

func (*MockCometinfo) GetCometBlockInfo

func (m *MockCometinfo) GetCometBlockInfo(arg0 context.Context) comet.BlockInfo

GetCometBlockInfo mocks base method.

type MockCometinfoMockRecorder

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

MockCometinfoMockRecorder is the mock recorder for MockCometinfo.

func (*MockCometinfoMockRecorder) GetCometBlockInfo

func (mr *MockCometinfoMockRecorder) GetCometBlockInfo(arg0 interface{}) *gomock.Call

GetCometBlockInfo indicates an expected call of GetCometBlockInfo.

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

func (m *MockSlashingKeeper) GetPubkey(arg0 context.Context, arg1 types.Address) (types.PubKey, error)

GetPubkey mocks base method.

func (*MockSlashingKeeper) HasValidatorSigningInfo

func (m *MockSlashingKeeper) HasValidatorSigningInfo(arg0 context.Context, arg1 types0.ConsAddress) bool

HasValidatorSigningInfo mocks base method.

func (*MockSlashingKeeper) IsTombstoned

func (m *MockSlashingKeeper) IsTombstoned(arg0 context.Context, arg1 types0.ConsAddress) bool

IsTombstoned mocks base method.

func (*MockSlashingKeeper) Jail

Jail mocks base method.

func (*MockSlashingKeeper) JailUntil

func (m *MockSlashingKeeper) JailUntil(arg0 context.Context, arg1 types0.ConsAddress, arg2 time.Time) error

JailUntil mocks base method.

func (*MockSlashingKeeper) Slash

func (m *MockSlashingKeeper) Slash(arg0 context.Context, arg1 types0.ConsAddress, arg2 math.LegacyDec, arg3, arg4 int64) error

Slash mocks base method.

func (*MockSlashingKeeper) SlashFractionDoubleSign

func (m *MockSlashingKeeper) SlashFractionDoubleSign(arg0 context.Context) (math.LegacyDec, error)

SlashFractionDoubleSign mocks base method.

func (*MockSlashingKeeper) SlashWithInfractionReason

func (m *MockSlashingKeeper) SlashWithInfractionReason(arg0 context.Context, arg1 types0.ConsAddress, arg2 math.LegacyDec, arg3, arg4 int64, arg5 types1.Infraction) error

SlashWithInfractionReason mocks base method.

func (*MockSlashingKeeper) Tombstone

func (m *MockSlashingKeeper) Tombstone(arg0 context.Context, arg1 types0.ConsAddress) error

Tombstone mocks base method.

type MockSlashingKeeperMockRecorder

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

MockSlashingKeeperMockRecorder is the mock recorder for MockSlashingKeeper.

func (*MockSlashingKeeperMockRecorder) GetPubkey

func (mr *MockSlashingKeeperMockRecorder) GetPubkey(arg0, arg1 interface{}) *gomock.Call

GetPubkey indicates an expected call of GetPubkey.

func (*MockSlashingKeeperMockRecorder) HasValidatorSigningInfo

func (mr *MockSlashingKeeperMockRecorder) HasValidatorSigningInfo(arg0, arg1 interface{}) *gomock.Call

HasValidatorSigningInfo indicates an expected call of HasValidatorSigningInfo.

func (*MockSlashingKeeperMockRecorder) IsTombstoned

func (mr *MockSlashingKeeperMockRecorder) IsTombstoned(arg0, arg1 interface{}) *gomock.Call

IsTombstoned indicates an expected call of IsTombstoned.

func (*MockSlashingKeeperMockRecorder) Jail

func (mr *MockSlashingKeeperMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call

Jail indicates an expected call of Jail.

func (*MockSlashingKeeperMockRecorder) JailUntil

func (mr *MockSlashingKeeperMockRecorder) JailUntil(arg0, arg1, arg2 interface{}) *gomock.Call

JailUntil indicates an expected call of JailUntil.

func (*MockSlashingKeeperMockRecorder) Slash

func (mr *MockSlashingKeeperMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Slash indicates an expected call of Slash.

func (*MockSlashingKeeperMockRecorder) SlashFractionDoubleSign

func (mr *MockSlashingKeeperMockRecorder) SlashFractionDoubleSign(arg0 interface{}) *gomock.Call

SlashFractionDoubleSign indicates an expected call of SlashFractionDoubleSign.

func (*MockSlashingKeeperMockRecorder) SlashWithInfractionReason

func (mr *MockSlashingKeeperMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

SlashWithInfractionReason indicates an expected call of SlashWithInfractionReason.

func (*MockSlashingKeeperMockRecorder) Tombstone

func (mr *MockSlashingKeeperMockRecorder) Tombstone(arg0, arg1 interface{}) *gomock.Call

Tombstone indicates an expected call of Tombstone.

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

func (m *MockStakingKeeper) ConsensusAddressCodec() address.Codec

ConsensusAddressCodec mocks base method.

func (*MockStakingKeeper) EXPECT

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

func (*MockStakingKeeper) GetParams

func (m *MockStakingKeeper) GetParams(ctx context.Context) (types1.Params, error)

GetParams mocks base method.

func (*MockStakingKeeper) ValidatorByConsAddr

func (m *MockStakingKeeper) ValidatorByConsAddr(arg0 context.Context, arg1 types0.ConsAddress) (types1.ValidatorI, error)

ValidatorByConsAddr mocks base method.

type MockStakingKeeperMockRecorder

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

MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.

func (*MockStakingKeeperMockRecorder) ConsensusAddressCodec

func (mr *MockStakingKeeperMockRecorder) ConsensusAddressCodec() *gomock.Call

ConsensusAddressCodec indicates an expected call of ConsensusAddressCodec.

func (*MockStakingKeeperMockRecorder) GetParams

func (mr *MockStakingKeeperMockRecorder) GetParams(ctx interface{}) *gomock.Call

GetParams indicates an expected call of GetParams.

func (*MockStakingKeeperMockRecorder) ValidatorByConsAddr

func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call

ValidatorByConsAddr indicates an expected call of ValidatorByConsAddr.

Jump to

Keyboard shortcuts

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