mock_stub

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_stub is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStub

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

MockStub is a mock of Stub interface.

func NewMockStub

func NewMockStub(ctrl *gomock.Controller) *MockStub

NewMockStub creates a new mock instance.

func (*MockStub) Add added in v1.28.0

func (m *MockStub) Add(key string, value []byte)

Add mocks base method.

func (*MockStub) AddObject

func (m *MockStub) AddObject(key string, value interface{})

AddObject mocks base method.

func (*MockStub) Callee

func (m *MockStub) Callee() string

Callee mocks base method.

func (*MockStub) Caller

func (m *MockStub) Caller() string

Caller mocks base method.

func (*MockStub) CrossInvoke

func (m *MockStub) CrossInvoke(address, method string, args ...*pb.Arg) *boltvm.Response

CrossInvoke mocks base method.

func (*MockStub) CrossInvokeEVM added in v1.20.0

func (m *MockStub) CrossInvokeEVM(address string, input []byte) *boltvm.Response

CrossInvokeEVM mocks base method.

func (*MockStub) CurrentCaller

func (m *MockStub) CurrentCaller() string

CurrentCaller mocks base method.

func (*MockStub) Delete

func (m *MockStub) Delete(key string)

Delete mocks base method.

func (*MockStub) EXPECT

func (m *MockStub) EXPECT() *MockStubMockRecorder

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

func (*MockStub) EnableAudit added in v1.28.0

func (m *MockStub) EnableAudit() bool

EnableAudit mocks base method.

func (*MockStub) Get

func (m *MockStub) Get(key string) (bool, []byte)

Get mocks base method.

func (*MockStub) GetAccount added in v1.3.0

func (m *MockStub) GetAccount(address string) interface{}

GetAccount mocks base method.

func (*MockStub) GetCurrentHeight added in v1.20.0

func (m *MockStub) GetCurrentHeight() uint64

GetCurrentHeight mocks base method.

func (*MockStub) GetObject

func (m *MockStub) GetObject(key string, ret interface{}) bool

GetObject mocks base method.

func (*MockStub) GetTxHash

func (m *MockStub) GetTxHash() *types.Hash

GetTxHash mocks base method.

func (*MockStub) GetTxIndex

func (m *MockStub) GetTxIndex() uint64

GetTxIndex mocks base method.

func (*MockStub) GetTxTimeStamp added in v1.20.0

func (m *MockStub) GetTxTimeStamp() int64

GetTxTimeStamp mocks base method.

func (*MockStub) Has

func (m *MockStub) Has(key string) bool

Has mocks base method.

func (*MockStub) Logger

func (m *MockStub) Logger() logrus.FieldLogger

Logger mocks base method.

func (*MockStub) PostEvent

func (m *MockStub) PostEvent(arg0 pb.Event_EventType, arg1 interface{})

PostEvent mocks base method.

func (*MockStub) PostInterchainEvent

func (m *MockStub) PostInterchainEvent(arg0 interface{})

PostInterchainEvent mocks base method.

func (*MockStub) Query

func (m *MockStub) Query(prefix string) (bool, [][]byte)

Query mocks base method.

func (*MockStub) Set

func (m *MockStub) Set(key string, value []byte)

Set mocks base method.

func (*MockStub) SetObject

func (m *MockStub) SetObject(key string, value interface{})

SetObject mocks base method.

func (*MockStub) ValidationEngine

func (m *MockStub) ValidationEngine() validator.Engine

ValidationEngine mocks base method.

type MockStubMockRecorder

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

MockStubMockRecorder is the mock recorder for MockStub.

func (*MockStubMockRecorder) Add added in v1.28.0

func (mr *MockStubMockRecorder) Add(key, value interface{}) *gomock.Call

Add indicates an expected call of Add.

func (*MockStubMockRecorder) AddObject

func (mr *MockStubMockRecorder) AddObject(key, value interface{}) *gomock.Call

AddObject indicates an expected call of AddObject.

func (*MockStubMockRecorder) Callee

func (mr *MockStubMockRecorder) Callee() *gomock.Call

Callee indicates an expected call of Callee.

func (*MockStubMockRecorder) Caller

func (mr *MockStubMockRecorder) Caller() *gomock.Call

Caller indicates an expected call of Caller.

func (*MockStubMockRecorder) CrossInvoke

func (mr *MockStubMockRecorder) CrossInvoke(address, method interface{}, args ...interface{}) *gomock.Call

CrossInvoke indicates an expected call of CrossInvoke.

func (*MockStubMockRecorder) CrossInvokeEVM added in v1.20.0

func (mr *MockStubMockRecorder) CrossInvokeEVM(address, input interface{}) *gomock.Call

CrossInvokeEVM indicates an expected call of CrossInvokeEVM.

func (*MockStubMockRecorder) CurrentCaller

func (mr *MockStubMockRecorder) CurrentCaller() *gomock.Call

CurrentCaller indicates an expected call of CurrentCaller.

func (*MockStubMockRecorder) Delete

func (mr *MockStubMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockStubMockRecorder) EnableAudit added in v1.28.0

func (mr *MockStubMockRecorder) EnableAudit() *gomock.Call

EnableAudit indicates an expected call of EnableAudit.

func (*MockStubMockRecorder) Get

func (mr *MockStubMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockStubMockRecorder) GetAccount added in v1.3.0

func (mr *MockStubMockRecorder) GetAccount(address interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockStubMockRecorder) GetCurrentHeight added in v1.20.0

func (mr *MockStubMockRecorder) GetCurrentHeight() *gomock.Call

GetCurrentHeight indicates an expected call of GetCurrentHeight.

func (*MockStubMockRecorder) GetObject

func (mr *MockStubMockRecorder) GetObject(key, ret interface{}) *gomock.Call

GetObject indicates an expected call of GetObject.

func (*MockStubMockRecorder) GetTxHash

func (mr *MockStubMockRecorder) GetTxHash() *gomock.Call

GetTxHash indicates an expected call of GetTxHash.

func (*MockStubMockRecorder) GetTxIndex

func (mr *MockStubMockRecorder) GetTxIndex() *gomock.Call

GetTxIndex indicates an expected call of GetTxIndex.

func (*MockStubMockRecorder) GetTxTimeStamp added in v1.20.0

func (mr *MockStubMockRecorder) GetTxTimeStamp() *gomock.Call

GetTxTimeStamp indicates an expected call of GetTxTimeStamp.

func (*MockStubMockRecorder) Has

func (mr *MockStubMockRecorder) Has(key interface{}) *gomock.Call

Has indicates an expected call of Has.

func (*MockStubMockRecorder) Logger

func (mr *MockStubMockRecorder) Logger() *gomock.Call

Logger indicates an expected call of Logger.

func (*MockStubMockRecorder) PostEvent

func (mr *MockStubMockRecorder) PostEvent(arg0, arg1 interface{}) *gomock.Call

PostEvent indicates an expected call of PostEvent.

func (*MockStubMockRecorder) PostInterchainEvent

func (mr *MockStubMockRecorder) PostInterchainEvent(arg0 interface{}) *gomock.Call

PostInterchainEvent indicates an expected call of PostInterchainEvent.

func (*MockStubMockRecorder) Query

func (mr *MockStubMockRecorder) Query(prefix interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockStubMockRecorder) Set

func (mr *MockStubMockRecorder) Set(key, value interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockStubMockRecorder) SetObject

func (mr *MockStubMockRecorder) SetObject(key, value interface{}) *gomock.Call

SetObject indicates an expected call of SetObject.

func (*MockStubMockRecorder) ValidationEngine

func (mr *MockStubMockRecorder) ValidationEngine() *gomock.Call

ValidationEngine indicates an expected call of ValidationEngine.

Jump to

Keyboard shortcuts

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