testutil

package
v0.4.0-dev.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

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

func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types.AccAddress) types.AccountI

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

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

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

SpendableCoins mocks base method.

type MockBankKeeperMockRecorder

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) SpendableCoins

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

SpendableCoins indicates an expected call of SpendableCoins.

type MockContractOpsKeeper

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

MockContractOpsKeeper is a mock of ContractOpsKeeper interface.

func NewMockContractOpsKeeper

func NewMockContractOpsKeeper(ctrl *gomock.Controller) *MockContractOpsKeeper

NewMockContractOpsKeeper creates a new mock instance.

func (*MockContractOpsKeeper) ClearContractAdmin

func (m *MockContractOpsKeeper) ClearContractAdmin(ctx types1.Context, contractAddress, caller types1.AccAddress) error

ClearContractAdmin mocks base method.

func (*MockContractOpsKeeper) Create

func (m *MockContractOpsKeeper) Create(ctx types1.Context, creator types1.AccAddress, wasmCode []byte, instantiateAccess *types.AccessConfig) (uint64, []byte, error)

Create mocks base method.

func (*MockContractOpsKeeper) EXPECT

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

func (*MockContractOpsKeeper) Execute

func (m *MockContractOpsKeeper) Execute(ctx types1.Context, contractAddress, caller types1.AccAddress, msg []byte, coins types1.Coins) ([]byte, error)

Execute mocks base method.

func (*MockContractOpsKeeper) Instantiate

func (m *MockContractOpsKeeper) Instantiate(ctx types1.Context, codeID uint64, creator, admin types1.AccAddress, initMsg []byte, label string, deposit types1.Coins) (types1.AccAddress, []byte, error)

Instantiate mocks base method.

func (*MockContractOpsKeeper) Instantiate2

func (m *MockContractOpsKeeper) Instantiate2(ctx types1.Context, codeID uint64, creator, admin types1.AccAddress, initMsg []byte, label string, deposit types1.Coins, salt []byte, fixMsg bool) (types1.AccAddress, []byte, error)

Instantiate2 mocks base method.

func (*MockContractOpsKeeper) Migrate

func (m *MockContractOpsKeeper) Migrate(ctx types1.Context, contractAddress, caller types1.AccAddress, newCodeID uint64, msg []byte) ([]byte, error)

Migrate mocks base method.

func (*MockContractOpsKeeper) PinCode

func (m *MockContractOpsKeeper) PinCode(ctx types1.Context, codeID uint64) error

PinCode mocks base method.

func (*MockContractOpsKeeper) SetAccessConfig

func (m *MockContractOpsKeeper) SetAccessConfig(ctx types1.Context, codeID uint64, caller types1.AccAddress, newConfig types.AccessConfig) error

SetAccessConfig mocks base method.

func (*MockContractOpsKeeper) SetContractInfoExtension

func (m *MockContractOpsKeeper) SetContractInfoExtension(ctx types1.Context, contract types1.AccAddress, extra types.ContractInfoExtension) error

SetContractInfoExtension mocks base method.

func (*MockContractOpsKeeper) Sudo

func (m *MockContractOpsKeeper) Sudo(ctx types1.Context, contractAddress types1.AccAddress, msg []byte) ([]byte, error)

Sudo mocks base method.

func (*MockContractOpsKeeper) UnpinCode

func (m *MockContractOpsKeeper) UnpinCode(ctx types1.Context, codeID uint64) error

UnpinCode mocks base method.

func (*MockContractOpsKeeper) UpdateContractAdmin

func (m *MockContractOpsKeeper) UpdateContractAdmin(ctx types1.Context, contractAddress, caller, newAdmin types1.AccAddress) error

UpdateContractAdmin mocks base method.

type MockContractOpsKeeperMockRecorder

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

MockContractOpsKeeperMockRecorder is the mock recorder for MockContractOpsKeeper.

func (*MockContractOpsKeeperMockRecorder) ClearContractAdmin

func (mr *MockContractOpsKeeperMockRecorder) ClearContractAdmin(ctx, contractAddress, caller any) *gomock.Call

ClearContractAdmin indicates an expected call of ClearContractAdmin.

func (*MockContractOpsKeeperMockRecorder) Create

func (mr *MockContractOpsKeeperMockRecorder) Create(ctx, creator, wasmCode, instantiateAccess any) *gomock.Call

Create indicates an expected call of Create.

func (*MockContractOpsKeeperMockRecorder) Execute

func (mr *MockContractOpsKeeperMockRecorder) Execute(ctx, contractAddress, caller, msg, coins any) *gomock.Call

Execute indicates an expected call of Execute.

func (*MockContractOpsKeeperMockRecorder) Instantiate

func (mr *MockContractOpsKeeperMockRecorder) Instantiate(ctx, codeID, creator, admin, initMsg, label, deposit any) *gomock.Call

Instantiate indicates an expected call of Instantiate.

func (*MockContractOpsKeeperMockRecorder) Instantiate2

func (mr *MockContractOpsKeeperMockRecorder) Instantiate2(ctx, codeID, creator, admin, initMsg, label, deposit, salt, fixMsg any) *gomock.Call

Instantiate2 indicates an expected call of Instantiate2.

func (*MockContractOpsKeeperMockRecorder) Migrate

func (mr *MockContractOpsKeeperMockRecorder) Migrate(ctx, contractAddress, caller, newCodeID, msg any) *gomock.Call

Migrate indicates an expected call of Migrate.

func (*MockContractOpsKeeperMockRecorder) PinCode

func (mr *MockContractOpsKeeperMockRecorder) PinCode(ctx, codeID any) *gomock.Call

PinCode indicates an expected call of PinCode.

func (*MockContractOpsKeeperMockRecorder) SetAccessConfig

func (mr *MockContractOpsKeeperMockRecorder) SetAccessConfig(ctx, codeID, caller, newConfig any) *gomock.Call

SetAccessConfig indicates an expected call of SetAccessConfig.

func (*MockContractOpsKeeperMockRecorder) SetContractInfoExtension

func (mr *MockContractOpsKeeperMockRecorder) SetContractInfoExtension(ctx, contract, extra any) *gomock.Call

SetContractInfoExtension indicates an expected call of SetContractInfoExtension.

func (*MockContractOpsKeeperMockRecorder) Sudo

func (mr *MockContractOpsKeeperMockRecorder) Sudo(ctx, contractAddress, msg any) *gomock.Call

Sudo indicates an expected call of Sudo.

func (*MockContractOpsKeeperMockRecorder) UnpinCode

func (mr *MockContractOpsKeeperMockRecorder) UnpinCode(ctx, codeID any) *gomock.Call

UnpinCode indicates an expected call of UnpinCode.

func (*MockContractOpsKeeperMockRecorder) UpdateContractAdmin

func (mr *MockContractOpsKeeperMockRecorder) UpdateContractAdmin(ctx, contractAddress, caller, newAdmin any) *gomock.Call

UpdateContractAdmin indicates an expected call of UpdateContractAdmin.

type MockIBCContractKeeper

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

MockIBCContractKeeper is a mock of IBCContractKeeper interface.

func NewMockIBCContractKeeper

func NewMockIBCContractKeeper(ctrl *gomock.Controller) *MockIBCContractKeeper

NewMockIBCContractKeeper creates a new mock instance.

func (*MockIBCContractKeeper) AuthenticateCapability

func (m *MockIBCContractKeeper) AuthenticateCapability(ctx types1.Context, cap *types2.Capability, name string) bool

AuthenticateCapability mocks base method.

func (*MockIBCContractKeeper) ClaimCapability

func (m *MockIBCContractKeeper) ClaimCapability(ctx types1.Context, cap *types2.Capability, name string) error

ClaimCapability mocks base method.

func (*MockIBCContractKeeper) DeleteAsyncAckPacket

func (m *MockIBCContractKeeper) DeleteAsyncAckPacket(ctx context.Context, portID, channelID string, sequence uint64)

DeleteAsyncAckPacket mocks base method.

func (*MockIBCContractKeeper) EXPECT

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

func (*MockIBCContractKeeper) IBCDestinationCallback

func (m *MockIBCContractKeeper) IBCDestinationCallback(ctx types1.Context, contractAddr types1.AccAddress, msg types0.IBCDestinationCallbackMsg) error

IBCDestinationCallback mocks base method.

func (*MockIBCContractKeeper) IBCSourceCallback

func (m *MockIBCContractKeeper) IBCSourceCallback(ctx types1.Context, contractAddr types1.AccAddress, msg types0.IBCSourceCallbackMsg) error

IBCSourceCallback mocks base method.

func (*MockIBCContractKeeper) LoadAsyncAckPacket

func (m *MockIBCContractKeeper) LoadAsyncAckPacket(ctx context.Context, portID, channelID string, sequence uint64) (types3.Packet, error)

LoadAsyncAckPacket mocks base method.

func (*MockIBCContractKeeper) OnAckPacket

func (m *MockIBCContractKeeper) OnAckPacket(ctx types1.Context, contractAddr types1.AccAddress, acknowledgement types0.IBCPacketAckMsg) error

OnAckPacket mocks base method.

func (*MockIBCContractKeeper) OnCloseChannel

func (m *MockIBCContractKeeper) OnCloseChannel(ctx types1.Context, contractAddr types1.AccAddress, msg types0.IBCChannelCloseMsg) error

OnCloseChannel mocks base method.

func (*MockIBCContractKeeper) OnConnectChannel

func (m *MockIBCContractKeeper) OnConnectChannel(ctx types1.Context, contractAddr types1.AccAddress, msg types0.IBCChannelConnectMsg) error

OnConnectChannel mocks base method.

func (*MockIBCContractKeeper) OnOpenChannel

func (m *MockIBCContractKeeper) OnOpenChannel(ctx types1.Context, contractAddr types1.AccAddress, msg types0.IBCChannelOpenMsg) (string, error)

OnOpenChannel mocks base method.

func (*MockIBCContractKeeper) OnRecvPacket

OnRecvPacket mocks base method.

func (*MockIBCContractKeeper) OnTimeoutPacket

func (m *MockIBCContractKeeper) OnTimeoutPacket(ctx types1.Context, contractAddr types1.AccAddress, msg types0.IBCPacketTimeoutMsg) error

OnTimeoutPacket mocks base method.

func (*MockIBCContractKeeper) StoreAsyncAckPacket

func (m *MockIBCContractKeeper) StoreAsyncAckPacket(ctx context.Context, packet types3.Packet) error

StoreAsyncAckPacket mocks base method.

type MockIBCContractKeeperMockRecorder

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

MockIBCContractKeeperMockRecorder is the mock recorder for MockIBCContractKeeper.

func (*MockIBCContractKeeperMockRecorder) AuthenticateCapability

func (mr *MockIBCContractKeeperMockRecorder) AuthenticateCapability(ctx, cap, name any) *gomock.Call

AuthenticateCapability indicates an expected call of AuthenticateCapability.

func (*MockIBCContractKeeperMockRecorder) ClaimCapability

func (mr *MockIBCContractKeeperMockRecorder) ClaimCapability(ctx, cap, name any) *gomock.Call

ClaimCapability indicates an expected call of ClaimCapability.

func (*MockIBCContractKeeperMockRecorder) DeleteAsyncAckPacket

func (mr *MockIBCContractKeeperMockRecorder) DeleteAsyncAckPacket(ctx, portID, channelID, sequence any) *gomock.Call

DeleteAsyncAckPacket indicates an expected call of DeleteAsyncAckPacket.

func (*MockIBCContractKeeperMockRecorder) IBCDestinationCallback

func (mr *MockIBCContractKeeperMockRecorder) IBCDestinationCallback(ctx, contractAddr, msg any) *gomock.Call

IBCDestinationCallback indicates an expected call of IBCDestinationCallback.

func (*MockIBCContractKeeperMockRecorder) IBCSourceCallback

func (mr *MockIBCContractKeeperMockRecorder) IBCSourceCallback(ctx, contractAddr, msg any) *gomock.Call

IBCSourceCallback indicates an expected call of IBCSourceCallback.

func (*MockIBCContractKeeperMockRecorder) LoadAsyncAckPacket

func (mr *MockIBCContractKeeperMockRecorder) LoadAsyncAckPacket(ctx, portID, channelID, sequence any) *gomock.Call

LoadAsyncAckPacket indicates an expected call of LoadAsyncAckPacket.

func (*MockIBCContractKeeperMockRecorder) OnAckPacket

func (mr *MockIBCContractKeeperMockRecorder) OnAckPacket(ctx, contractAddr, acknowledgement any) *gomock.Call

OnAckPacket indicates an expected call of OnAckPacket.

func (*MockIBCContractKeeperMockRecorder) OnCloseChannel

func (mr *MockIBCContractKeeperMockRecorder) OnCloseChannel(ctx, contractAddr, msg any) *gomock.Call

OnCloseChannel indicates an expected call of OnCloseChannel.

func (*MockIBCContractKeeperMockRecorder) OnConnectChannel

func (mr *MockIBCContractKeeperMockRecorder) OnConnectChannel(ctx, contractAddr, msg any) *gomock.Call

OnConnectChannel indicates an expected call of OnConnectChannel.

func (*MockIBCContractKeeperMockRecorder) OnOpenChannel

func (mr *MockIBCContractKeeperMockRecorder) OnOpenChannel(ctx, contractAddr, msg any) *gomock.Call

OnOpenChannel indicates an expected call of OnOpenChannel.

func (*MockIBCContractKeeperMockRecorder) OnRecvPacket

func (mr *MockIBCContractKeeperMockRecorder) OnRecvPacket(ctx, contractAddr, msg any) *gomock.Call

OnRecvPacket indicates an expected call of OnRecvPacket.

func (*MockIBCContractKeeperMockRecorder) OnTimeoutPacket

func (mr *MockIBCContractKeeperMockRecorder) OnTimeoutPacket(ctx, contractAddr, msg any) *gomock.Call

OnTimeoutPacket indicates an expected call of OnTimeoutPacket.

func (*MockIBCContractKeeperMockRecorder) StoreAsyncAckPacket

func (mr *MockIBCContractKeeperMockRecorder) StoreAsyncAckPacket(ctx, packet any) *gomock.Call

StoreAsyncAckPacket indicates an expected call of StoreAsyncAckPacket.

type MockViewKeeper

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

MockViewKeeper is a mock of ViewKeeper interface.

func NewMockViewKeeper

func NewMockViewKeeper(ctrl *gomock.Controller) *MockViewKeeper

NewMockViewKeeper creates a new mock instance.

func (*MockViewKeeper) EXPECT

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

func (*MockViewKeeper) GetByteCode

func (m *MockViewKeeper) GetByteCode(ctx context.Context, codeID uint64) ([]byte, error)

GetByteCode mocks base method.

func (*MockViewKeeper) GetCodeInfo

func (m *MockViewKeeper) GetCodeInfo(ctx context.Context, codeID uint64) *types.CodeInfo

GetCodeInfo mocks base method.

func (*MockViewKeeper) GetContractHistory

func (m *MockViewKeeper) GetContractHistory(ctx context.Context, contractAddr types1.AccAddress) []types.ContractCodeHistoryEntry

GetContractHistory mocks base method.

func (*MockViewKeeper) GetContractInfo

func (m *MockViewKeeper) GetContractInfo(ctx context.Context, contractAddress types1.AccAddress) *types.ContractInfo

GetContractInfo mocks base method.

func (*MockViewKeeper) GetParams

func (m *MockViewKeeper) GetParams(ctx context.Context) types.Params

GetParams mocks base method.

func (*MockViewKeeper) HasContractInfo

func (m *MockViewKeeper) HasContractInfo(ctx context.Context, contractAddress types1.AccAddress) bool

HasContractInfo mocks base method.

func (*MockViewKeeper) IsPinnedCode

func (m *MockViewKeeper) IsPinnedCode(ctx context.Context, codeID uint64) bool

IsPinnedCode mocks base method.

func (*MockViewKeeper) IterateCodeInfos

func (m *MockViewKeeper) IterateCodeInfos(ctx context.Context, cb func(uint64, types.CodeInfo) bool)

IterateCodeInfos mocks base method.

func (*MockViewKeeper) IterateContractInfo

func (m *MockViewKeeper) IterateContractInfo(ctx context.Context, cb func(types1.AccAddress, types.ContractInfo) bool)

IterateContractInfo mocks base method.

func (*MockViewKeeper) IterateContractState

func (m *MockViewKeeper) IterateContractState(ctx context.Context, contractAddress types1.AccAddress, cb func([]byte, []byte) bool)

IterateContractState mocks base method.

func (*MockViewKeeper) IterateContractsByCode

func (m *MockViewKeeper) IterateContractsByCode(ctx context.Context, codeID uint64, cb func(types1.AccAddress) bool)

IterateContractsByCode mocks base method.

func (*MockViewKeeper) IterateContractsByCreator

func (m *MockViewKeeper) IterateContractsByCreator(ctx context.Context, creator types1.AccAddress, cb func(types1.AccAddress) bool)

IterateContractsByCreator mocks base method.

func (*MockViewKeeper) QueryRaw

func (m *MockViewKeeper) QueryRaw(ctx context.Context, contractAddress types1.AccAddress, key []byte) []byte

QueryRaw mocks base method.

func (*MockViewKeeper) QuerySmart

func (m *MockViewKeeper) QuerySmart(ctx context.Context, contractAddr types1.AccAddress, req []byte) ([]byte, error)

QuerySmart mocks base method.

type MockViewKeeperMockRecorder

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

MockViewKeeperMockRecorder is the mock recorder for MockViewKeeper.

func (*MockViewKeeperMockRecorder) GetByteCode

func (mr *MockViewKeeperMockRecorder) GetByteCode(ctx, codeID any) *gomock.Call

GetByteCode indicates an expected call of GetByteCode.

func (*MockViewKeeperMockRecorder) GetCodeInfo

func (mr *MockViewKeeperMockRecorder) GetCodeInfo(ctx, codeID any) *gomock.Call

GetCodeInfo indicates an expected call of GetCodeInfo.

func (*MockViewKeeperMockRecorder) GetContractHistory

func (mr *MockViewKeeperMockRecorder) GetContractHistory(ctx, contractAddr any) *gomock.Call

GetContractHistory indicates an expected call of GetContractHistory.

func (*MockViewKeeperMockRecorder) GetContractInfo

func (mr *MockViewKeeperMockRecorder) GetContractInfo(ctx, contractAddress any) *gomock.Call

GetContractInfo indicates an expected call of GetContractInfo.

func (*MockViewKeeperMockRecorder) GetParams

func (mr *MockViewKeeperMockRecorder) GetParams(ctx any) *gomock.Call

GetParams indicates an expected call of GetParams.

func (*MockViewKeeperMockRecorder) HasContractInfo

func (mr *MockViewKeeperMockRecorder) HasContractInfo(ctx, contractAddress any) *gomock.Call

HasContractInfo indicates an expected call of HasContractInfo.

func (*MockViewKeeperMockRecorder) IsPinnedCode

func (mr *MockViewKeeperMockRecorder) IsPinnedCode(ctx, codeID any) *gomock.Call

IsPinnedCode indicates an expected call of IsPinnedCode.

func (*MockViewKeeperMockRecorder) IterateCodeInfos

func (mr *MockViewKeeperMockRecorder) IterateCodeInfos(ctx, cb any) *gomock.Call

IterateCodeInfos indicates an expected call of IterateCodeInfos.

func (*MockViewKeeperMockRecorder) IterateContractInfo

func (mr *MockViewKeeperMockRecorder) IterateContractInfo(ctx, cb any) *gomock.Call

IterateContractInfo indicates an expected call of IterateContractInfo.

func (*MockViewKeeperMockRecorder) IterateContractState

func (mr *MockViewKeeperMockRecorder) IterateContractState(ctx, contractAddress, cb any) *gomock.Call

IterateContractState indicates an expected call of IterateContractState.

func (*MockViewKeeperMockRecorder) IterateContractsByCode

func (mr *MockViewKeeperMockRecorder) IterateContractsByCode(ctx, codeID, cb any) *gomock.Call

IterateContractsByCode indicates an expected call of IterateContractsByCode.

func (*MockViewKeeperMockRecorder) IterateContractsByCreator

func (mr *MockViewKeeperMockRecorder) IterateContractsByCreator(ctx, creator, cb any) *gomock.Call

IterateContractsByCreator indicates an expected call of IterateContractsByCreator.

func (*MockViewKeeperMockRecorder) QueryRaw

func (mr *MockViewKeeperMockRecorder) QueryRaw(ctx, contractAddress, key any) *gomock.Call

QueryRaw indicates an expected call of QueryRaw.

func (*MockViewKeeperMockRecorder) QuerySmart

func (mr *MockViewKeeperMockRecorder) QuerySmart(ctx, contractAddr, req any) *gomock.Call

QuerySmart indicates an expected call of QuerySmart.

Jump to

Keyboard shortcuts

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