mocks

package
v2.0.48 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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) 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) SyncPieces

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

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

SyncPieces indicates an expected call of SyncPieces.

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

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

func (mr *MockDfdaemonServerMockRecorder) SyncPieces(arg0 any) *gomock.Call

SyncPieces indicates an expected call of SyncPieces.

func (*MockDfdaemonServerMockRecorder) UploadTask

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

UploadTask indicates an expected call of UploadTask.

type MockDfdaemon_SyncPiecesClient

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

MockDfdaemon_SyncPiecesClient is a mock of Dfdaemon_SyncPiecesClient interface.

func NewMockDfdaemon_SyncPiecesClient

func NewMockDfdaemon_SyncPiecesClient(ctrl *gomock.Controller) *MockDfdaemon_SyncPiecesClient

NewMockDfdaemon_SyncPiecesClient creates a new mock instance.

func (*MockDfdaemon_SyncPiecesClient) CloseSend

func (m *MockDfdaemon_SyncPiecesClient) CloseSend() error

CloseSend mocks base method.

func (*MockDfdaemon_SyncPiecesClient) Context

Context mocks base method.

func (*MockDfdaemon_SyncPiecesClient) EXPECT

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

func (*MockDfdaemon_SyncPiecesClient) Header

Header mocks base method.

func (*MockDfdaemon_SyncPiecesClient) Recv

Recv mocks base method.

func (*MockDfdaemon_SyncPiecesClient) RecvMsg

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

RecvMsg mocks base method.

func (*MockDfdaemon_SyncPiecesClient) Send

Send mocks base method.

func (*MockDfdaemon_SyncPiecesClient) SendMsg

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

SendMsg mocks base method.

func (*MockDfdaemon_SyncPiecesClient) Trailer

Trailer mocks base method.

type MockDfdaemon_SyncPiecesClientMockRecorder

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

MockDfdaemon_SyncPiecesClientMockRecorder is the mock recorder for MockDfdaemon_SyncPiecesClient.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) Send

Send indicates an expected call of Send.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockDfdaemon_SyncPiecesClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockDfdaemon_SyncPiecesServer

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

MockDfdaemon_SyncPiecesServer is a mock of Dfdaemon_SyncPiecesServer interface.

func NewMockDfdaemon_SyncPiecesServer

func NewMockDfdaemon_SyncPiecesServer(ctrl *gomock.Controller) *MockDfdaemon_SyncPiecesServer

NewMockDfdaemon_SyncPiecesServer creates a new mock instance.

func (*MockDfdaemon_SyncPiecesServer) Context

Context mocks base method.

func (*MockDfdaemon_SyncPiecesServer) EXPECT

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

func (*MockDfdaemon_SyncPiecesServer) Recv

Recv mocks base method.

func (*MockDfdaemon_SyncPiecesServer) RecvMsg

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

RecvMsg mocks base method.

func (*MockDfdaemon_SyncPiecesServer) Send

Send mocks base method.

func (*MockDfdaemon_SyncPiecesServer) SendHeader

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

SendHeader mocks base method.

func (*MockDfdaemon_SyncPiecesServer) SendMsg

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

SendMsg mocks base method.

func (*MockDfdaemon_SyncPiecesServer) SetHeader

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

SetHeader mocks base method.

func (*MockDfdaemon_SyncPiecesServer) SetTrailer

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

SetTrailer mocks base method.

type MockDfdaemon_SyncPiecesServerMockRecorder

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

MockDfdaemon_SyncPiecesServerMockRecorder is the mock recorder for MockDfdaemon_SyncPiecesServer.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) SendHeader

SendHeader indicates an expected call of SendHeader.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) SetHeader

SetHeader indicates an expected call of SetHeader.

func (*MockDfdaemon_SyncPiecesServerMockRecorder) SetTrailer

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