mocks

package
v2.1.45 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: client.go

Generated by this command:

mockgen -destination mocks/client_mock.go -source client.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 MockClient added in v2.0.6

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

MockClient is a mock of Client interface.

func NewMockClient added in v2.0.6

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) Close added in v2.0.7

func (m *MockClient) Close() error

Close mocks base method.

func (*MockClient) EXPECT added in v2.0.6

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetPieceTasks added in v2.0.6

func (m *MockClient) GetPieceTasks(arg0 context.Context, arg1 *common.PieceTaskRequest, arg2 ...grpc.CallOption) (*common.PiecePacket, error)

GetPieceTasks mocks base method.

func (*MockClient) ObtainSeeds added in v2.0.6

ObtainSeeds mocks base method.

func (*MockClient) SyncPieceTasks added in v2.0.6

SyncPieceTasks mocks base method.

type MockClientMockRecorder added in v2.0.6

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) Close added in v2.0.7

func (mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockClientMockRecorder) GetPieceTasks added in v2.0.6

func (mr *MockClientMockRecorder) GetPieceTasks(arg0, arg1 any, arg2 ...any) *gomock.Call

GetPieceTasks indicates an expected call of GetPieceTasks.

func (*MockClientMockRecorder) ObtainSeeds added in v2.0.6

func (mr *MockClientMockRecorder) ObtainSeeds(arg0, arg1 any, arg2 ...any) *gomock.Call

ObtainSeeds indicates an expected call of ObtainSeeds.

func (*MockClientMockRecorder) SyncPieceTasks added in v2.0.6

func (mr *MockClientMockRecorder) SyncPieceTasks(arg0, arg1 any, arg2 ...any) *gomock.Call

SyncPieceTasks indicates an expected call of SyncPieceTasks.

Jump to

Keyboard shortcuts

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