mocks

package
v2.0.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDaemonClient

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

MockDaemonClient is a mock of DaemonClient interface.

func NewMockDaemonClient

func NewMockDaemonClient(ctrl *gomock.Controller) *MockDaemonClient

NewMockDaemonClient creates a new mock instance.

func (*MockDaemonClient) CheckHealth

func (m *MockDaemonClient) CheckHealth(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)

CheckHealth mocks base method.

func (*MockDaemonClient) Download

Download mocks base method.

func (*MockDaemonClient) EXPECT

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

func (*MockDaemonClient) GetPieceTasks

func (m *MockDaemonClient) GetPieceTasks(ctx context.Context, in *base.PieceTaskRequest, opts ...grpc.CallOption) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

type MockDaemonClientMockRecorder

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

MockDaemonClientMockRecorder is the mock recorder for MockDaemonClient.

func (*MockDaemonClientMockRecorder) CheckHealth

func (mr *MockDaemonClientMockRecorder) CheckHealth(ctx, in interface{}, opts ...interface{}) *gomock.Call

CheckHealth indicates an expected call of CheckHealth.

func (*MockDaemonClientMockRecorder) Download

func (mr *MockDaemonClientMockRecorder) Download(ctx, in interface{}, opts ...interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockDaemonClientMockRecorder) GetPieceTasks

func (mr *MockDaemonClientMockRecorder) GetPieceTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

type MockDaemonServer

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

MockDaemonServer is a mock of DaemonServer interface.

func NewMockDaemonServer

func NewMockDaemonServer(ctrl *gomock.Controller) *MockDaemonServer

NewMockDaemonServer creates a new mock instance.

func (*MockDaemonServer) CheckHealth

func (m *MockDaemonServer) CheckHealth(arg0 context.Context, arg1 *emptypb.Empty) (*emptypb.Empty, error)

CheckHealth mocks base method.

func (*MockDaemonServer) Download

Download mocks base method.

func (*MockDaemonServer) EXPECT

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

func (*MockDaemonServer) GetPieceTasks

func (m *MockDaemonServer) GetPieceTasks(arg0 context.Context, arg1 *base.PieceTaskRequest) (*base.PiecePacket, error)

GetPieceTasks mocks base method.

type MockDaemonServerMockRecorder

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

MockDaemonServerMockRecorder is the mock recorder for MockDaemonServer.

func (*MockDaemonServerMockRecorder) CheckHealth

func (mr *MockDaemonServerMockRecorder) CheckHealth(arg0, arg1 interface{}) *gomock.Call

CheckHealth indicates an expected call of CheckHealth.

func (*MockDaemonServerMockRecorder) Download

func (mr *MockDaemonServerMockRecorder) Download(arg0, arg1 interface{}) *gomock.Call

Download indicates an expected call of Download.

func (*MockDaemonServerMockRecorder) GetPieceTasks

func (mr *MockDaemonServerMockRecorder) GetPieceTasks(arg0, arg1 interface{}) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

type MockDaemon_DownloadClient

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

MockDaemon_DownloadClient is a mock of Daemon_DownloadClient interface.

func NewMockDaemon_DownloadClient

func NewMockDaemon_DownloadClient(ctrl *gomock.Controller) *MockDaemon_DownloadClient

NewMockDaemon_DownloadClient creates a new mock instance.

func (*MockDaemon_DownloadClient) CloseSend

func (m *MockDaemon_DownloadClient) CloseSend() error

CloseSend mocks base method.

func (*MockDaemon_DownloadClient) Context

Context mocks base method.

func (*MockDaemon_DownloadClient) EXPECT

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

func (*MockDaemon_DownloadClient) Header

func (m *MockDaemon_DownloadClient) Header() (metadata.MD, error)

Header mocks base method.

func (*MockDaemon_DownloadClient) Recv

Recv mocks base method.

func (*MockDaemon_DownloadClient) RecvMsg

func (m_2 *MockDaemon_DownloadClient) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockDaemon_DownloadClient) SendMsg

func (m_2 *MockDaemon_DownloadClient) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockDaemon_DownloadClient) Trailer

func (m *MockDaemon_DownloadClient) Trailer() metadata.MD

Trailer mocks base method.

type MockDaemon_DownloadClientMockRecorder

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

MockDaemon_DownloadClientMockRecorder is the mock recorder for MockDaemon_DownloadClient.

func (*MockDaemon_DownloadClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockDaemon_DownloadClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDaemon_DownloadClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockDaemon_DownloadClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockDaemon_DownloadClientMockRecorder) RecvMsg

func (mr *MockDaemon_DownloadClientMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockDaemon_DownloadClientMockRecorder) SendMsg

func (mr *MockDaemon_DownloadClientMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockDaemon_DownloadClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockDaemon_DownloadServer

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

MockDaemon_DownloadServer is a mock of Daemon_DownloadServer interface.

func NewMockDaemon_DownloadServer

func NewMockDaemon_DownloadServer(ctrl *gomock.Controller) *MockDaemon_DownloadServer

NewMockDaemon_DownloadServer creates a new mock instance.

func (*MockDaemon_DownloadServer) Context

Context mocks base method.

func (*MockDaemon_DownloadServer) EXPECT

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

func (*MockDaemon_DownloadServer) RecvMsg

func (m_2 *MockDaemon_DownloadServer) RecvMsg(m interface{}) error

RecvMsg mocks base method.

func (*MockDaemon_DownloadServer) Send

Send mocks base method.

func (*MockDaemon_DownloadServer) SendHeader

func (m *MockDaemon_DownloadServer) SendHeader(arg0 metadata.MD) error

SendHeader mocks base method.

func (*MockDaemon_DownloadServer) SendMsg

func (m_2 *MockDaemon_DownloadServer) SendMsg(m interface{}) error

SendMsg mocks base method.

func (*MockDaemon_DownloadServer) SetHeader

func (m *MockDaemon_DownloadServer) SetHeader(arg0 metadata.MD) error

SetHeader mocks base method.

func (*MockDaemon_DownloadServer) SetTrailer

func (m *MockDaemon_DownloadServer) SetTrailer(arg0 metadata.MD)

SetTrailer mocks base method.

type MockDaemon_DownloadServerMockRecorder

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

MockDaemon_DownloadServerMockRecorder is the mock recorder for MockDaemon_DownloadServer.

func (*MockDaemon_DownloadServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDaemon_DownloadServerMockRecorder) RecvMsg

func (mr *MockDaemon_DownloadServerMockRecorder) RecvMsg(m interface{}) *gomock.Call

RecvMsg indicates an expected call of RecvMsg.

func (*MockDaemon_DownloadServerMockRecorder) Send

func (mr *MockDaemon_DownloadServerMockRecorder) Send(arg0 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockDaemon_DownloadServerMockRecorder) SendHeader

func (mr *MockDaemon_DownloadServerMockRecorder) SendHeader(arg0 interface{}) *gomock.Call

SendHeader indicates an expected call of SendHeader.

func (*MockDaemon_DownloadServerMockRecorder) SendMsg

func (mr *MockDaemon_DownloadServerMockRecorder) SendMsg(m interface{}) *gomock.Call

SendMsg indicates an expected call of SendMsg.

func (*MockDaemon_DownloadServerMockRecorder) SetHeader

func (mr *MockDaemon_DownloadServerMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

func (*MockDaemon_DownloadServerMockRecorder) SetTrailer

func (mr *MockDaemon_DownloadServerMockRecorder) SetTrailer(arg0 interface{}) *gomock.Call

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeDaemonServer

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

MockUnsafeDaemonServer is a mock of UnsafeDaemonServer interface.

func NewMockUnsafeDaemonServer

func NewMockUnsafeDaemonServer(ctrl *gomock.Controller) *MockUnsafeDaemonServer

NewMockUnsafeDaemonServer creates a new mock instance.

func (*MockUnsafeDaemonServer) EXPECT

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

type MockUnsafeDaemonServerMockRecorder

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

MockUnsafeDaemonServerMockRecorder is the mock recorder for MockUnsafeDaemonServer.

Jump to

Keyboard shortcuts

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