task

package
v2.0.2-rc.25 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package task 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) AddOrUpdate

func (m *MockManager) AddOrUpdate(arg0 *task.SeedTask) (*task.SeedTask, error)

AddOrUpdate mocks base method.

func (*MockManager) Delete

func (m *MockManager) Delete(arg0 string)

Delete 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) Exist

func (m *MockManager) Exist(arg0 string) (*task.SeedTask, bool)

Exist mocks base method.

func (*MockManager) Get

func (m *MockManager) Get(arg0 string) (*task.SeedTask, error)

Get mocks base method.

func (*MockManager) GetProgress

func (m *MockManager) GetProgress(arg0 string) ([]*task.PieceInfo, error)

GetProgress mocks base method.

func (*MockManager) Update

func (m *MockManager) Update(arg0 string, arg1 *task.SeedTask) error

Update mocks base method.

func (*MockManager) UpdateProgress

func (m *MockManager) UpdateProgress(arg0 string, arg1 *task.PieceInfo) error

UpdateProgress mocks base method.

type MockManagerMockRecorder

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) AddOrUpdate

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

AddOrUpdate indicates an expected call of AddOrUpdate.

func (*MockManagerMockRecorder) Delete

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

Delete indicates an expected call of Delete.

func (*MockManagerMockRecorder) Exist

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

Exist indicates an expected call of Exist.

func (*MockManagerMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockManagerMockRecorder) GetProgress

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

GetProgress indicates an expected call of GetProgress.

func (*MockManagerMockRecorder) Update

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

Update indicates an expected call of Update.

func (*MockManagerMockRecorder) UpdateProgress

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

UpdateProgress indicates an expected call of UpdateProgress.

Jump to

Keyboard shortcuts

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