Documentation ¶
Overview ¶
Package task is a generated GoMock package.
Index ¶
- type MockManager
- func (m *MockManager) AddOrUpdate(arg0 *task.SeedTask) (*task.SeedTask, error)
- func (m *MockManager) Delete(arg0 string)
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) Exist(arg0 string) (*task.SeedTask, bool)
- func (m *MockManager) Get(arg0 string) (*task.SeedTask, error)
- func (m *MockManager) GetProgress(arg0 string) ([]*task.PieceInfo, error)
- func (m *MockManager) Update(arg0 string, arg1 *task.SeedTask) error
- func (m *MockManager) UpdateProgress(arg0 string, arg1 *task.PieceInfo) error
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) AddOrUpdate(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Exist(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetProgress(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) UpdateProgress(arg0, arg1 interface{}) *gomock.Call
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 ¶
AddOrUpdate 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.