mock

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockManager

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

MockManager is a mock of Manager interface.

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) AppendPieceMetadata added in v2.0.2

func (m *MockManager) AppendPieceMetadata(arg0 string, arg1 *storage.PieceMetaRecord) error

AppendPieceMetadata mocks base method.

func (*MockManager) DeleteTask

func (m *MockManager) DeleteTask(arg0 string) error

DeleteTask mocks base method.

func (*MockManager) EXPECT

func (m *MockManager) EXPECT() *MockManagerMockRecorder

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

func (*MockManager) GetUploadPath added in v2.0.3

func (m *MockManager) GetUploadPath() string

GetUploadPath mocks base method.

func (*MockManager) ReadDownloadFile

func (m *MockManager) ReadDownloadFile(arg0 string) (io.ReadCloser, error)

ReadDownloadFile mocks base method.

func (*MockManager) ReadFileMetadata added in v2.0.2

func (m *MockManager) ReadFileMetadata(arg0 string) (*storage.FileMetadata, error)

ReadFileMetadata mocks base method.

func (*MockManager) ReadPieceMetaRecords

func (m *MockManager) ReadPieceMetaRecords(arg0 string) ([]*storage.PieceMetaRecord, error)

ReadPieceMetaRecords mocks base method.

func (*MockManager) ResetRepo

func (m *MockManager) ResetRepo(arg0 *task.SeedTask) error

ResetRepo mocks base method.

func (*MockManager) StatDownloadFile

func (m *MockManager) StatDownloadFile(arg0 string) (*storedriver.StorageInfo, error)

StatDownloadFile mocks base method.

func (*MockManager) TryFreeSpace

func (m *MockManager) TryFreeSpace(arg0 int64) (bool, error)

TryFreeSpace mocks base method.

func (*MockManager) WriteDownloadFile

func (m *MockManager) WriteDownloadFile(arg0 string, arg1, arg2 int64, arg3 io.Reader) error

WriteDownloadFile mocks base method.

func (*MockManager) WriteFileMetadata added in v2.0.2

func (m *MockManager) WriteFileMetadata(arg0 string, arg1 *storage.FileMetadata) error

WriteFileMetadata mocks base method.

func (*MockManager) WritePieceMetaRecords

func (m *MockManager) WritePieceMetaRecords(arg0 string, arg1 []*storage.PieceMetaRecord) error

WritePieceMetaRecords mocks base method.

type MockManagerMockRecorder

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) AppendPieceMetadata added in v2.0.2

func (mr *MockManagerMockRecorder) AppendPieceMetadata(arg0, arg1 interface{}) *gomock.Call

AppendPieceMetadata indicates an expected call of AppendPieceMetadata.

func (*MockManagerMockRecorder) DeleteTask

func (mr *MockManagerMockRecorder) DeleteTask(arg0 interface{}) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockManagerMockRecorder) GetUploadPath added in v2.0.3

func (mr *MockManagerMockRecorder) GetUploadPath() *gomock.Call

GetUploadPath indicates an expected call of GetUploadPath.

func (*MockManagerMockRecorder) ReadDownloadFile

func (mr *MockManagerMockRecorder) ReadDownloadFile(arg0 interface{}) *gomock.Call

ReadDownloadFile indicates an expected call of ReadDownloadFile.

func (*MockManagerMockRecorder) ReadFileMetadata added in v2.0.2

func (mr *MockManagerMockRecorder) ReadFileMetadata(arg0 interface{}) *gomock.Call

ReadFileMetadata indicates an expected call of ReadFileMetadata.

func (*MockManagerMockRecorder) ReadPieceMetaRecords

func (mr *MockManagerMockRecorder) ReadPieceMetaRecords(arg0 interface{}) *gomock.Call

ReadPieceMetaRecords indicates an expected call of ReadPieceMetaRecords.

func (*MockManagerMockRecorder) ResetRepo

func (mr *MockManagerMockRecorder) ResetRepo(arg0 interface{}) *gomock.Call

ResetRepo indicates an expected call of ResetRepo.

func (*MockManagerMockRecorder) StatDownloadFile

func (mr *MockManagerMockRecorder) StatDownloadFile(arg0 interface{}) *gomock.Call

StatDownloadFile indicates an expected call of StatDownloadFile.

func (*MockManagerMockRecorder) TryFreeSpace

func (mr *MockManagerMockRecorder) TryFreeSpace(arg0 interface{}) *gomock.Call

TryFreeSpace indicates an expected call of TryFreeSpace.

func (*MockManagerMockRecorder) WriteDownloadFile

func (mr *MockManagerMockRecorder) WriteDownloadFile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

WriteDownloadFile indicates an expected call of WriteDownloadFile.

func (*MockManagerMockRecorder) WriteFileMetadata added in v2.0.2

func (mr *MockManagerMockRecorder) WriteFileMetadata(arg0, arg1 interface{}) *gomock.Call

WriteFileMetadata indicates an expected call of WriteFileMetadata.

func (*MockManagerMockRecorder) WritePieceMetaRecords

func (mr *MockManagerMockRecorder) WritePieceMetaRecords(arg0, arg1 interface{}) *gomock.Call

WritePieceMetaRecords indicates an expected call of WritePieceMetaRecords.

Jump to

Keyboard shortcuts

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