mocks

package
v2.0.59 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ../dfdaemon_grpc.pb.go

Generated by this command:

mockgen -destination dfdaemon_mock.go -source ../dfdaemon_grpc.pb.go -package mocks

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 MockDfdaemonClient

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

MockDfdaemonClient is a mock of DfdaemonClient interface.

func NewMockDfdaemonClient

func NewMockDfdaemonClient(ctrl *gomock.Controller) *MockDfdaemonClient

NewMockDfdaemonClient creates a new mock instance.

func (*MockDfdaemonClient) DeleteTask

DeleteTask mocks base method.

func (*MockDfdaemonClient) DownloadPiece added in v2.0.59

DownloadPiece mocks base method.

func (*MockDfdaemonClient) DownloadTask

DownloadTask mocks base method.

func (*MockDfdaemonClient) EXPECT

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

func (*MockDfdaemonClient) GetPieceNumbers added in v2.0.40

GetPieceNumbers mocks base method.

func (*MockDfdaemonClient) StatTask

StatTask mocks base method.

func (*MockDfdaemonClient) UploadTask

UploadTask mocks base method.

type MockDfdaemonClientMockRecorder

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

MockDfdaemonClientMockRecorder is the mock recorder for MockDfdaemonClient.

func (*MockDfdaemonClientMockRecorder) DeleteTask

func (mr *MockDfdaemonClientMockRecorder) DeleteTask(ctx, in any, opts ...any) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockDfdaemonClientMockRecorder) DownloadPiece added in v2.0.59

func (mr *MockDfdaemonClientMockRecorder) DownloadPiece(ctx, in any, opts ...any) *gomock.Call

DownloadPiece indicates an expected call of DownloadPiece.

func (*MockDfdaemonClientMockRecorder) DownloadTask

func (mr *MockDfdaemonClientMockRecorder) DownloadTask(ctx, in any, opts ...any) *gomock.Call

DownloadTask indicates an expected call of DownloadTask.

func (*MockDfdaemonClientMockRecorder) GetPieceNumbers added in v2.0.40

func (mr *MockDfdaemonClientMockRecorder) GetPieceNumbers(ctx, in any, opts ...any) *gomock.Call

GetPieceNumbers indicates an expected call of GetPieceNumbers.

func (*MockDfdaemonClientMockRecorder) StatTask

func (mr *MockDfdaemonClientMockRecorder) StatTask(ctx, in any, opts ...any) *gomock.Call

StatTask indicates an expected call of StatTask.

func (*MockDfdaemonClientMockRecorder) UploadTask

func (mr *MockDfdaemonClientMockRecorder) UploadTask(ctx, in any, opts ...any) *gomock.Call

UploadTask indicates an expected call of UploadTask.

type MockDfdaemonServer

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

MockDfdaemonServer is a mock of DfdaemonServer interface.

func NewMockDfdaemonServer

func NewMockDfdaemonServer(ctrl *gomock.Controller) *MockDfdaemonServer

NewMockDfdaemonServer creates a new mock instance.

func (*MockDfdaemonServer) DeleteTask

DeleteTask mocks base method.

func (*MockDfdaemonServer) DownloadPiece added in v2.0.59

DownloadPiece mocks base method.

func (*MockDfdaemonServer) DownloadTask

DownloadTask mocks base method.

func (*MockDfdaemonServer) EXPECT

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

func (*MockDfdaemonServer) GetPieceNumbers added in v2.0.40

GetPieceNumbers mocks base method.

func (*MockDfdaemonServer) StatTask

StatTask mocks base method.

func (*MockDfdaemonServer) UploadTask

UploadTask mocks base method.

type MockDfdaemonServerMockRecorder

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

MockDfdaemonServerMockRecorder is the mock recorder for MockDfdaemonServer.

func (*MockDfdaemonServerMockRecorder) DeleteTask

func (mr *MockDfdaemonServerMockRecorder) DeleteTask(arg0, arg1 any) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockDfdaemonServerMockRecorder) DownloadPiece added in v2.0.59

func (mr *MockDfdaemonServerMockRecorder) DownloadPiece(arg0, arg1 any) *gomock.Call

DownloadPiece indicates an expected call of DownloadPiece.

func (*MockDfdaemonServerMockRecorder) DownloadTask

func (mr *MockDfdaemonServerMockRecorder) DownloadTask(arg0, arg1 any) *gomock.Call

DownloadTask indicates an expected call of DownloadTask.

func (*MockDfdaemonServerMockRecorder) GetPieceNumbers added in v2.0.40

func (mr *MockDfdaemonServerMockRecorder) GetPieceNumbers(arg0, arg1 any) *gomock.Call

GetPieceNumbers indicates an expected call of GetPieceNumbers.

func (*MockDfdaemonServerMockRecorder) StatTask

func (mr *MockDfdaemonServerMockRecorder) StatTask(arg0, arg1 any) *gomock.Call

StatTask indicates an expected call of StatTask.

func (*MockDfdaemonServerMockRecorder) UploadTask

func (mr *MockDfdaemonServerMockRecorder) UploadTask(arg0, arg1 any) *gomock.Call

UploadTask indicates an expected call of UploadTask.

type MockDfdaemon_DownloadTaskClient added in v2.0.51

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

MockDfdaemon_DownloadTaskClient is a mock of Dfdaemon_DownloadTaskClient interface.

func NewMockDfdaemon_DownloadTaskClient added in v2.0.51

func NewMockDfdaemon_DownloadTaskClient(ctrl *gomock.Controller) *MockDfdaemon_DownloadTaskClient

NewMockDfdaemon_DownloadTaskClient creates a new mock instance.

func (*MockDfdaemon_DownloadTaskClient) CloseSend added in v2.0.51

func (m *MockDfdaemon_DownloadTaskClient) CloseSend() error

CloseSend mocks base method.

func (*MockDfdaemon_DownloadTaskClient) Context added in v2.0.51

Context mocks base method.

func (*MockDfdaemon_DownloadTaskClient) EXPECT added in v2.0.51

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

func (*MockDfdaemon_DownloadTaskClient) Header added in v2.0.51

Header mocks base method.

func (*MockDfdaemon_DownloadTaskClient) Recv added in v2.0.51

Recv mocks base method.

func (*MockDfdaemon_DownloadTaskClient) RecvMsg added in v2.0.51

func (m_2 *MockDfdaemon_DownloadTaskClient) RecvMsg(m any) error

RecvMsg mocks base method.

func (*MockDfdaemon_DownloadTaskClient) SendMsg added in v2.0.51

func (m_2 *MockDfdaemon_DownloadTaskClient) SendMsg(m any) error

SendMsg mocks base method.

func (*MockDfdaemon_DownloadTaskClient) Trailer added in v2.0.51

Trailer mocks base method.

type MockDfdaemon_DownloadTaskClientMockRecorder added in v2.0.51

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

MockDfdaemon_DownloadTaskClientMockRecorder is the mock recorder for MockDfdaemon_DownloadTaskClient.

func (*MockDfdaemon_DownloadTaskClientMockRecorder) CloseSend added in v2.0.51

CloseSend indicates an expected call of CloseSend.

func (*MockDfdaemon_DownloadTaskClientMockRecorder) Context added in v2.0.51

Context indicates an expected call of Context.

func (*MockDfdaemon_DownloadTaskClientMockRecorder) Header added in v2.0.51

Header indicates an expected call of Header.

func (*MockDfdaemon_DownloadTaskClientMockRecorder) Recv added in v2.0.51

Recv indicates an expected call of Recv.

func (*MockDfdaemon_DownloadTaskClientMockRecorder) RecvMsg added in v2.0.51

RecvMsg indicates an expected call of RecvMsg.

func (*MockDfdaemon_DownloadTaskClientMockRecorder) SendMsg added in v2.0.51

SendMsg indicates an expected call of SendMsg.

func (*MockDfdaemon_DownloadTaskClientMockRecorder) Trailer added in v2.0.51

Trailer indicates an expected call of Trailer.

type MockDfdaemon_DownloadTaskServer added in v2.0.51

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

MockDfdaemon_DownloadTaskServer is a mock of Dfdaemon_DownloadTaskServer interface.

func NewMockDfdaemon_DownloadTaskServer added in v2.0.51

func NewMockDfdaemon_DownloadTaskServer(ctrl *gomock.Controller) *MockDfdaemon_DownloadTaskServer

NewMockDfdaemon_DownloadTaskServer creates a new mock instance.

func (*MockDfdaemon_DownloadTaskServer) Context added in v2.0.51

Context mocks base method.

func (*MockDfdaemon_DownloadTaskServer) EXPECT added in v2.0.51

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

func (*MockDfdaemon_DownloadTaskServer) RecvMsg added in v2.0.51

func (m_2 *MockDfdaemon_DownloadTaskServer) RecvMsg(m any) error

RecvMsg mocks base method.

func (*MockDfdaemon_DownloadTaskServer) Send added in v2.0.51

Send mocks base method.

func (*MockDfdaemon_DownloadTaskServer) SendHeader added in v2.0.51

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

SendHeader mocks base method.

func (*MockDfdaemon_DownloadTaskServer) SendMsg added in v2.0.51

func (m_2 *MockDfdaemon_DownloadTaskServer) SendMsg(m any) error

SendMsg mocks base method.

func (*MockDfdaemon_DownloadTaskServer) SetHeader added in v2.0.51

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

SetHeader mocks base method.

func (*MockDfdaemon_DownloadTaskServer) SetTrailer added in v2.0.51

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

SetTrailer mocks base method.

type MockDfdaemon_DownloadTaskServerMockRecorder added in v2.0.51

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

MockDfdaemon_DownloadTaskServerMockRecorder is the mock recorder for MockDfdaemon_DownloadTaskServer.

func (*MockDfdaemon_DownloadTaskServerMockRecorder) Context added in v2.0.51

Context indicates an expected call of Context.

func (*MockDfdaemon_DownloadTaskServerMockRecorder) RecvMsg added in v2.0.51

RecvMsg indicates an expected call of RecvMsg.

func (*MockDfdaemon_DownloadTaskServerMockRecorder) Send added in v2.0.51

Send indicates an expected call of Send.

func (*MockDfdaemon_DownloadTaskServerMockRecorder) SendHeader added in v2.0.51

SendHeader indicates an expected call of SendHeader.

func (*MockDfdaemon_DownloadTaskServerMockRecorder) SendMsg added in v2.0.51

SendMsg indicates an expected call of SendMsg.

func (*MockDfdaemon_DownloadTaskServerMockRecorder) SetHeader added in v2.0.51

SetHeader indicates an expected call of SetHeader.

func (*MockDfdaemon_DownloadTaskServerMockRecorder) SetTrailer added in v2.0.51

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeDfdaemonServer

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

MockUnsafeDfdaemonServer is a mock of UnsafeDfdaemonServer interface.

func NewMockUnsafeDfdaemonServer

func NewMockUnsafeDfdaemonServer(ctrl *gomock.Controller) *MockUnsafeDfdaemonServer

NewMockUnsafeDfdaemonServer creates a new mock instance.

func (*MockUnsafeDfdaemonServer) EXPECT

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

type MockUnsafeDfdaemonServerMockRecorder

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

MockUnsafeDfdaemonServerMockRecorder is the mock recorder for MockUnsafeDfdaemonServer.

Jump to

Keyboard shortcuts

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