testutil

package
v3.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChainGoMockCalls

func ChainGoMockCalls(calls ...*gomock.Call) *gomock.Call

ChainGoMockCalls is a helper function to chain multiple gomock calls together.

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

GetAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccount

func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types1.ModuleAccountI

GetModuleAccount mocks base method.

type MockAccountKeeperMockRecorder

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

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

func (*MockAccountKeeperMockRecorder) GetAccount

func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr any) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAccount

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName any) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount.

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

func (m *MockAuthzKeeper) DeleteGrant(ctx context.Context, grantee, granter types1.AccAddress, msgType string) error

DeleteGrant mocks base method.

func (*MockAuthzKeeper) DispatchActions

func (m *MockAuthzKeeper) DispatchActions(ctx context.Context, grantee types1.AccAddress, msgs []types1.Msg) ([][]byte, error)

DispatchActions mocks base method.

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, grantee, granter types1.AccAddress, msgType string) (authz.Authorization, *time.Time)

GetAuthorization mocks base method.

func (*MockAuthzKeeper) GetAuthorizations

func (m *MockAuthzKeeper) GetAuthorizations(ctx context.Context, grantee, granter types1.AccAddress) ([]authz.Authorization, error)

GetAuthorizations mocks base method.

func (*MockAuthzKeeper) GranterGrants

GranterGrants mocks base method.

func (*MockAuthzKeeper) SaveGrant

func (m *MockAuthzKeeper) SaveGrant(ctx context.Context, grantee, granter types1.AccAddress, authorization authz.Authorization, expiration *time.Time) error

SaveGrant mocks base method.

type MockAuthzKeeperMockRecorder

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

MockAuthzKeeperMockRecorder is the mock recorder for MockAuthzKeeper.

func (*MockAuthzKeeperMockRecorder) DeleteGrant

func (mr *MockAuthzKeeperMockRecorder) DeleteGrant(ctx, grantee, granter, msgType any) *gomock.Call

DeleteGrant indicates an expected call of DeleteGrant.

func (*MockAuthzKeeperMockRecorder) DispatchActions

func (mr *MockAuthzKeeperMockRecorder) DispatchActions(ctx, grantee, msgs any) *gomock.Call

DispatchActions indicates an expected call of DispatchActions.

func (*MockAuthzKeeperMockRecorder) GetAuthorization

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

GetAuthorization indicates an expected call of GetAuthorization.

func (*MockAuthzKeeperMockRecorder) GetAuthorizations

func (mr *MockAuthzKeeperMockRecorder) GetAuthorizations(ctx, grantee, granter any) *gomock.Call

GetAuthorizations indicates an expected call of GetAuthorizations.

func (*MockAuthzKeeperMockRecorder) GranterGrants

func (mr *MockAuthzKeeperMockRecorder) GranterGrants(ctx, req any) *gomock.Call

GranterGrants indicates an expected call of GranterGrants.

func (*MockAuthzKeeperMockRecorder) SaveGrant

func (mr *MockAuthzKeeperMockRecorder) SaveGrant(ctx, grantee, granter, authorization, expiration any) *gomock.Call

SaveGrant indicates an expected call of SaveGrant.

type MockBandtssKeeper

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

MockBandtssKeeper is a mock of BandtssKeeper interface.

func NewMockBandtssKeeper

func NewMockBandtssKeeper(ctrl *gomock.Controller) *MockBandtssKeeper

NewMockBandtssKeeper creates a new mock instance.

func (*MockBandtssKeeper) CreateDirectSigningRequest

func (m *MockBandtssKeeper) CreateDirectSigningRequest(ctx types1.Context, content types0.Content, memo string, sender types1.AccAddress, feeLimit types1.Coins) (types.SigningID, error)

CreateDirectSigningRequest mocks base method.

func (*MockBandtssKeeper) EXPECT

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

type MockBandtssKeeperMockRecorder

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

MockBandtssKeeperMockRecorder is the mock recorder for MockBandtssKeeper.

func (*MockBandtssKeeperMockRecorder) CreateDirectSigningRequest

func (mr *MockBandtssKeeperMockRecorder) CreateDirectSigningRequest(ctx, content, memo, sender, feeLimit any) *gomock.Call

CreateDirectSigningRequest indicates an expected call of CreateDirectSigningRequest.

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 context.Context, addr types1.AccAddress) types1.Coins

GetAllBalances mocks base method.

func (*MockBankKeeper) SendCoins

func (m *MockBankKeeper) SendCoins(ctx context.Context, from, to types1.AccAddress, amt types1.Coins) error

SendCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule

func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt types1.Coins) error

SendCoinsFromModuleToModule mocks base method.

func (*MockBankKeeper) SpendableCoins

func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types1.AccAddress) types1.Coins

SpendableCoins 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 any) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances.

func (*MockBankKeeperMockRecorder) SendCoins

func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, from, to, amt any) *gomock.Call

SendCoins indicates an expected call of SendCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt any) *gomock.Call

SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.

func (*MockBankKeeperMockRecorder) SpendableCoins

func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr any) *gomock.Call

SpendableCoins indicates an expected call of SpendableCoins.

type MockDistrKeeper

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

MockDistrKeeper is a mock of DistrKeeper interface.

func NewMockDistrKeeper

func NewMockDistrKeeper(ctrl *gomock.Controller) *MockDistrKeeper

NewMockDistrKeeper creates a new mock instance.

func (*MockDistrKeeper) AllocateTokensToValidator

func (m *MockDistrKeeper) AllocateTokensToValidator(ctx context.Context, val types2.ValidatorI, tokens types1.DecCoins) error

AllocateTokensToValidator mocks base method.

func (*MockDistrKeeper) EXPECT

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

func (*MockDistrKeeper) FundCommunityPool

func (m *MockDistrKeeper) FundCommunityPool(ctx context.Context, amount types1.Coins, sender types1.AccAddress) error

FundCommunityPool mocks base method.

func (*MockDistrKeeper) GetCommunityTax

func (m *MockDistrKeeper) GetCommunityTax(ctx context.Context) (math.LegacyDec, error)

GetCommunityTax mocks base method.

type MockDistrKeeperMockRecorder

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

MockDistrKeeperMockRecorder is the mock recorder for MockDistrKeeper.

func (*MockDistrKeeperMockRecorder) AllocateTokensToValidator

func (mr *MockDistrKeeperMockRecorder) AllocateTokensToValidator(ctx, val, tokens any) *gomock.Call

AllocateTokensToValidator indicates an expected call of AllocateTokensToValidator.

func (*MockDistrKeeperMockRecorder) FundCommunityPool

func (mr *MockDistrKeeperMockRecorder) FundCommunityPool(ctx, amount, sender any) *gomock.Call

FundCommunityPool indicates an expected call of FundCommunityPool.

func (*MockDistrKeeperMockRecorder) GetCommunityTax

func (mr *MockDistrKeeperMockRecorder) GetCommunityTax(ctx any) *gomock.Call

GetCommunityTax indicates an expected call of GetCommunityTax.

type MockPortKeeper

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

MockPortKeeper is a mock of PortKeeper interface.

func NewMockPortKeeper

func NewMockPortKeeper(ctrl *gomock.Controller) *MockPortKeeper

NewMockPortKeeper creates a new mock instance.

func (*MockPortKeeper) BindPort

func (m *MockPortKeeper) BindPort(ctx types1.Context, portID string) *types3.Capability

BindPort mocks base method.

func (*MockPortKeeper) EXPECT

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

type MockPortKeeperMockRecorder

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

MockPortKeeperMockRecorder is the mock recorder for MockPortKeeper.

func (*MockPortKeeperMockRecorder) BindPort

func (mr *MockPortKeeperMockRecorder) BindPort(ctx, portID any) *gomock.Call

BindPort indicates an expected call of BindPort.

type MockRollingseedKeeper

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

MockRollingseedKeeper is a mock of RollingseedKeeper interface.

func NewMockRollingseedKeeper

func NewMockRollingseedKeeper(ctrl *gomock.Controller) *MockRollingseedKeeper

NewMockRollingseedKeeper creates a new mock instance.

func (*MockRollingseedKeeper) EXPECT

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

func (*MockRollingseedKeeper) GetRollingSeed

func (m *MockRollingseedKeeper) GetRollingSeed(ctx types1.Context) []byte

GetRollingSeed mocks base method.

type MockRollingseedKeeperMockRecorder

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

MockRollingseedKeeperMockRecorder is the mock recorder for MockRollingseedKeeper.

func (*MockRollingseedKeeperMockRecorder) GetRollingSeed

func (mr *MockRollingseedKeeperMockRecorder) GetRollingSeed(ctx any) *gomock.Call

GetRollingSeed indicates an expected call of GetRollingSeed.

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

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

IterateBondedValidatorsByPower mocks base method.

func (*MockStakingKeeper) Validator

Validator mocks base method.

func (*MockStakingKeeper) ValidatorByConsAddr

func (m *MockStakingKeeper) ValidatorByConsAddr(arg0 context.Context, arg1 types1.ConsAddress) (types2.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) IterateBondedValidatorsByPower

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

IterateBondedValidatorsByPower indicates an expected call of IterateBondedValidatorsByPower.

func (*MockStakingKeeperMockRecorder) Validator

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

Validator indicates an expected call of Validator.

func (*MockStakingKeeperMockRecorder) ValidatorByConsAddr

func (mr *MockStakingKeeperMockRecorder) ValidatorByConsAddr(arg0, arg1 any) *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