mocks

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAccountKeeper

type MockAccountKeeper struct {
	mock.Mock
}

MockAccountKeeper is an autogenerated mock type for the AccountKeeper type

func NewMockAccountKeeper

func NewMockAccountKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockAccountKeeper

NewMockAccountKeeper creates a new instance of MockAccountKeeper. 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 (*MockAccountKeeper) EXPECT

func (*MockAccountKeeper) GetModuleAccount

func (_m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types.ModuleAccountI

GetModuleAccount provides a mock function with given fields: ctx, moduleName

func (*MockAccountKeeper) GetModuleAddress

func (_m *MockAccountKeeper) GetModuleAddress(moduleName string) types.AccAddress

GetModuleAddress provides a mock function with given fields: moduleName

func (*MockAccountKeeper) GetSequence

func (_m *MockAccountKeeper) GetSequence(_a0 context.Context, _a1 types.AccAddress) (uint64, error)

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

type MockAccountKeeper_Expecter

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

func (*MockAccountKeeper_Expecter) GetModuleAccount

func (_e *MockAccountKeeper_Expecter) GetModuleAccount(ctx interface{}, moduleName interface{}) *MockAccountKeeper_GetModuleAccount_Call

GetModuleAccount is a helper method to define mock.On call

  • ctx context.Context
  • moduleName string

func (*MockAccountKeeper_Expecter) GetModuleAddress

func (_e *MockAccountKeeper_Expecter) GetModuleAddress(moduleName interface{}) *MockAccountKeeper_GetModuleAddress_Call

GetModuleAddress is a helper method to define mock.On call

  • moduleName string

func (*MockAccountKeeper_Expecter) GetSequence

func (_e *MockAccountKeeper_Expecter) GetSequence(_a0 interface{}, _a1 interface{}) *MockAccountKeeper_GetSequence_Call

GetSequence is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 types.AccAddress

type MockAccountKeeper_GetModuleAccount_Call

type MockAccountKeeper_GetModuleAccount_Call struct {
	*mock.Call
}

MockAccountKeeper_GetModuleAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModuleAccount'

func (*MockAccountKeeper_GetModuleAccount_Call) Return

func (*MockAccountKeeper_GetModuleAccount_Call) Run

func (*MockAccountKeeper_GetModuleAccount_Call) RunAndReturn

type MockAccountKeeper_GetModuleAddress_Call

type MockAccountKeeper_GetModuleAddress_Call struct {
	*mock.Call
}

MockAccountKeeper_GetModuleAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetModuleAddress'

func (*MockAccountKeeper_GetModuleAddress_Call) Return

func (*MockAccountKeeper_GetModuleAddress_Call) Run

func (*MockAccountKeeper_GetModuleAddress_Call) RunAndReturn

type MockAccountKeeper_GetSequence_Call

type MockAccountKeeper_GetSequence_Call struct {
	*mock.Call
}

MockAccountKeeper_GetSequence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSequence'

func (*MockAccountKeeper_GetSequence_Call) Return

func (*MockAccountKeeper_GetSequence_Call) Run

func (*MockAccountKeeper_GetSequence_Call) RunAndReturn

type MockBankKeeper

type MockBankKeeper struct {
	mock.Mock
}

MockBankKeeper is an autogenerated mock type for the BankKeeper type

func NewMockBankKeeper

func NewMockBankKeeper(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockBankKeeper

NewMockBankKeeper creates a new instance of MockBankKeeper. 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 (*MockBankKeeper) AllBalances

AllBalances provides a mock function with given fields: ctx, req

func (*MockBankKeeper) BlockedAddr

func (_m *MockBankKeeper) BlockedAddr(addr cosmos_sdktypes.AccAddress) bool

BlockedAddr provides a mock function with given fields: addr

func (*MockBankKeeper) BurnCoins

func (_m *MockBankKeeper) BurnCoins(ctx context.Context, moduleName string, amt cosmos_sdktypes.Coins) error

BurnCoins provides a mock function with given fields: ctx, moduleName, amt

func (*MockBankKeeper) EXPECT

func (*MockBankKeeper) GetAllBalances

GetAllBalances provides a mock function with given fields: ctx, addr

func (*MockBankKeeper) GetBalance

GetBalance provides a mock function with given fields: ctx, addr, denom

func (*MockBankKeeper) GetSupply

func (_m *MockBankKeeper) GetSupply(ctx context.Context, denom string) cosmos_sdktypes.Coin

GetSupply provides a mock function with given fields: ctx, denom

func (*MockBankKeeper) IsSendEnabledCoins

func (_m *MockBankKeeper) IsSendEnabledCoins(ctx context.Context, coins ...cosmos_sdktypes.Coin) error

IsSendEnabledCoins provides a mock function with given fields: ctx, coins

func (*MockBankKeeper) IterateAccountBalances

func (_m *MockBankKeeper) IterateAccountBalances(ctx context.Context, account cosmos_sdktypes.AccAddress, cb func(cosmos_sdktypes.Coin) bool)

IterateAccountBalances provides a mock function with given fields: ctx, account, cb

func (*MockBankKeeper) IterateAllBalances

func (_m *MockBankKeeper) IterateAllBalances(ctx context.Context, cb func(cosmos_sdktypes.AccAddress, cosmos_sdktypes.Coin) bool)

IterateAllBalances provides a mock function with given fields: ctx, cb

func (*MockBankKeeper) IterateTotalSupply

func (_m *MockBankKeeper) IterateTotalSupply(ctx context.Context, cb func(cosmos_sdktypes.Coin) bool)

IterateTotalSupply provides a mock function with given fields: ctx, cb

func (*MockBankKeeper) MintCoins

func (_m *MockBankKeeper) MintCoins(ctx context.Context, moduleName string, amt cosmos_sdktypes.Coins) error

MintCoins provides a mock function with given fields: ctx, moduleName, amt

func (*MockBankKeeper) SendCoins

SendCoins provides a mock function with given fields: ctx, fromAddr, toAddr, amt

func (*MockBankKeeper) SendCoinsFromAccountToModule

func (_m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr cosmos_sdktypes.AccAddress, recipientModule string, amt cosmos_sdktypes.Coins) error

SendCoinsFromAccountToModule provides a mock function with given fields: ctx, senderAddr, recipientModule, amt

func (*MockBankKeeper) SendCoinsFromModuleToAccount

func (_m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr cosmos_sdktypes.AccAddress, amt cosmos_sdktypes.Coins) error

SendCoinsFromModuleToAccount provides a mock function with given fields: ctx, senderModule, recipientAddr, amt

func (*MockBankKeeper) SendCoinsFromModuleToModule

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

SendCoinsFromModuleToModule provides a mock function with given fields: ctx, senderModule, recipientModule, amt

func (*MockBankKeeper) SpendableCoin

func (_m *MockBankKeeper) SpendableCoin(ctx context.Context, addr cosmos_sdktypes.AccAddress, denom string) cosmos_sdktypes.Coin

SpendableCoin provides a mock function with given fields: ctx, addr, denom

type MockBankKeeper_AllBalances_Call

type MockBankKeeper_AllBalances_Call struct {
	*mock.Call
}

MockBankKeeper_AllBalances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllBalances'

func (*MockBankKeeper_AllBalances_Call) Return

func (*MockBankKeeper_AllBalances_Call) Run

type MockBankKeeper_BlockedAddr_Call

type MockBankKeeper_BlockedAddr_Call struct {
	*mock.Call
}

MockBankKeeper_BlockedAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockedAddr'

func (*MockBankKeeper_BlockedAddr_Call) Return

func (*MockBankKeeper_BlockedAddr_Call) Run

func (*MockBankKeeper_BlockedAddr_Call) RunAndReturn

type MockBankKeeper_BurnCoins_Call

type MockBankKeeper_BurnCoins_Call struct {
	*mock.Call
}

MockBankKeeper_BurnCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BurnCoins'

func (*MockBankKeeper_BurnCoins_Call) Return

func (*MockBankKeeper_BurnCoins_Call) Run

func (*MockBankKeeper_BurnCoins_Call) RunAndReturn

type MockBankKeeper_Expecter

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

func (*MockBankKeeper_Expecter) AllBalances

func (_e *MockBankKeeper_Expecter) AllBalances(ctx interface{}, req interface{}) *MockBankKeeper_AllBalances_Call

AllBalances is a helper method to define mock.On call

  • ctx context.Context
  • req *types.QueryAllBalancesRequest

func (*MockBankKeeper_Expecter) BlockedAddr

func (_e *MockBankKeeper_Expecter) BlockedAddr(addr interface{}) *MockBankKeeper_BlockedAddr_Call

BlockedAddr is a helper method to define mock.On call

  • addr cosmos_sdktypes.AccAddress

func (*MockBankKeeper_Expecter) BurnCoins

func (_e *MockBankKeeper_Expecter) BurnCoins(ctx interface{}, moduleName interface{}, amt interface{}) *MockBankKeeper_BurnCoins_Call

BurnCoins is a helper method to define mock.On call

  • ctx context.Context
  • moduleName string
  • amt cosmos_sdktypes.Coins

func (*MockBankKeeper_Expecter) GetAllBalances

func (_e *MockBankKeeper_Expecter) GetAllBalances(ctx interface{}, addr interface{}) *MockBankKeeper_GetAllBalances_Call

GetAllBalances is a helper method to define mock.On call

  • ctx context.Context
  • addr cosmos_sdktypes.AccAddress

func (*MockBankKeeper_Expecter) GetBalance

func (_e *MockBankKeeper_Expecter) GetBalance(ctx interface{}, addr interface{}, denom interface{}) *MockBankKeeper_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • ctx context.Context
  • addr cosmos_sdktypes.AccAddress
  • denom string

func (*MockBankKeeper_Expecter) GetSupply

func (_e *MockBankKeeper_Expecter) GetSupply(ctx interface{}, denom interface{}) *MockBankKeeper_GetSupply_Call

GetSupply is a helper method to define mock.On call

  • ctx context.Context
  • denom string

func (*MockBankKeeper_Expecter) IsSendEnabledCoins

func (_e *MockBankKeeper_Expecter) IsSendEnabledCoins(ctx interface{}, coins ...interface{}) *MockBankKeeper_IsSendEnabledCoins_Call

IsSendEnabledCoins is a helper method to define mock.On call

  • ctx context.Context
  • coins ...cosmos_sdktypes.Coin

func (*MockBankKeeper_Expecter) IterateAccountBalances

func (_e *MockBankKeeper_Expecter) IterateAccountBalances(ctx interface{}, account interface{}, cb interface{}) *MockBankKeeper_IterateAccountBalances_Call

IterateAccountBalances is a helper method to define mock.On call

  • ctx context.Context
  • account cosmos_sdktypes.AccAddress
  • cb func(cosmos_sdktypes.Coin) bool

func (*MockBankKeeper_Expecter) IterateAllBalances

func (_e *MockBankKeeper_Expecter) IterateAllBalances(ctx interface{}, cb interface{}) *MockBankKeeper_IterateAllBalances_Call

IterateAllBalances is a helper method to define mock.On call

  • ctx context.Context
  • cb func(cosmos_sdktypes.AccAddress , cosmos_sdktypes.Coin) bool

func (*MockBankKeeper_Expecter) IterateTotalSupply

func (_e *MockBankKeeper_Expecter) IterateTotalSupply(ctx interface{}, cb interface{}) *MockBankKeeper_IterateTotalSupply_Call

IterateTotalSupply is a helper method to define mock.On call

  • ctx context.Context
  • cb func(cosmos_sdktypes.Coin) bool

func (*MockBankKeeper_Expecter) MintCoins

func (_e *MockBankKeeper_Expecter) MintCoins(ctx interface{}, moduleName interface{}, amt interface{}) *MockBankKeeper_MintCoins_Call

MintCoins is a helper method to define mock.On call

  • ctx context.Context
  • moduleName string
  • amt cosmos_sdktypes.Coins

func (*MockBankKeeper_Expecter) SendCoins

func (_e *MockBankKeeper_Expecter) SendCoins(ctx interface{}, fromAddr interface{}, toAddr interface{}, amt interface{}) *MockBankKeeper_SendCoins_Call

SendCoins is a helper method to define mock.On call

  • ctx context.Context
  • fromAddr cosmos_sdktypes.AccAddress
  • toAddr cosmos_sdktypes.AccAddress
  • amt cosmos_sdktypes.Coins

func (*MockBankKeeper_Expecter) SendCoinsFromAccountToModule

func (_e *MockBankKeeper_Expecter) SendCoinsFromAccountToModule(ctx interface{}, senderAddr interface{}, recipientModule interface{}, amt interface{}) *MockBankKeeper_SendCoinsFromAccountToModule_Call

SendCoinsFromAccountToModule is a helper method to define mock.On call

  • ctx context.Context
  • senderAddr cosmos_sdktypes.AccAddress
  • recipientModule string
  • amt cosmos_sdktypes.Coins

func (*MockBankKeeper_Expecter) SendCoinsFromModuleToAccount

func (_e *MockBankKeeper_Expecter) SendCoinsFromModuleToAccount(ctx interface{}, senderModule interface{}, recipientAddr interface{}, amt interface{}) *MockBankKeeper_SendCoinsFromModuleToAccount_Call

SendCoinsFromModuleToAccount is a helper method to define mock.On call

  • ctx context.Context
  • senderModule string
  • recipientAddr cosmos_sdktypes.AccAddress
  • amt cosmos_sdktypes.Coins

func (*MockBankKeeper_Expecter) SendCoinsFromModuleToModule

func (_e *MockBankKeeper_Expecter) SendCoinsFromModuleToModule(ctx interface{}, senderModule interface{}, recipientModule interface{}, amt interface{}) *MockBankKeeper_SendCoinsFromModuleToModule_Call

SendCoinsFromModuleToModule is a helper method to define mock.On call

  • ctx context.Context
  • senderModule string
  • recipientModule string
  • amt cosmos_sdktypes.Coins

func (*MockBankKeeper_Expecter) SpendableCoin

func (_e *MockBankKeeper_Expecter) SpendableCoin(ctx interface{}, addr interface{}, denom interface{}) *MockBankKeeper_SpendableCoin_Call

SpendableCoin is a helper method to define mock.On call

  • ctx context.Context
  • addr cosmos_sdktypes.AccAddress
  • denom string

type MockBankKeeper_GetAllBalances_Call

type MockBankKeeper_GetAllBalances_Call struct {
	*mock.Call
}

MockBankKeeper_GetAllBalances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllBalances'

func (*MockBankKeeper_GetAllBalances_Call) Return

func (*MockBankKeeper_GetAllBalances_Call) Run

type MockBankKeeper_GetBalance_Call

type MockBankKeeper_GetBalance_Call struct {
	*mock.Call
}

MockBankKeeper_GetBalance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBalance'

func (*MockBankKeeper_GetBalance_Call) Return

func (*MockBankKeeper_GetBalance_Call) Run

type MockBankKeeper_GetSupply_Call

type MockBankKeeper_GetSupply_Call struct {
	*mock.Call
}

MockBankKeeper_GetSupply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSupply'

func (*MockBankKeeper_GetSupply_Call) Return

func (*MockBankKeeper_GetSupply_Call) Run

func (*MockBankKeeper_GetSupply_Call) RunAndReturn

type MockBankKeeper_IsSendEnabledCoins_Call

type MockBankKeeper_IsSendEnabledCoins_Call struct {
	*mock.Call
}

MockBankKeeper_IsSendEnabledCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSendEnabledCoins'

func (*MockBankKeeper_IsSendEnabledCoins_Call) Return

func (*MockBankKeeper_IsSendEnabledCoins_Call) Run

func (*MockBankKeeper_IsSendEnabledCoins_Call) RunAndReturn

type MockBankKeeper_IterateAccountBalances_Call

type MockBankKeeper_IterateAccountBalances_Call struct {
	*mock.Call
}

MockBankKeeper_IterateAccountBalances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterateAccountBalances'

func (*MockBankKeeper_IterateAccountBalances_Call) Return

func (*MockBankKeeper_IterateAccountBalances_Call) Run

func (*MockBankKeeper_IterateAccountBalances_Call) RunAndReturn

type MockBankKeeper_IterateAllBalances_Call

type MockBankKeeper_IterateAllBalances_Call struct {
	*mock.Call
}

MockBankKeeper_IterateAllBalances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterateAllBalances'

func (*MockBankKeeper_IterateAllBalances_Call) Return

func (*MockBankKeeper_IterateAllBalances_Call) Run

func (*MockBankKeeper_IterateAllBalances_Call) RunAndReturn

type MockBankKeeper_IterateTotalSupply_Call

type MockBankKeeper_IterateTotalSupply_Call struct {
	*mock.Call
}

MockBankKeeper_IterateTotalSupply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IterateTotalSupply'

func (*MockBankKeeper_IterateTotalSupply_Call) Return

func (*MockBankKeeper_IterateTotalSupply_Call) Run

func (*MockBankKeeper_IterateTotalSupply_Call) RunAndReturn

type MockBankKeeper_MintCoins_Call

type MockBankKeeper_MintCoins_Call struct {
	*mock.Call
}

MockBankKeeper_MintCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MintCoins'

func (*MockBankKeeper_MintCoins_Call) Return

func (*MockBankKeeper_MintCoins_Call) Run

func (*MockBankKeeper_MintCoins_Call) RunAndReturn

type MockBankKeeper_SendCoinsFromAccountToModule_Call

type MockBankKeeper_SendCoinsFromAccountToModule_Call struct {
	*mock.Call
}

MockBankKeeper_SendCoinsFromAccountToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromAccountToModule'

func (*MockBankKeeper_SendCoinsFromAccountToModule_Call) Return

func (*MockBankKeeper_SendCoinsFromAccountToModule_Call) Run

type MockBankKeeper_SendCoinsFromModuleToAccount_Call

type MockBankKeeper_SendCoinsFromModuleToAccount_Call struct {
	*mock.Call
}

MockBankKeeper_SendCoinsFromModuleToAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToAccount'

func (*MockBankKeeper_SendCoinsFromModuleToAccount_Call) Return

func (*MockBankKeeper_SendCoinsFromModuleToAccount_Call) Run

type MockBankKeeper_SendCoinsFromModuleToModule_Call

type MockBankKeeper_SendCoinsFromModuleToModule_Call struct {
	*mock.Call
}

MockBankKeeper_SendCoinsFromModuleToModule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoinsFromModuleToModule'

func (*MockBankKeeper_SendCoinsFromModuleToModule_Call) Return

func (*MockBankKeeper_SendCoinsFromModuleToModule_Call) Run

func (*MockBankKeeper_SendCoinsFromModuleToModule_Call) RunAndReturn

type MockBankKeeper_SendCoins_Call

type MockBankKeeper_SendCoins_Call struct {
	*mock.Call
}

MockBankKeeper_SendCoins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCoins'

func (*MockBankKeeper_SendCoins_Call) Return

func (*MockBankKeeper_SendCoins_Call) Run

type MockBankKeeper_SpendableCoin_Call

type MockBankKeeper_SpendableCoin_Call struct {
	*mock.Call
}

MockBankKeeper_SpendableCoin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SpendableCoin'

func (*MockBankKeeper_SpendableCoin_Call) Return

func (*MockBankKeeper_SpendableCoin_Call) Run

Jump to

Keyboard shortcuts

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