Documentation ¶
Index ¶
- type ProjectRepository
- type ProjectRepository_Expecter
- type ProjectRepository_GetSelectedProject_Call
- func (_c *ProjectRepository_GetSelectedProject_Call) Return(_a0 entity.Project, _a1 error) *ProjectRepository_GetSelectedProject_Call
- func (_c *ProjectRepository_GetSelectedProject_Call) Run(run func(ctx context.Context)) *ProjectRepository_GetSelectedProject_Call
- func (_c *ProjectRepository_GetSelectedProject_Call) RunAndReturn(run func(context.Context) (entity.Project, error)) *ProjectRepository_GetSelectedProject_Call
- type SettingRepository
- type SettingRepository_Expecter
- type SettingRepository_Sync_Call
- func (_c *SettingRepository_Sync_Call) Return(_a0 error) *SettingRepository_Sync_Call
- func (_c *SettingRepository_Sync_Call) Run(run func(ctx context.Context)) *SettingRepository_Sync_Call
- func (_c *SettingRepository_Sync_Call) RunAndReturn(run func(context.Context) error) *SettingRepository_Sync_Call
- type TaskRepository
- func (_m *TaskRepository) Delete(ctx context.Context, id string) error
- func (_m *TaskRepository) EXPECT() *TaskRepository_Expecter
- func (_m *TaskRepository) GetByID(ctx context.Context, id string) (entity.Task, error)
- func (_m *TaskRepository) GetStartedTask(ctx context.Context) (entity.Task, error)
- func (_m *TaskRepository) GetUncompleteParentTasks(ctx context.Context, projectID string) (entity.Tasks, error)
- func (_m *TaskRepository) GetUncompleteSubTask(ctx context.Context, projectID string) (map[string]entity.Tasks, error)
- func (_m *TaskRepository) Insert(ctx context.Context, _a1 entity.Task) error
- func (_m *TaskRepository) SetStartedTask(ctx context.Context, _a1 entity.Task) error
- func (_m *TaskRepository) Update(ctx context.Context, _a1 entity.Task) error
- type TaskRepository_Delete_Call
- func (_c *TaskRepository_Delete_Call) Return(_a0 error) *TaskRepository_Delete_Call
- func (_c *TaskRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *TaskRepository_Delete_Call
- func (_c *TaskRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TaskRepository_Delete_Call
- type TaskRepository_Expecter
- func (_e *TaskRepository_Expecter) Delete(ctx interface{}, id interface{}) *TaskRepository_Delete_Call
- func (_e *TaskRepository_Expecter) GetByID(ctx interface{}, id interface{}) *TaskRepository_GetByID_Call
- func (_e *TaskRepository_Expecter) GetStartedTask(ctx interface{}) *TaskRepository_GetStartedTask_Call
- func (_e *TaskRepository_Expecter) GetUncompleteParentTasks(ctx interface{}, projectID interface{}) *TaskRepository_GetUncompleteParentTasks_Call
- func (_e *TaskRepository_Expecter) GetUncompleteSubTask(ctx interface{}, projectID interface{}) *TaskRepository_GetUncompleteSubTask_Call
- func (_e *TaskRepository_Expecter) Insert(ctx interface{}, _a1 interface{}) *TaskRepository_Insert_Call
- func (_e *TaskRepository_Expecter) SetStartedTask(ctx interface{}, _a1 interface{}) *TaskRepository_SetStartedTask_Call
- func (_e *TaskRepository_Expecter) Update(ctx interface{}, _a1 interface{}) *TaskRepository_Update_Call
- type TaskRepository_GetByID_Call
- func (_c *TaskRepository_GetByID_Call) Return(_a0 entity.Task, _a1 error) *TaskRepository_GetByID_Call
- func (_c *TaskRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *TaskRepository_GetByID_Call
- func (_c *TaskRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (entity.Task, error)) *TaskRepository_GetByID_Call
- type TaskRepository_GetStartedTask_Call
- func (_c *TaskRepository_GetStartedTask_Call) Return(_a0 entity.Task, _a1 error) *TaskRepository_GetStartedTask_Call
- func (_c *TaskRepository_GetStartedTask_Call) Run(run func(ctx context.Context)) *TaskRepository_GetStartedTask_Call
- func (_c *TaskRepository_GetStartedTask_Call) RunAndReturn(run func(context.Context) (entity.Task, error)) *TaskRepository_GetStartedTask_Call
- type TaskRepository_GetUncompleteParentTasks_Call
- func (_c *TaskRepository_GetUncompleteParentTasks_Call) Return(_a0 entity.Tasks, _a1 error) *TaskRepository_GetUncompleteParentTasks_Call
- func (_c *TaskRepository_GetUncompleteParentTasks_Call) Run(run func(ctx context.Context, projectID string)) *TaskRepository_GetUncompleteParentTasks_Call
- func (_c *TaskRepository_GetUncompleteParentTasks_Call) RunAndReturn(run func(context.Context, string) (entity.Tasks, error)) *TaskRepository_GetUncompleteParentTasks_Call
- type TaskRepository_GetUncompleteSubTask_Call
- func (_c *TaskRepository_GetUncompleteSubTask_Call) Return(_a0 map[string]entity.Tasks, _a1 error) *TaskRepository_GetUncompleteSubTask_Call
- func (_c *TaskRepository_GetUncompleteSubTask_Call) Run(run func(ctx context.Context, projectID string)) *TaskRepository_GetUncompleteSubTask_Call
- func (_c *TaskRepository_GetUncompleteSubTask_Call) RunAndReturn(run func(context.Context, string) (map[string]entity.Tasks, error)) *TaskRepository_GetUncompleteSubTask_Call
- type TaskRepository_Insert_Call
- func (_c *TaskRepository_Insert_Call) Return(_a0 error) *TaskRepository_Insert_Call
- func (_c *TaskRepository_Insert_Call) Run(run func(ctx context.Context, _a1 entity.Task)) *TaskRepository_Insert_Call
- func (_c *TaskRepository_Insert_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_Insert_Call
- type TaskRepository_SetStartedTask_Call
- func (_c *TaskRepository_SetStartedTask_Call) Return(_a0 error) *TaskRepository_SetStartedTask_Call
- func (_c *TaskRepository_SetStartedTask_Call) Run(run func(ctx context.Context, _a1 entity.Task)) *TaskRepository_SetStartedTask_Call
- func (_c *TaskRepository_SetStartedTask_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_SetStartedTask_Call
- type TaskRepository_Update_Call
- func (_c *TaskRepository_Update_Call) Return(_a0 error) *TaskRepository_Update_Call
- func (_c *TaskRepository_Update_Call) Run(run func(ctx context.Context, _a1 entity.Task)) *TaskRepository_Update_Call
- func (_c *TaskRepository_Update_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_Update_Call
- type UseCase
- func (_m *UseCase) Add(ctx context.Context, _a1 entity.Task) error
- func (_m *UseCase) Complete(ctx context.Context, id string) error
- func (_m *UseCase) EXPECT() *UseCase_Expecter
- func (_m *UseCase) GetByID(ctx context.Context, id string) (entity.Task, error)
- func (_m *UseCase) GetUncompleteParentTasks(ctx context.Context) (entity.Tasks, error)
- func (_m *UseCase) GetUncompleteTasks(ctx context.Context) (entity.Tasks, error)
- func (_m *UseCase) Remove(ctx context.Context, id string) error
- func (_m *UseCase) Start(ctx context.Context, id string) error
- func (_m *UseCase) Stop(ctx context.Context) error
- type UseCase_Add_Call
- type UseCase_Complete_Call
- type UseCase_Expecter
- func (_e *UseCase_Expecter) Add(ctx interface{}, _a1 interface{}) *UseCase_Add_Call
- func (_e *UseCase_Expecter) Complete(ctx interface{}, id interface{}) *UseCase_Complete_Call
- func (_e *UseCase_Expecter) GetByID(ctx interface{}, id interface{}) *UseCase_GetByID_Call
- func (_e *UseCase_Expecter) GetUncompleteParentTasks(ctx interface{}) *UseCase_GetUncompleteParentTasks_Call
- func (_e *UseCase_Expecter) GetUncompleteTasks(ctx interface{}) *UseCase_GetUncompleteTasks_Call
- func (_e *UseCase_Expecter) Remove(ctx interface{}, id interface{}) *UseCase_Remove_Call
- func (_e *UseCase_Expecter) Start(ctx interface{}, id interface{}) *UseCase_Start_Call
- func (_e *UseCase_Expecter) Stop(ctx interface{}) *UseCase_Stop_Call
- type UseCase_GetByID_Call
- func (_c *UseCase_GetByID_Call) Return(_a0 entity.Task, _a1 error) *UseCase_GetByID_Call
- func (_c *UseCase_GetByID_Call) Run(run func(ctx context.Context, id string)) *UseCase_GetByID_Call
- func (_c *UseCase_GetByID_Call) RunAndReturn(run func(context.Context, string) (entity.Task, error)) *UseCase_GetByID_Call
- type UseCase_GetUncompleteParentTasks_Call
- func (_c *UseCase_GetUncompleteParentTasks_Call) Return(_a0 entity.Tasks, _a1 error) *UseCase_GetUncompleteParentTasks_Call
- func (_c *UseCase_GetUncompleteParentTasks_Call) Run(run func(ctx context.Context)) *UseCase_GetUncompleteParentTasks_Call
- func (_c *UseCase_GetUncompleteParentTasks_Call) RunAndReturn(run func(context.Context) (entity.Tasks, error)) *UseCase_GetUncompleteParentTasks_Call
- type UseCase_GetUncompleteTasks_Call
- func (_c *UseCase_GetUncompleteTasks_Call) Return(_a0 entity.Tasks, _a1 error) *UseCase_GetUncompleteTasks_Call
- func (_c *UseCase_GetUncompleteTasks_Call) Run(run func(ctx context.Context)) *UseCase_GetUncompleteTasks_Call
- func (_c *UseCase_GetUncompleteTasks_Call) RunAndReturn(run func(context.Context) (entity.Tasks, error)) *UseCase_GetUncompleteTasks_Call
- type UseCase_Remove_Call
- type UseCase_Start_Call
- type UseCase_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectRepository ¶
ProjectRepository is an autogenerated mock type for the ProjectRepository type
func NewProjectRepository ¶
func NewProjectRepository(t interface { mock.TestingT Cleanup(func()) }) *ProjectRepository
NewProjectRepository creates a new instance of ProjectRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ProjectRepository) EXPECT ¶
func (_m *ProjectRepository) EXPECT() *ProjectRepository_Expecter
func (*ProjectRepository) GetSelectedProject ¶
GetSelectedProject provides a mock function with given fields: ctx
type ProjectRepository_Expecter ¶
type ProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectRepository_Expecter) GetSelectedProject ¶
func (_e *ProjectRepository_Expecter) GetSelectedProject(ctx interface{}) *ProjectRepository_GetSelectedProject_Call
GetSelectedProject is a helper method to define mock.On call
- ctx context.Context
type ProjectRepository_GetSelectedProject_Call ¶
ProjectRepository_GetSelectedProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSelectedProject'
func (*ProjectRepository_GetSelectedProject_Call) Return ¶
func (_c *ProjectRepository_GetSelectedProject_Call) Return(_a0 entity.Project, _a1 error) *ProjectRepository_GetSelectedProject_Call
func (*ProjectRepository_GetSelectedProject_Call) Run ¶
func (_c *ProjectRepository_GetSelectedProject_Call) Run(run func(ctx context.Context)) *ProjectRepository_GetSelectedProject_Call
func (*ProjectRepository_GetSelectedProject_Call) RunAndReturn ¶
func (_c *ProjectRepository_GetSelectedProject_Call) RunAndReturn(run func(context.Context) (entity.Project, error)) *ProjectRepository_GetSelectedProject_Call
type SettingRepository ¶
SettingRepository is an autogenerated mock type for the SettingRepository type
func NewSettingRepository ¶
func NewSettingRepository(t interface { mock.TestingT Cleanup(func()) }) *SettingRepository
NewSettingRepository creates a new instance of SettingRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SettingRepository) EXPECT ¶
func (_m *SettingRepository) EXPECT() *SettingRepository_Expecter
type SettingRepository_Expecter ¶
type SettingRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*SettingRepository_Expecter) Sync ¶
func (_e *SettingRepository_Expecter) Sync(ctx interface{}) *SettingRepository_Sync_Call
Sync is a helper method to define mock.On call
- ctx context.Context
type SettingRepository_Sync_Call ¶
SettingRepository_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*SettingRepository_Sync_Call) Return ¶
func (_c *SettingRepository_Sync_Call) Return(_a0 error) *SettingRepository_Sync_Call
func (*SettingRepository_Sync_Call) Run ¶
func (_c *SettingRepository_Sync_Call) Run(run func(ctx context.Context)) *SettingRepository_Sync_Call
func (*SettingRepository_Sync_Call) RunAndReturn ¶
func (_c *SettingRepository_Sync_Call) RunAndReturn(run func(context.Context) error) *SettingRepository_Sync_Call
type TaskRepository ¶
TaskRepository is an autogenerated mock type for the TaskRepository type
func NewTaskRepository ¶
func NewTaskRepository(t interface { mock.TestingT Cleanup(func()) }) *TaskRepository
NewTaskRepository creates a new instance of TaskRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TaskRepository) Delete ¶
func (_m *TaskRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*TaskRepository) EXPECT ¶
func (_m *TaskRepository) EXPECT() *TaskRepository_Expecter
func (*TaskRepository) GetStartedTask ¶
GetStartedTask provides a mock function with given fields: ctx
func (*TaskRepository) GetUncompleteParentTasks ¶
func (_m *TaskRepository) GetUncompleteParentTasks(ctx context.Context, projectID string) (entity.Tasks, error)
GetUncompleteParentTasks provides a mock function with given fields: ctx, projectID
func (*TaskRepository) GetUncompleteSubTask ¶
func (_m *TaskRepository) GetUncompleteSubTask(ctx context.Context, projectID string) (map[string]entity.Tasks, error)
GetUncompleteSubTask provides a mock function with given fields: ctx, projectID
func (*TaskRepository) SetStartedTask ¶
SetStartedTask provides a mock function with given fields: ctx, _a1
type TaskRepository_Delete_Call ¶
TaskRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*TaskRepository_Delete_Call) Return ¶
func (_c *TaskRepository_Delete_Call) Return(_a0 error) *TaskRepository_Delete_Call
func (*TaskRepository_Delete_Call) Run ¶
func (_c *TaskRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *TaskRepository_Delete_Call
func (*TaskRepository_Delete_Call) RunAndReturn ¶
func (_c *TaskRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *TaskRepository_Delete_Call
type TaskRepository_Expecter ¶
type TaskRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*TaskRepository_Expecter) Delete ¶
func (_e *TaskRepository_Expecter) Delete(ctx interface{}, id interface{}) *TaskRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*TaskRepository_Expecter) GetByID ¶
func (_e *TaskRepository_Expecter) GetByID(ctx interface{}, id interface{}) *TaskRepository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*TaskRepository_Expecter) GetStartedTask ¶
func (_e *TaskRepository_Expecter) GetStartedTask(ctx interface{}) *TaskRepository_GetStartedTask_Call
GetStartedTask is a helper method to define mock.On call
- ctx context.Context
func (*TaskRepository_Expecter) GetUncompleteParentTasks ¶
func (_e *TaskRepository_Expecter) GetUncompleteParentTasks(ctx interface{}, projectID interface{}) *TaskRepository_GetUncompleteParentTasks_Call
GetUncompleteParentTasks is a helper method to define mock.On call
- ctx context.Context
- projectID string
func (*TaskRepository_Expecter) GetUncompleteSubTask ¶
func (_e *TaskRepository_Expecter) GetUncompleteSubTask(ctx interface{}, projectID interface{}) *TaskRepository_GetUncompleteSubTask_Call
GetUncompleteSubTask is a helper method to define mock.On call
- ctx context.Context
- projectID string
func (*TaskRepository_Expecter) Insert ¶
func (_e *TaskRepository_Expecter) Insert(ctx interface{}, _a1 interface{}) *TaskRepository_Insert_Call
Insert is a helper method to define mock.On call
- ctx context.Context
- _a1 entity.Task
func (*TaskRepository_Expecter) SetStartedTask ¶
func (_e *TaskRepository_Expecter) SetStartedTask(ctx interface{}, _a1 interface{}) *TaskRepository_SetStartedTask_Call
SetStartedTask is a helper method to define mock.On call
- ctx context.Context
- _a1 entity.Task
func (*TaskRepository_Expecter) Update ¶
func (_e *TaskRepository_Expecter) Update(ctx interface{}, _a1 interface{}) *TaskRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 entity.Task
type TaskRepository_GetByID_Call ¶
TaskRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*TaskRepository_GetByID_Call) Return ¶
func (_c *TaskRepository_GetByID_Call) Return(_a0 entity.Task, _a1 error) *TaskRepository_GetByID_Call
func (*TaskRepository_GetByID_Call) Run ¶
func (_c *TaskRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *TaskRepository_GetByID_Call
func (*TaskRepository_GetByID_Call) RunAndReturn ¶
func (_c *TaskRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (entity.Task, error)) *TaskRepository_GetByID_Call
type TaskRepository_GetStartedTask_Call ¶
TaskRepository_GetStartedTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStartedTask'
func (*TaskRepository_GetStartedTask_Call) Return ¶
func (_c *TaskRepository_GetStartedTask_Call) Return(_a0 entity.Task, _a1 error) *TaskRepository_GetStartedTask_Call
func (*TaskRepository_GetStartedTask_Call) Run ¶
func (_c *TaskRepository_GetStartedTask_Call) Run(run func(ctx context.Context)) *TaskRepository_GetStartedTask_Call
func (*TaskRepository_GetStartedTask_Call) RunAndReturn ¶
func (_c *TaskRepository_GetStartedTask_Call) RunAndReturn(run func(context.Context) (entity.Task, error)) *TaskRepository_GetStartedTask_Call
type TaskRepository_GetUncompleteParentTasks_Call ¶
TaskRepository_GetUncompleteParentTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUncompleteParentTasks'
func (*TaskRepository_GetUncompleteParentTasks_Call) Return ¶
func (_c *TaskRepository_GetUncompleteParentTasks_Call) Return(_a0 entity.Tasks, _a1 error) *TaskRepository_GetUncompleteParentTasks_Call
func (*TaskRepository_GetUncompleteParentTasks_Call) Run ¶
func (_c *TaskRepository_GetUncompleteParentTasks_Call) Run(run func(ctx context.Context, projectID string)) *TaskRepository_GetUncompleteParentTasks_Call
func (*TaskRepository_GetUncompleteParentTasks_Call) RunAndReturn ¶
func (_c *TaskRepository_GetUncompleteParentTasks_Call) RunAndReturn(run func(context.Context, string) (entity.Tasks, error)) *TaskRepository_GetUncompleteParentTasks_Call
type TaskRepository_GetUncompleteSubTask_Call ¶
TaskRepository_GetUncompleteSubTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUncompleteSubTask'
func (*TaskRepository_GetUncompleteSubTask_Call) Return ¶
func (_c *TaskRepository_GetUncompleteSubTask_Call) Return(_a0 map[string]entity.Tasks, _a1 error) *TaskRepository_GetUncompleteSubTask_Call
func (*TaskRepository_GetUncompleteSubTask_Call) Run ¶
func (_c *TaskRepository_GetUncompleteSubTask_Call) Run(run func(ctx context.Context, projectID string)) *TaskRepository_GetUncompleteSubTask_Call
func (*TaskRepository_GetUncompleteSubTask_Call) RunAndReturn ¶
func (_c *TaskRepository_GetUncompleteSubTask_Call) RunAndReturn(run func(context.Context, string) (map[string]entity.Tasks, error)) *TaskRepository_GetUncompleteSubTask_Call
type TaskRepository_Insert_Call ¶
TaskRepository_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*TaskRepository_Insert_Call) Return ¶
func (_c *TaskRepository_Insert_Call) Return(_a0 error) *TaskRepository_Insert_Call
func (*TaskRepository_Insert_Call) Run ¶
func (_c *TaskRepository_Insert_Call) Run(run func(ctx context.Context, _a1 entity.Task)) *TaskRepository_Insert_Call
func (*TaskRepository_Insert_Call) RunAndReturn ¶
func (_c *TaskRepository_Insert_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_Insert_Call
type TaskRepository_SetStartedTask_Call ¶
TaskRepository_SetStartedTask_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStartedTask'
func (*TaskRepository_SetStartedTask_Call) Return ¶
func (_c *TaskRepository_SetStartedTask_Call) Return(_a0 error) *TaskRepository_SetStartedTask_Call
func (*TaskRepository_SetStartedTask_Call) Run ¶
func (_c *TaskRepository_SetStartedTask_Call) Run(run func(ctx context.Context, _a1 entity.Task)) *TaskRepository_SetStartedTask_Call
func (*TaskRepository_SetStartedTask_Call) RunAndReturn ¶
func (_c *TaskRepository_SetStartedTask_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_SetStartedTask_Call
type TaskRepository_Update_Call ¶
TaskRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*TaskRepository_Update_Call) Return ¶
func (_c *TaskRepository_Update_Call) Return(_a0 error) *TaskRepository_Update_Call
func (*TaskRepository_Update_Call) Run ¶
func (_c *TaskRepository_Update_Call) Run(run func(ctx context.Context, _a1 entity.Task)) *TaskRepository_Update_Call
func (*TaskRepository_Update_Call) RunAndReturn ¶
func (_c *TaskRepository_Update_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_Update_Call
type UseCase ¶
UseCase is an autogenerated mock type for the UseCase type
func NewUseCase ¶
NewUseCase creates a new instance of UseCase. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UseCase) EXPECT ¶
func (_m *UseCase) EXPECT() *UseCase_Expecter
func (*UseCase) GetUncompleteParentTasks ¶
GetUncompleteParentTasks provides a mock function with given fields: ctx
func (*UseCase) GetUncompleteTasks ¶
GetUncompleteTasks provides a mock function with given fields: ctx
type UseCase_Add_Call ¶
UseCase_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*UseCase_Add_Call) Return ¶
func (_c *UseCase_Add_Call) Return(_a0 error) *UseCase_Add_Call
func (*UseCase_Add_Call) Run ¶
func (_c *UseCase_Add_Call) Run(run func(ctx context.Context, _a1 entity.Task)) *UseCase_Add_Call
func (*UseCase_Add_Call) RunAndReturn ¶
func (_c *UseCase_Add_Call) RunAndReturn(run func(context.Context, entity.Task) error) *UseCase_Add_Call
type UseCase_Complete_Call ¶
UseCase_Complete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Complete'
func (*UseCase_Complete_Call) Return ¶
func (_c *UseCase_Complete_Call) Return(_a0 error) *UseCase_Complete_Call
func (*UseCase_Complete_Call) Run ¶
func (_c *UseCase_Complete_Call) Run(run func(ctx context.Context, id string)) *UseCase_Complete_Call
func (*UseCase_Complete_Call) RunAndReturn ¶
func (_c *UseCase_Complete_Call) RunAndReturn(run func(context.Context, string) error) *UseCase_Complete_Call
type UseCase_Expecter ¶
type UseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*UseCase_Expecter) Add ¶
func (_e *UseCase_Expecter) Add(ctx interface{}, _a1 interface{}) *UseCase_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- _a1 entity.Task
func (*UseCase_Expecter) Complete ¶
func (_e *UseCase_Expecter) Complete(ctx interface{}, id interface{}) *UseCase_Complete_Call
Complete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UseCase_Expecter) GetByID ¶
func (_e *UseCase_Expecter) GetByID(ctx interface{}, id interface{}) *UseCase_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UseCase_Expecter) GetUncompleteParentTasks ¶
func (_e *UseCase_Expecter) GetUncompleteParentTasks(ctx interface{}) *UseCase_GetUncompleteParentTasks_Call
GetUncompleteParentTasks is a helper method to define mock.On call
- ctx context.Context
func (*UseCase_Expecter) GetUncompleteTasks ¶
func (_e *UseCase_Expecter) GetUncompleteTasks(ctx interface{}) *UseCase_GetUncompleteTasks_Call
GetUncompleteTasks is a helper method to define mock.On call
- ctx context.Context
func (*UseCase_Expecter) Remove ¶
func (_e *UseCase_Expecter) Remove(ctx interface{}, id interface{}) *UseCase_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UseCase_Expecter) Start ¶
func (_e *UseCase_Expecter) Start(ctx interface{}, id interface{}) *UseCase_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UseCase_Expecter) Stop ¶
func (_e *UseCase_Expecter) Stop(ctx interface{}) *UseCase_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
type UseCase_GetByID_Call ¶
UseCase_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*UseCase_GetByID_Call) Return ¶
func (_c *UseCase_GetByID_Call) Return(_a0 entity.Task, _a1 error) *UseCase_GetByID_Call
func (*UseCase_GetByID_Call) Run ¶
func (_c *UseCase_GetByID_Call) Run(run func(ctx context.Context, id string)) *UseCase_GetByID_Call
func (*UseCase_GetByID_Call) RunAndReturn ¶
func (_c *UseCase_GetByID_Call) RunAndReturn(run func(context.Context, string) (entity.Task, error)) *UseCase_GetByID_Call
type UseCase_GetUncompleteParentTasks_Call ¶
UseCase_GetUncompleteParentTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUncompleteParentTasks'
func (*UseCase_GetUncompleteParentTasks_Call) Return ¶
func (_c *UseCase_GetUncompleteParentTasks_Call) Return(_a0 entity.Tasks, _a1 error) *UseCase_GetUncompleteParentTasks_Call
func (*UseCase_GetUncompleteParentTasks_Call) Run ¶
func (_c *UseCase_GetUncompleteParentTasks_Call) Run(run func(ctx context.Context)) *UseCase_GetUncompleteParentTasks_Call
func (*UseCase_GetUncompleteParentTasks_Call) RunAndReturn ¶
func (_c *UseCase_GetUncompleteParentTasks_Call) RunAndReturn(run func(context.Context) (entity.Tasks, error)) *UseCase_GetUncompleteParentTasks_Call
type UseCase_GetUncompleteTasks_Call ¶
UseCase_GetUncompleteTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUncompleteTasks'
func (*UseCase_GetUncompleteTasks_Call) Return ¶
func (_c *UseCase_GetUncompleteTasks_Call) Return(_a0 entity.Tasks, _a1 error) *UseCase_GetUncompleteTasks_Call
func (*UseCase_GetUncompleteTasks_Call) Run ¶
func (_c *UseCase_GetUncompleteTasks_Call) Run(run func(ctx context.Context)) *UseCase_GetUncompleteTasks_Call
func (*UseCase_GetUncompleteTasks_Call) RunAndReturn ¶
func (_c *UseCase_GetUncompleteTasks_Call) RunAndReturn(run func(context.Context) (entity.Tasks, error)) *UseCase_GetUncompleteTasks_Call
type UseCase_Remove_Call ¶
UseCase_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*UseCase_Remove_Call) Return ¶
func (_c *UseCase_Remove_Call) Return(_a0 error) *UseCase_Remove_Call
func (*UseCase_Remove_Call) Run ¶
func (_c *UseCase_Remove_Call) Run(run func(ctx context.Context, id string)) *UseCase_Remove_Call
func (*UseCase_Remove_Call) RunAndReturn ¶
func (_c *UseCase_Remove_Call) RunAndReturn(run func(context.Context, string) error) *UseCase_Remove_Call
type UseCase_Start_Call ¶
UseCase_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*UseCase_Start_Call) Return ¶
func (_c *UseCase_Start_Call) Return(_a0 error) *UseCase_Start_Call
func (*UseCase_Start_Call) Run ¶
func (_c *UseCase_Start_Call) Run(run func(ctx context.Context, id string)) *UseCase_Start_Call
func (*UseCase_Start_Call) RunAndReturn ¶
func (_c *UseCase_Start_Call) RunAndReturn(run func(context.Context, string) error) *UseCase_Start_Call
type UseCase_Stop_Call ¶
UseCase_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*UseCase_Stop_Call) Return ¶
func (_c *UseCase_Stop_Call) Return(_a0 error) *UseCase_Stop_Call
func (*UseCase_Stop_Call) Run ¶
func (_c *UseCase_Stop_Call) Run(run func(ctx context.Context)) *UseCase_Stop_Call
func (*UseCase_Stop_Call) RunAndReturn ¶
func (_c *UseCase_Stop_Call) RunAndReturn(run func(context.Context) error) *UseCase_Stop_Call