mocks

package
v2.0.2-rc.18 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 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, target dfnet.NetAddr, opts ...grpc.CallOption) error

CheckHealth mocks base method.

func (*MockDaemonClient) Close

func (m *MockDaemonClient) Close() error

Close 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, addr dfnet.NetAddr, ptr *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, target interface{}, opts ...interface{}) *gomock.Call

CheckHealth indicates an expected call of CheckHealth.

func (*MockDaemonClientMockRecorder) Close

Close indicates an expected call of Close.

func (*MockDaemonClientMockRecorder) Download

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

Download indicates an expected call of Download.

func (*MockDaemonClientMockRecorder) GetPieceTasks

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

GetPieceTasks indicates an expected call of GetPieceTasks.

Jump to

Keyboard shortcuts

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