Documentation ¶
Overview ¶
Package mock_stub is a generated GoMock package.
Index ¶
- type MockStub
- func (m *MockStub) Add(key string, value []byte)
- func (m *MockStub) AddObject(key string, value interface{})
- func (m *MockStub) Callee() string
- func (m *MockStub) Caller() string
- func (m *MockStub) CrossInvoke(address, method string, args ...*pb.Arg) *boltvm.Response
- func (m *MockStub) CrossInvokeEVM(address string, input []byte) *boltvm.Response
- func (m *MockStub) CurrentCaller() string
- func (m *MockStub) Delete(key string)
- func (m *MockStub) EXPECT() *MockStubMockRecorder
- func (m *MockStub) EnableAudit() bool
- func (m *MockStub) Get(key string) (bool, []byte)
- func (m *MockStub) GetAccount(address string) interface{}
- func (m *MockStub) GetCurrentHeight() uint64
- func (m *MockStub) GetObject(key string, ret interface{}) bool
- func (m *MockStub) GetTxHash() *types.Hash
- func (m *MockStub) GetTxIndex() uint64
- func (m *MockStub) GetTxTimeStamp() int64
- func (m *MockStub) Has(key string) bool
- func (m *MockStub) Logger() logrus.FieldLogger
- func (m *MockStub) PostEvent(arg0 pb.Event_EventType, arg1 interface{})
- func (m *MockStub) PostInterchainEvent(arg0 interface{})
- func (m *MockStub) Query(prefix string) (bool, [][]byte)
- func (m *MockStub) Set(key string, value []byte)
- func (m *MockStub) SetObject(key string, value interface{})
- func (m *MockStub) ValidationEngine() validator.Engine
- type MockStubMockRecorder
- func (mr *MockStubMockRecorder) Add(key, value interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) AddObject(key, value interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) Callee() *gomock.Call
- func (mr *MockStubMockRecorder) Caller() *gomock.Call
- func (mr *MockStubMockRecorder) CrossInvoke(address, method interface{}, args ...interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) CrossInvokeEVM(address, input interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) CurrentCaller() *gomock.Call
- func (mr *MockStubMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) EnableAudit() *gomock.Call
- func (mr *MockStubMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) GetAccount(address interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) GetCurrentHeight() *gomock.Call
- func (mr *MockStubMockRecorder) GetObject(key, ret interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) GetTxHash() *gomock.Call
- func (mr *MockStubMockRecorder) GetTxIndex() *gomock.Call
- func (mr *MockStubMockRecorder) GetTxTimeStamp() *gomock.Call
- func (mr *MockStubMockRecorder) Has(key interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) Logger() *gomock.Call
- func (mr *MockStubMockRecorder) PostEvent(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) PostInterchainEvent(arg0 interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) Query(prefix interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) Set(key, value interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) SetObject(key, value interface{}) *gomock.Call
- func (mr *MockStubMockRecorder) ValidationEngine() *gomock.Call
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) CrossInvoke ¶
CrossInvoke mocks base method.
func (*MockStub) CrossInvokeEVM ¶ added in v1.20.0
CrossInvokeEVM mocks base method.
func (*MockStub) CurrentCaller ¶
CurrentCaller 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
EnableAudit mocks base method.
func (*MockStub) GetAccount ¶ added in v1.3.0
GetAccount mocks base method.
func (*MockStub) GetCurrentHeight ¶ added in v1.20.0
GetCurrentHeight mocks base method.
func (*MockStub) GetTxTimeStamp ¶ added in v1.20.0
GetTxTimeStamp 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) ValidationEngine ¶
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.