Documentation ¶
Index ¶
- type IntegrationRepository
- type IntegrationRepository_Expecter
- type IntegrationRepository_GetTasks_Call
- func (_c *IntegrationRepository_GetTasks_Call) Return(_a0 entity.Tasks, _a1 error) *IntegrationRepository_GetTasks_Call
- func (_c *IntegrationRepository_GetTasks_Call) Run(run func(ctx context.Context, projectID string, details map[string]string)) *IntegrationRepository_GetTasks_Call
- func (_c *IntegrationRepository_GetTasks_Call) RunAndReturn(run func(context.Context, string, map[string]string) (entity.Tasks, error)) *IntegrationRepository_GetTasks_Call
- type ProjectRepository
- func (_m *ProjectRepository) Delete(ctx context.Context, id string) error
- func (_m *ProjectRepository) EXPECT() *ProjectRepository_Expecter
- func (_m *ProjectRepository) GetAll(ctx context.Context) (entity.Projects, error)
- func (_m *ProjectRepository) GetByID(ctx context.Context, id string) (entity.Project, error)
- func (_m *ProjectRepository) GetSelectedProject(ctx context.Context) (entity.Project, error)
- func (_m *ProjectRepository) Insert(ctx context.Context, _a1 entity.Project) error
- func (_m *ProjectRepository) SetSelectedProject(ctx context.Context, id string) error
- func (_m *ProjectRepository) Update(ctx context.Context, _a1 entity.Project) error
- type ProjectRepository_Delete_Call
- func (_c *ProjectRepository_Delete_Call) Return(_a0 error) *ProjectRepository_Delete_Call
- func (_c *ProjectRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *ProjectRepository_Delete_Call
- func (_c *ProjectRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ProjectRepository_Delete_Call
- type ProjectRepository_Expecter
- func (_e *ProjectRepository_Expecter) Delete(ctx interface{}, id interface{}) *ProjectRepository_Delete_Call
- func (_e *ProjectRepository_Expecter) GetAll(ctx interface{}) *ProjectRepository_GetAll_Call
- func (_e *ProjectRepository_Expecter) GetByID(ctx interface{}, id interface{}) *ProjectRepository_GetByID_Call
- func (_e *ProjectRepository_Expecter) GetSelectedProject(ctx interface{}) *ProjectRepository_GetSelectedProject_Call
- func (_e *ProjectRepository_Expecter) Insert(ctx interface{}, _a1 interface{}) *ProjectRepository_Insert_Call
- func (_e *ProjectRepository_Expecter) SetSelectedProject(ctx interface{}, id interface{}) *ProjectRepository_SetSelectedProject_Call
- func (_e *ProjectRepository_Expecter) Update(ctx interface{}, _a1 interface{}) *ProjectRepository_Update_Call
- type ProjectRepository_GetAll_Call
- func (_c *ProjectRepository_GetAll_Call) Return(_a0 entity.Projects, _a1 error) *ProjectRepository_GetAll_Call
- func (_c *ProjectRepository_GetAll_Call) Run(run func(ctx context.Context)) *ProjectRepository_GetAll_Call
- func (_c *ProjectRepository_GetAll_Call) RunAndReturn(run func(context.Context) (entity.Projects, error)) *ProjectRepository_GetAll_Call
- type ProjectRepository_GetByID_Call
- func (_c *ProjectRepository_GetByID_Call) Return(_a0 entity.Project, _a1 error) *ProjectRepository_GetByID_Call
- func (_c *ProjectRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProjectRepository_GetByID_Call
- func (_c *ProjectRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (entity.Project, error)) *ProjectRepository_GetByID_Call
- 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 ProjectRepository_Insert_Call
- func (_c *ProjectRepository_Insert_Call) Return(_a0 error) *ProjectRepository_Insert_Call
- func (_c *ProjectRepository_Insert_Call) Run(run func(ctx context.Context, _a1 entity.Project)) *ProjectRepository_Insert_Call
- func (_c *ProjectRepository_Insert_Call) RunAndReturn(run func(context.Context, entity.Project) error) *ProjectRepository_Insert_Call
- type ProjectRepository_SetSelectedProject_Call
- func (_c *ProjectRepository_SetSelectedProject_Call) Return(_a0 error) *ProjectRepository_SetSelectedProject_Call
- func (_c *ProjectRepository_SetSelectedProject_Call) Run(run func(ctx context.Context, id string)) *ProjectRepository_SetSelectedProject_Call
- func (_c *ProjectRepository_SetSelectedProject_Call) RunAndReturn(run func(context.Context, string) error) *ProjectRepository_SetSelectedProject_Call
- type ProjectRepository_Update_Call
- func (_c *ProjectRepository_Update_Call) Return(_a0 error) *ProjectRepository_Update_Call
- func (_c *ProjectRepository_Update_Call) Run(run func(ctx context.Context, _a1 entity.Project)) *ProjectRepository_Update_Call
- func (_c *ProjectRepository_Update_Call) RunAndReturn(run func(context.Context, entity.Project) error) *ProjectRepository_Update_Call
- type TaskRepository
- type TaskRepository_Expecter
- func (_e *TaskRepository_Expecter) GetStartedTask(ctx interface{}) *TaskRepository_GetStartedTask_Call
- func (_e *TaskRepository_Expecter) Update(ctx interface{}, task interface{}) *TaskRepository_Update_Call
- func (_e *TaskRepository_Expecter) Upsert(ctx interface{}, task interface{}) *TaskRepository_Upsert_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_Update_Call
- func (_c *TaskRepository_Update_Call) Return(_a0 error) *TaskRepository_Update_Call
- func (_c *TaskRepository_Update_Call) Run(run func(ctx context.Context, task entity.Task)) *TaskRepository_Update_Call
- func (_c *TaskRepository_Update_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_Update_Call
- type TaskRepository_Upsert_Call
- func (_c *TaskRepository_Upsert_Call) Return(_a0 error) *TaskRepository_Upsert_Call
- func (_c *TaskRepository_Upsert_Call) Run(run func(ctx context.Context, task entity.Task)) *TaskRepository_Upsert_Call
- func (_c *TaskRepository_Upsert_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_Upsert_Call
- type UseCase
- func (_m *UseCase) AddIntegration(ctx context.Context, integration entity.Integration) error
- func (_m *UseCase) Delete(ctx context.Context, id string) error
- func (_m *UseCase) DisableIntegration(ctx context.Context, integrationType entity.IntegrationType) error
- func (_m *UseCase) EXPECT() *UseCase_Expecter
- func (_m *UseCase) EnableIntegration(ctx context.Context, integrationType entity.IntegrationType) error
- func (_m *UseCase) GetAll(ctx context.Context) (entity.Projects, error)
- func (_m *UseCase) GetSelected(ctx context.Context) (entity.Project, error)
- func (_m *UseCase) Insert(ctx context.Context, _a1 entity.Project) error
- func (_m *UseCase) RemoveIntegration(ctx context.Context, integrationType entity.IntegrationType) error
- func (_m *UseCase) Select(ctx context.Context, id string) error
- func (_m *UseCase) SyncTasks(ctx context.Context) error
- type UseCase_AddIntegration_Call
- func (_c *UseCase_AddIntegration_Call) Return(_a0 error) *UseCase_AddIntegration_Call
- func (_c *UseCase_AddIntegration_Call) Run(run func(ctx context.Context, integration entity.Integration)) *UseCase_AddIntegration_Call
- func (_c *UseCase_AddIntegration_Call) RunAndReturn(run func(context.Context, entity.Integration) error) *UseCase_AddIntegration_Call
- type UseCase_Delete_Call
- type UseCase_DisableIntegration_Call
- func (_c *UseCase_DisableIntegration_Call) Return(_a0 error) *UseCase_DisableIntegration_Call
- func (_c *UseCase_DisableIntegration_Call) Run(run func(ctx context.Context, integrationType entity.IntegrationType)) *UseCase_DisableIntegration_Call
- func (_c *UseCase_DisableIntegration_Call) RunAndReturn(run func(context.Context, entity.IntegrationType) error) *UseCase_DisableIntegration_Call
- type UseCase_EnableIntegration_Call
- func (_c *UseCase_EnableIntegration_Call) Return(_a0 error) *UseCase_EnableIntegration_Call
- func (_c *UseCase_EnableIntegration_Call) Run(run func(ctx context.Context, integrationType entity.IntegrationType)) *UseCase_EnableIntegration_Call
- func (_c *UseCase_EnableIntegration_Call) RunAndReturn(run func(context.Context, entity.IntegrationType) error) *UseCase_EnableIntegration_Call
- type UseCase_Expecter
- func (_e *UseCase_Expecter) AddIntegration(ctx interface{}, integration interface{}) *UseCase_AddIntegration_Call
- func (_e *UseCase_Expecter) Delete(ctx interface{}, id interface{}) *UseCase_Delete_Call
- func (_e *UseCase_Expecter) DisableIntegration(ctx interface{}, integrationType interface{}) *UseCase_DisableIntegration_Call
- func (_e *UseCase_Expecter) EnableIntegration(ctx interface{}, integrationType interface{}) *UseCase_EnableIntegration_Call
- func (_e *UseCase_Expecter) GetAll(ctx interface{}) *UseCase_GetAll_Call
- func (_e *UseCase_Expecter) GetSelected(ctx interface{}) *UseCase_GetSelected_Call
- func (_e *UseCase_Expecter) Insert(ctx interface{}, _a1 interface{}) *UseCase_Insert_Call
- func (_e *UseCase_Expecter) RemoveIntegration(ctx interface{}, integrationType interface{}) *UseCase_RemoveIntegration_Call
- func (_e *UseCase_Expecter) Select(ctx interface{}, id interface{}) *UseCase_Select_Call
- func (_e *UseCase_Expecter) SyncTasks(ctx interface{}) *UseCase_SyncTasks_Call
- type UseCase_GetAll_Call
- type UseCase_GetSelected_Call
- func (_c *UseCase_GetSelected_Call) Return(_a0 entity.Project, _a1 error) *UseCase_GetSelected_Call
- func (_c *UseCase_GetSelected_Call) Run(run func(ctx context.Context)) *UseCase_GetSelected_Call
- func (_c *UseCase_GetSelected_Call) RunAndReturn(run func(context.Context) (entity.Project, error)) *UseCase_GetSelected_Call
- type UseCase_Insert_Call
- type UseCase_RemoveIntegration_Call
- func (_c *UseCase_RemoveIntegration_Call) Return(_a0 error) *UseCase_RemoveIntegration_Call
- func (_c *UseCase_RemoveIntegration_Call) Run(run func(ctx context.Context, integrationType entity.IntegrationType)) *UseCase_RemoveIntegration_Call
- func (_c *UseCase_RemoveIntegration_Call) RunAndReturn(run func(context.Context, entity.IntegrationType) error) *UseCase_RemoveIntegration_Call
- type UseCase_Select_Call
- type UseCase_SyncTasks_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IntegrationRepository ¶
IntegrationRepository is an autogenerated mock type for the IntegrationRepository type
func NewIntegrationRepository ¶
func NewIntegrationRepository(t interface { mock.TestingT Cleanup(func()) }) *IntegrationRepository
NewIntegrationRepository creates a new instance of IntegrationRepository. 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 (*IntegrationRepository) EXPECT ¶
func (_m *IntegrationRepository) EXPECT() *IntegrationRepository_Expecter
type IntegrationRepository_Expecter ¶
type IntegrationRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*IntegrationRepository_Expecter) GetTasks ¶
func (_e *IntegrationRepository_Expecter) GetTasks(ctx interface{}, projectID interface{}, details interface{}) *IntegrationRepository_GetTasks_Call
GetTasks is a helper method to define mock.On call
- ctx context.Context
- projectID string
- details map[string]string
type IntegrationRepository_GetTasks_Call ¶
IntegrationRepository_GetTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTasks'
func (*IntegrationRepository_GetTasks_Call) Return ¶
func (_c *IntegrationRepository_GetTasks_Call) Return(_a0 entity.Tasks, _a1 error) *IntegrationRepository_GetTasks_Call
func (*IntegrationRepository_GetTasks_Call) Run ¶
func (_c *IntegrationRepository_GetTasks_Call) Run(run func(ctx context.Context, projectID string, details map[string]string)) *IntegrationRepository_GetTasks_Call
func (*IntegrationRepository_GetTasks_Call) RunAndReturn ¶
func (_c *IntegrationRepository_GetTasks_Call) RunAndReturn(run func(context.Context, string, map[string]string) (entity.Tasks, error)) *IntegrationRepository_GetTasks_Call
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) Delete ¶
func (_m *ProjectRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*ProjectRepository) EXPECT ¶
func (_m *ProjectRepository) EXPECT() *ProjectRepository_Expecter
func (*ProjectRepository) GetSelectedProject ¶
GetSelectedProject provides a mock function with given fields: ctx
func (*ProjectRepository) SetSelectedProject ¶
func (_m *ProjectRepository) SetSelectedProject(ctx context.Context, id string) error
SetSelectedProject provides a mock function with given fields: ctx, id
type ProjectRepository_Delete_Call ¶
ProjectRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*ProjectRepository_Delete_Call) Return ¶
func (_c *ProjectRepository_Delete_Call) Return(_a0 error) *ProjectRepository_Delete_Call
func (*ProjectRepository_Delete_Call) Run ¶
func (_c *ProjectRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *ProjectRepository_Delete_Call
func (*ProjectRepository_Delete_Call) RunAndReturn ¶
func (_c *ProjectRepository_Delete_Call) RunAndReturn(run func(context.Context, string) error) *ProjectRepository_Delete_Call
type ProjectRepository_Expecter ¶
type ProjectRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*ProjectRepository_Expecter) Delete ¶
func (_e *ProjectRepository_Expecter) Delete(ctx interface{}, id interface{}) *ProjectRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProjectRepository_Expecter) GetAll ¶
func (_e *ProjectRepository_Expecter) GetAll(ctx interface{}) *ProjectRepository_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
func (*ProjectRepository_Expecter) GetByID ¶
func (_e *ProjectRepository_Expecter) GetByID(ctx interface{}, id interface{}) *ProjectRepository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
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
func (*ProjectRepository_Expecter) Insert ¶
func (_e *ProjectRepository_Expecter) Insert(ctx interface{}, _a1 interface{}) *ProjectRepository_Insert_Call
Insert is a helper method to define mock.On call
- ctx context.Context
- _a1 entity.Project
func (*ProjectRepository_Expecter) SetSelectedProject ¶
func (_e *ProjectRepository_Expecter) SetSelectedProject(ctx interface{}, id interface{}) *ProjectRepository_SetSelectedProject_Call
SetSelectedProject is a helper method to define mock.On call
- ctx context.Context
- id string
func (*ProjectRepository_Expecter) Update ¶
func (_e *ProjectRepository_Expecter) Update(ctx interface{}, _a1 interface{}) *ProjectRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- _a1 entity.Project
type ProjectRepository_GetAll_Call ¶
ProjectRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*ProjectRepository_GetAll_Call) Return ¶
func (_c *ProjectRepository_GetAll_Call) Return(_a0 entity.Projects, _a1 error) *ProjectRepository_GetAll_Call
func (*ProjectRepository_GetAll_Call) Run ¶
func (_c *ProjectRepository_GetAll_Call) Run(run func(ctx context.Context)) *ProjectRepository_GetAll_Call
func (*ProjectRepository_GetAll_Call) RunAndReturn ¶
func (_c *ProjectRepository_GetAll_Call) RunAndReturn(run func(context.Context) (entity.Projects, error)) *ProjectRepository_GetAll_Call
type ProjectRepository_GetByID_Call ¶
ProjectRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*ProjectRepository_GetByID_Call) Return ¶
func (_c *ProjectRepository_GetByID_Call) Return(_a0 entity.Project, _a1 error) *ProjectRepository_GetByID_Call
func (*ProjectRepository_GetByID_Call) Run ¶
func (_c *ProjectRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *ProjectRepository_GetByID_Call
func (*ProjectRepository_GetByID_Call) RunAndReturn ¶
func (_c *ProjectRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (entity.Project, error)) *ProjectRepository_GetByID_Call
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 ProjectRepository_Insert_Call ¶
ProjectRepository_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*ProjectRepository_Insert_Call) Return ¶
func (_c *ProjectRepository_Insert_Call) Return(_a0 error) *ProjectRepository_Insert_Call
func (*ProjectRepository_Insert_Call) Run ¶
func (_c *ProjectRepository_Insert_Call) Run(run func(ctx context.Context, _a1 entity.Project)) *ProjectRepository_Insert_Call
func (*ProjectRepository_Insert_Call) RunAndReturn ¶
func (_c *ProjectRepository_Insert_Call) RunAndReturn(run func(context.Context, entity.Project) error) *ProjectRepository_Insert_Call
type ProjectRepository_SetSelectedProject_Call ¶
ProjectRepository_SetSelectedProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSelectedProject'
func (*ProjectRepository_SetSelectedProject_Call) Return ¶
func (_c *ProjectRepository_SetSelectedProject_Call) Return(_a0 error) *ProjectRepository_SetSelectedProject_Call
func (*ProjectRepository_SetSelectedProject_Call) Run ¶
func (_c *ProjectRepository_SetSelectedProject_Call) Run(run func(ctx context.Context, id string)) *ProjectRepository_SetSelectedProject_Call
func (*ProjectRepository_SetSelectedProject_Call) RunAndReturn ¶
func (_c *ProjectRepository_SetSelectedProject_Call) RunAndReturn(run func(context.Context, string) error) *ProjectRepository_SetSelectedProject_Call
type ProjectRepository_Update_Call ¶
ProjectRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*ProjectRepository_Update_Call) Return ¶
func (_c *ProjectRepository_Update_Call) Return(_a0 error) *ProjectRepository_Update_Call
func (*ProjectRepository_Update_Call) Run ¶
func (_c *ProjectRepository_Update_Call) Run(run func(ctx context.Context, _a1 entity.Project)) *ProjectRepository_Update_Call
func (*ProjectRepository_Update_Call) RunAndReturn ¶
func (_c *ProjectRepository_Update_Call) RunAndReturn(run func(context.Context, entity.Project) error) *ProjectRepository_Update_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) EXPECT ¶
func (_m *TaskRepository) EXPECT() *TaskRepository_Expecter
func (*TaskRepository) GetStartedTask ¶
GetStartedTask provides a mock function with given fields: ctx
type TaskRepository_Expecter ¶
type TaskRepository_Expecter struct {
// contains filtered or unexported fields
}
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) Update ¶
func (_e *TaskRepository_Expecter) Update(ctx interface{}, task interface{}) *TaskRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- task entity.Task
func (*TaskRepository_Expecter) Upsert ¶
func (_e *TaskRepository_Expecter) Upsert(ctx interface{}, task interface{}) *TaskRepository_Upsert_Call
Upsert is a helper method to define mock.On call
- ctx context.Context
- task entity.Task
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_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, task 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 TaskRepository_Upsert_Call ¶
TaskRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'
func (*TaskRepository_Upsert_Call) Return ¶
func (_c *TaskRepository_Upsert_Call) Return(_a0 error) *TaskRepository_Upsert_Call
func (*TaskRepository_Upsert_Call) Run ¶
func (_c *TaskRepository_Upsert_Call) Run(run func(ctx context.Context, task entity.Task)) *TaskRepository_Upsert_Call
func (*TaskRepository_Upsert_Call) RunAndReturn ¶
func (_c *TaskRepository_Upsert_Call) RunAndReturn(run func(context.Context, entity.Task) error) *TaskRepository_Upsert_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) AddIntegration ¶
AddIntegration provides a mock function with given fields: ctx, integration
func (*UseCase) DisableIntegration ¶
func (_m *UseCase) DisableIntegration(ctx context.Context, integrationType entity.IntegrationType) error
DisableIntegration provides a mock function with given fields: ctx, integrationType
func (*UseCase) EXPECT ¶
func (_m *UseCase) EXPECT() *UseCase_Expecter
func (*UseCase) EnableIntegration ¶
func (_m *UseCase) EnableIntegration(ctx context.Context, integrationType entity.IntegrationType) error
EnableIntegration provides a mock function with given fields: ctx, integrationType
func (*UseCase) GetSelected ¶
GetSelected provides a mock function with given fields: ctx
func (*UseCase) RemoveIntegration ¶
func (_m *UseCase) RemoveIntegration(ctx context.Context, integrationType entity.IntegrationType) error
RemoveIntegration provides a mock function with given fields: ctx, integrationType
type UseCase_AddIntegration_Call ¶
UseCase_AddIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddIntegration'
func (*UseCase_AddIntegration_Call) Return ¶
func (_c *UseCase_AddIntegration_Call) Return(_a0 error) *UseCase_AddIntegration_Call
func (*UseCase_AddIntegration_Call) Run ¶
func (_c *UseCase_AddIntegration_Call) Run(run func(ctx context.Context, integration entity.Integration)) *UseCase_AddIntegration_Call
func (*UseCase_AddIntegration_Call) RunAndReturn ¶
func (_c *UseCase_AddIntegration_Call) RunAndReturn(run func(context.Context, entity.Integration) error) *UseCase_AddIntegration_Call
type UseCase_Delete_Call ¶
UseCase_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*UseCase_Delete_Call) Return ¶
func (_c *UseCase_Delete_Call) Return(_a0 error) *UseCase_Delete_Call
func (*UseCase_Delete_Call) Run ¶
func (_c *UseCase_Delete_Call) Run(run func(ctx context.Context, id string)) *UseCase_Delete_Call
func (*UseCase_Delete_Call) RunAndReturn ¶
func (_c *UseCase_Delete_Call) RunAndReturn(run func(context.Context, string) error) *UseCase_Delete_Call
type UseCase_DisableIntegration_Call ¶
UseCase_DisableIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisableIntegration'
func (*UseCase_DisableIntegration_Call) Return ¶
func (_c *UseCase_DisableIntegration_Call) Return(_a0 error) *UseCase_DisableIntegration_Call
func (*UseCase_DisableIntegration_Call) Run ¶
func (_c *UseCase_DisableIntegration_Call) Run(run func(ctx context.Context, integrationType entity.IntegrationType)) *UseCase_DisableIntegration_Call
func (*UseCase_DisableIntegration_Call) RunAndReturn ¶
func (_c *UseCase_DisableIntegration_Call) RunAndReturn(run func(context.Context, entity.IntegrationType) error) *UseCase_DisableIntegration_Call
type UseCase_EnableIntegration_Call ¶
UseCase_EnableIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableIntegration'
func (*UseCase_EnableIntegration_Call) Return ¶
func (_c *UseCase_EnableIntegration_Call) Return(_a0 error) *UseCase_EnableIntegration_Call
func (*UseCase_EnableIntegration_Call) Run ¶
func (_c *UseCase_EnableIntegration_Call) Run(run func(ctx context.Context, integrationType entity.IntegrationType)) *UseCase_EnableIntegration_Call
func (*UseCase_EnableIntegration_Call) RunAndReturn ¶
func (_c *UseCase_EnableIntegration_Call) RunAndReturn(run func(context.Context, entity.IntegrationType) error) *UseCase_EnableIntegration_Call
type UseCase_Expecter ¶
type UseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*UseCase_Expecter) AddIntegration ¶
func (_e *UseCase_Expecter) AddIntegration(ctx interface{}, integration interface{}) *UseCase_AddIntegration_Call
AddIntegration is a helper method to define mock.On call
- ctx context.Context
- integration entity.Integration
func (*UseCase_Expecter) Delete ¶
func (_e *UseCase_Expecter) Delete(ctx interface{}, id interface{}) *UseCase_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UseCase_Expecter) DisableIntegration ¶
func (_e *UseCase_Expecter) DisableIntegration(ctx interface{}, integrationType interface{}) *UseCase_DisableIntegration_Call
DisableIntegration is a helper method to define mock.On call
- ctx context.Context
- integrationType entity.IntegrationType
func (*UseCase_Expecter) EnableIntegration ¶
func (_e *UseCase_Expecter) EnableIntegration(ctx interface{}, integrationType interface{}) *UseCase_EnableIntegration_Call
EnableIntegration is a helper method to define mock.On call
- ctx context.Context
- integrationType entity.IntegrationType
func (*UseCase_Expecter) GetAll ¶
func (_e *UseCase_Expecter) GetAll(ctx interface{}) *UseCase_GetAll_Call
GetAll is a helper method to define mock.On call
- ctx context.Context
func (*UseCase_Expecter) GetSelected ¶
func (_e *UseCase_Expecter) GetSelected(ctx interface{}) *UseCase_GetSelected_Call
GetSelected is a helper method to define mock.On call
- ctx context.Context
func (*UseCase_Expecter) Insert ¶
func (_e *UseCase_Expecter) Insert(ctx interface{}, _a1 interface{}) *UseCase_Insert_Call
Insert is a helper method to define mock.On call
- ctx context.Context
- _a1 entity.Project
func (*UseCase_Expecter) RemoveIntegration ¶
func (_e *UseCase_Expecter) RemoveIntegration(ctx interface{}, integrationType interface{}) *UseCase_RemoveIntegration_Call
RemoveIntegration is a helper method to define mock.On call
- ctx context.Context
- integrationType entity.IntegrationType
func (*UseCase_Expecter) Select ¶
func (_e *UseCase_Expecter) Select(ctx interface{}, id interface{}) *UseCase_Select_Call
Select is a helper method to define mock.On call
- ctx context.Context
- id string
func (*UseCase_Expecter) SyncTasks ¶
func (_e *UseCase_Expecter) SyncTasks(ctx interface{}) *UseCase_SyncTasks_Call
SyncTasks is a helper method to define mock.On call
- ctx context.Context
type UseCase_GetAll_Call ¶
UseCase_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
func (*UseCase_GetAll_Call) Return ¶
func (_c *UseCase_GetAll_Call) Return(_a0 entity.Projects, _a1 error) *UseCase_GetAll_Call
func (*UseCase_GetAll_Call) Run ¶
func (_c *UseCase_GetAll_Call) Run(run func(ctx context.Context)) *UseCase_GetAll_Call
func (*UseCase_GetAll_Call) RunAndReturn ¶
func (_c *UseCase_GetAll_Call) RunAndReturn(run func(context.Context) (entity.Projects, error)) *UseCase_GetAll_Call
type UseCase_GetSelected_Call ¶
UseCase_GetSelected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSelected'
func (*UseCase_GetSelected_Call) Return ¶
func (_c *UseCase_GetSelected_Call) Return(_a0 entity.Project, _a1 error) *UseCase_GetSelected_Call
func (*UseCase_GetSelected_Call) Run ¶
func (_c *UseCase_GetSelected_Call) Run(run func(ctx context.Context)) *UseCase_GetSelected_Call
func (*UseCase_GetSelected_Call) RunAndReturn ¶
func (_c *UseCase_GetSelected_Call) RunAndReturn(run func(context.Context) (entity.Project, error)) *UseCase_GetSelected_Call
type UseCase_Insert_Call ¶
UseCase_Insert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Insert'
func (*UseCase_Insert_Call) Return ¶
func (_c *UseCase_Insert_Call) Return(_a0 error) *UseCase_Insert_Call
func (*UseCase_Insert_Call) Run ¶
func (_c *UseCase_Insert_Call) Run(run func(ctx context.Context, _a1 entity.Project)) *UseCase_Insert_Call
func (*UseCase_Insert_Call) RunAndReturn ¶
func (_c *UseCase_Insert_Call) RunAndReturn(run func(context.Context, entity.Project) error) *UseCase_Insert_Call
type UseCase_RemoveIntegration_Call ¶
UseCase_RemoveIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveIntegration'
func (*UseCase_RemoveIntegration_Call) Return ¶
func (_c *UseCase_RemoveIntegration_Call) Return(_a0 error) *UseCase_RemoveIntegration_Call
func (*UseCase_RemoveIntegration_Call) Run ¶
func (_c *UseCase_RemoveIntegration_Call) Run(run func(ctx context.Context, integrationType entity.IntegrationType)) *UseCase_RemoveIntegration_Call
func (*UseCase_RemoveIntegration_Call) RunAndReturn ¶
func (_c *UseCase_RemoveIntegration_Call) RunAndReturn(run func(context.Context, entity.IntegrationType) error) *UseCase_RemoveIntegration_Call
type UseCase_Select_Call ¶
UseCase_Select_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Select'
func (*UseCase_Select_Call) Return ¶
func (_c *UseCase_Select_Call) Return(_a0 error) *UseCase_Select_Call
func (*UseCase_Select_Call) Run ¶
func (_c *UseCase_Select_Call) Run(run func(ctx context.Context, id string)) *UseCase_Select_Call
func (*UseCase_Select_Call) RunAndReturn ¶
func (_c *UseCase_Select_Call) RunAndReturn(run func(context.Context, string) error) *UseCase_Select_Call
type UseCase_SyncTasks_Call ¶
UseCase_SyncTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncTasks'
func (*UseCase_SyncTasks_Call) Return ¶
func (_c *UseCase_SyncTasks_Call) Return(_a0 error) *UseCase_SyncTasks_Call
func (*UseCase_SyncTasks_Call) Run ¶
func (_c *UseCase_SyncTasks_Call) Run(run func(ctx context.Context)) *UseCase_SyncTasks_Call
func (*UseCase_SyncTasks_Call) RunAndReturn ¶
func (_c *UseCase_SyncTasks_Call) RunAndReturn(run func(context.Context) error) *UseCase_SyncTasks_Call