Documentation
¶
Overview ¶
Package mock_client is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Bind(kern plugins.Kernel)
- func (m *MockClient) CommitCallback(ibtp *pb.IBTP) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) GetCallbackMeta() (map[string]uint64, error)
- func (m *MockClient) GetIBTP() chan *pb.IBTP
- func (m *MockClient) GetInMessage(from string, idx uint64) ([][]byte, error)
- func (m *MockClient) GetInMeta() (map[string]uint64, error)
- func (m *MockClient) GetOutMessage(to string, idx uint64) (*pb.IBTP, error)
- func (m *MockClient) GetOutMeta() (map[string]uint64, error)
- func (m *MockClient) GetReceipt(ibtp *pb.IBTP) (*pb.IBTP, error)
- func (m *MockClient) ID() string
- func (m *MockClient) IncreaseInMeta(ibtp *pb.IBTP) (*pb.IBTP, error)
- func (m *MockClient) Initialize(configPath, ID string, extra []byte) error
- func (m *MockClient) Name() string
- func (m *MockClient) RollbackIBTP(ibtp *pb.IBTP, isSrcChain bool) (*pb.RollbackIBTPResponse, error)
- func (m *MockClient) Start() error
- func (m *MockClient) Stop() error
- func (m *MockClient) SubmitIBTP(arg0 *pb.IBTP) (*pb.SubmitIBTPResponse, error)
- func (m *MockClient) Type() string
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Bind(kern interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) CommitCallback(ibtp interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetCallbackMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetIBTP() *gomock.Call
- func (mr *MockClientMockRecorder) GetInMessage(from, idx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetInMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetOutMessage(to, idx interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetOutMeta() *gomock.Call
- func (mr *MockClientMockRecorder) GetReceipt(ibtp interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ID() *gomock.Call
- func (mr *MockClientMockRecorder) IncreaseInMeta(ibtp interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Initialize(configPath, ID, extra interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Name() *gomock.Call
- func (mr *MockClientMockRecorder) RollbackIBTP(ibtp, isSrcChain interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Start() *gomock.Call
- func (mr *MockClientMockRecorder) Stop() *gomock.Call
- func (mr *MockClientMockRecorder) SubmitIBTP(arg0 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Type() *gomock.Call
- type MockKernel
- type MockKernelMockRecorder
- type MockLauncher
- type MockLauncherMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) CommitCallback ¶
func (m *MockClient) CommitCallback(ibtp *pb.IBTP) error
CommitCallback mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) GetCallbackMeta ¶
func (m *MockClient) GetCallbackMeta() (map[string]uint64, error)
GetCallbackMeta mocks base method.
func (*MockClient) GetIBTP ¶
func (m *MockClient) GetIBTP() chan *pb.IBTP
GetIBTP mocks base method.
func (*MockClient) GetInMessage ¶
func (m *MockClient) GetInMessage(from string, idx uint64) ([][]byte, error)
GetInMessage mocks base method.
func (*MockClient) GetInMeta ¶
func (m *MockClient) GetInMeta() (map[string]uint64, error)
GetInMeta mocks base method.
func (*MockClient) GetOutMessage ¶
GetOutMessage mocks base method.
func (*MockClient) GetOutMeta ¶
func (m *MockClient) GetOutMeta() (map[string]uint64, error)
GetOutMeta mocks base method.
func (*MockClient) GetReceipt ¶
GetReceipt mocks base method.
func (*MockClient) IncreaseInMeta ¶
IncreaseInMeta mocks base method.
func (*MockClient) Initialize ¶
func (m *MockClient) Initialize(configPath, ID string, extra []byte) error
Initialize mocks base method.
func (*MockClient) RollbackIBTP ¶
func (m *MockClient) RollbackIBTP(ibtp *pb.IBTP, isSrcChain bool) (*pb.RollbackIBTPResponse, error)
RollbackIBTP mocks base method.
func (*MockClient) SubmitIBTP ¶
func (m *MockClient) SubmitIBTP(arg0 *pb.IBTP) (*pb.SubmitIBTPResponse, error)
SubmitIBTP mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Bind ¶
func (mr *MockClientMockRecorder) Bind(kern interface{}) *gomock.Call
Bind indicates an expected call of Bind.
func (*MockClientMockRecorder) CommitCallback ¶
func (mr *MockClientMockRecorder) CommitCallback(ibtp interface{}) *gomock.Call
CommitCallback indicates an expected call of CommitCallback.
func (*MockClientMockRecorder) GetCallbackMeta ¶
func (mr *MockClientMockRecorder) GetCallbackMeta() *gomock.Call
GetCallbackMeta indicates an expected call of GetCallbackMeta.
func (*MockClientMockRecorder) GetIBTP ¶
func (mr *MockClientMockRecorder) GetIBTP() *gomock.Call
GetIBTP indicates an expected call of GetIBTP.
func (*MockClientMockRecorder) GetInMessage ¶
func (mr *MockClientMockRecorder) GetInMessage(from, idx interface{}) *gomock.Call
GetInMessage indicates an expected call of GetInMessage.
func (*MockClientMockRecorder) GetInMeta ¶
func (mr *MockClientMockRecorder) GetInMeta() *gomock.Call
GetInMeta indicates an expected call of GetInMeta.
func (*MockClientMockRecorder) GetOutMessage ¶
func (mr *MockClientMockRecorder) GetOutMessage(to, idx interface{}) *gomock.Call
GetOutMessage indicates an expected call of GetOutMessage.
func (*MockClientMockRecorder) GetOutMeta ¶
func (mr *MockClientMockRecorder) GetOutMeta() *gomock.Call
GetOutMeta indicates an expected call of GetOutMeta.
func (*MockClientMockRecorder) GetReceipt ¶
func (mr *MockClientMockRecorder) GetReceipt(ibtp interface{}) *gomock.Call
GetReceipt indicates an expected call of GetReceipt.
func (*MockClientMockRecorder) ID ¶
func (mr *MockClientMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockClientMockRecorder) IncreaseInMeta ¶
func (mr *MockClientMockRecorder) IncreaseInMeta(ibtp interface{}) *gomock.Call
IncreaseInMeta indicates an expected call of IncreaseInMeta.
func (*MockClientMockRecorder) Initialize ¶
func (mr *MockClientMockRecorder) Initialize(configPath, ID, extra interface{}) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockClientMockRecorder) Name ¶
func (mr *MockClientMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockClientMockRecorder) RollbackIBTP ¶
func (mr *MockClientMockRecorder) RollbackIBTP(ibtp, isSrcChain interface{}) *gomock.Call
RollbackIBTP indicates an expected call of RollbackIBTP.
func (*MockClientMockRecorder) Start ¶
func (mr *MockClientMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockClientMockRecorder) Stop ¶
func (mr *MockClientMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockClientMockRecorder) SubmitIBTP ¶
func (mr *MockClientMockRecorder) SubmitIBTP(arg0 interface{}) *gomock.Call
SubmitIBTP indicates an expected call of SubmitIBTP.
func (*MockClientMockRecorder) Type ¶
func (mr *MockClientMockRecorder) Type() *gomock.Call
Type indicates an expected call of Type.
type MockKernel ¶
type MockKernel struct {
// contains filtered or unexported fields
}
MockKernel is a mock of Kernel interface.
func NewMockKernel ¶
func NewMockKernel(ctrl *gomock.Controller) *MockKernel
NewMockKernel creates a new mock instance.
func (*MockKernel) EXPECT ¶
func (m *MockKernel) EXPECT() *MockKernelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockKernelMockRecorder ¶
type MockKernelMockRecorder struct {
// contains filtered or unexported fields
}
MockKernelMockRecorder is the mock recorder for MockKernel.
func (*MockKernelMockRecorder) Exited ¶
func (mr *MockKernelMockRecorder) Exited() *gomock.Call
Exited indicates an expected call of Exited.
func (*MockKernelMockRecorder) Kill ¶
func (mr *MockKernelMockRecorder) Kill() *gomock.Call
Kill indicates an expected call of Kill.
type MockLauncher ¶
type MockLauncher struct {
// contains filtered or unexported fields
}
MockLauncher is a mock of Launcher interface.
func NewMockLauncher ¶
func NewMockLauncher(ctrl *gomock.Controller) *MockLauncher
NewMockLauncher creates a new mock instance.
func (*MockLauncher) EXPECT ¶
func (m *MockLauncher) EXPECT() *MockLauncherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockLauncherMockRecorder ¶
type MockLauncherMockRecorder struct {
// contains filtered or unexported fields
}
MockLauncherMockRecorder is the mock recorder for MockLauncher.
func (*MockLauncherMockRecorder) Start ¶
func (mr *MockLauncherMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockLauncherMockRecorder) Stop ¶
func (mr *MockLauncherMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.