mock_client

package
v0.0.0-...-f069fcf Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock_client is a generated GoMock package.

Index

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

func (m *MockClient) Bind(kern plugins.Kernel)

Bind mocks base method.

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

func (m *MockClient) GetOutMessage(to string, idx uint64) (*pb.IBTP, error)

GetOutMessage mocks base method.

func (*MockClient) GetOutMeta

func (m *MockClient) GetOutMeta() (map[string]uint64, error)

GetOutMeta mocks base method.

func (*MockClient) GetReceipt

func (m *MockClient) GetReceipt(ibtp *pb.IBTP) (*pb.IBTP, error)

GetReceipt mocks base method.

func (*MockClient) ID

func (m *MockClient) ID() string

ID mocks base method.

func (*MockClient) IncreaseInMeta

func (m *MockClient) IncreaseInMeta(ibtp *pb.IBTP) (*pb.IBTP, error)

IncreaseInMeta mocks base method.

func (*MockClient) Initialize

func (m *MockClient) Initialize(configPath, ID string, extra []byte) error

Initialize mocks base method.

func (*MockClient) Name

func (m *MockClient) Name() string

Name mocks base method.

func (*MockClient) RollbackIBTP

func (m *MockClient) RollbackIBTP(ibtp *pb.IBTP, isSrcChain bool) (*pb.RollbackIBTPResponse, error)

RollbackIBTP mocks base method.

func (*MockClient) Start

func (m *MockClient) Start() error

Start mocks base method.

func (*MockClient) Stop

func (m *MockClient) Stop() error

Stop mocks base method.

func (*MockClient) SubmitIBTP

func (m *MockClient) SubmitIBTP(arg0 *pb.IBTP) (*pb.SubmitIBTPResponse, error)

SubmitIBTP mocks base method.

func (*MockClient) Type

func (m *MockClient) Type() string

Type 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

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.

func (*MockKernel) Exited

func (m *MockKernel) Exited() bool

Exited mocks base method.

func (*MockKernel) Kill

func (m *MockKernel) Kill()

Kill mocks base method.

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

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

func (*MockLauncher) Start

func (m *MockLauncher) Start() error

Start mocks base method.

func (*MockLauncher) Stop

func (m *MockLauncher) Stop() error

Stop mocks base method.

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.

Jump to

Keyboard shortcuts

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