mocks

package
v0.0.0-...-46aa976 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectRepository

type ProjectRepository struct {
	mock.Mock
}

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 (*ProjectRepository) GetSelectedProject

func (_m *ProjectRepository) GetSelectedProject(ctx context.Context) (entity.Project, error)

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

type ProjectRepository_GetSelectedProject_Call struct {
	*mock.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 (*ProjectRepository_GetSelectedProject_Call) Run

func (*ProjectRepository_GetSelectedProject_Call) RunAndReturn

type SettingRepository

type SettingRepository struct {
	mock.Mock
}

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 (*SettingRepository) Sync

func (_m *SettingRepository) Sync(ctx context.Context) error

Sync provides a mock function with given fields: ctx

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

type SettingRepository_Sync_Call struct {
	*mock.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 (*SettingRepository_Sync_Call) Run

func (*SettingRepository_Sync_Call) RunAndReturn

type TaskRepository

type TaskRepository struct {
	mock.Mock
}

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 (*TaskRepository) GetByID

func (_m *TaskRepository) GetByID(ctx context.Context, id string) (entity.Task, error)

GetByID provides a mock function with given fields: ctx, id

func (*TaskRepository) GetStartedTask

func (_m *TaskRepository) GetStartedTask(ctx context.Context) (entity.Task, error)

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) Insert

func (_m *TaskRepository) Insert(ctx context.Context, _a1 entity.Task) error

Insert provides a mock function with given fields: ctx, _a1

func (*TaskRepository) SetStartedTask

func (_m *TaskRepository) SetStartedTask(ctx context.Context, _a1 entity.Task) error

SetStartedTask provides a mock function with given fields: ctx, _a1

func (*TaskRepository) Update

func (_m *TaskRepository) Update(ctx context.Context, _a1 entity.Task) error

Update provides a mock function with given fields: ctx, _a1

type TaskRepository_Delete_Call

type TaskRepository_Delete_Call struct {
	*mock.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 (*TaskRepository_Delete_Call) Run

func (*TaskRepository_Delete_Call) RunAndReturn

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

type TaskRepository_GetByID_Call struct {
	*mock.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 (*TaskRepository_GetByID_Call) Run

func (*TaskRepository_GetByID_Call) RunAndReturn

type TaskRepository_GetStartedTask_Call

type TaskRepository_GetStartedTask_Call struct {
	*mock.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 (*TaskRepository_GetStartedTask_Call) Run

func (*TaskRepository_GetStartedTask_Call) RunAndReturn

type TaskRepository_GetUncompleteParentTasks_Call

type TaskRepository_GetUncompleteParentTasks_Call struct {
	*mock.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 (*TaskRepository_GetUncompleteParentTasks_Call) Run

func (*TaskRepository_GetUncompleteParentTasks_Call) RunAndReturn

type TaskRepository_GetUncompleteSubTask_Call

type TaskRepository_GetUncompleteSubTask_Call struct {
	*mock.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 (*TaskRepository_GetUncompleteSubTask_Call) Run

func (*TaskRepository_GetUncompleteSubTask_Call) RunAndReturn

type TaskRepository_Insert_Call

type TaskRepository_Insert_Call struct {
	*mock.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 (*TaskRepository_Insert_Call) Run

func (*TaskRepository_Insert_Call) RunAndReturn

type TaskRepository_SetStartedTask_Call

type TaskRepository_SetStartedTask_Call struct {
	*mock.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 (*TaskRepository_SetStartedTask_Call) Run

func (*TaskRepository_SetStartedTask_Call) RunAndReturn

type TaskRepository_Update_Call

type TaskRepository_Update_Call struct {
	*mock.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 (*TaskRepository_Update_Call) Run

func (*TaskRepository_Update_Call) RunAndReturn

type UseCase

type UseCase struct {
	mock.Mock
}

UseCase is an autogenerated mock type for the UseCase type

func NewUseCase

func NewUseCase(t interface {
	mock.TestingT
	Cleanup(func())
}) *UseCase

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) Add

func (_m *UseCase) Add(ctx context.Context, _a1 entity.Task) error

Add provides a mock function with given fields: ctx, _a1

func (*UseCase) Complete

func (_m *UseCase) Complete(ctx context.Context, id string) error

Complete provides a mock function with given fields: ctx, id

func (*UseCase) EXPECT

func (_m *UseCase) EXPECT() *UseCase_Expecter

func (*UseCase) GetByID

func (_m *UseCase) GetByID(ctx context.Context, id string) (entity.Task, error)

GetByID provides a mock function with given fields: ctx, id

func (*UseCase) GetUncompleteParentTasks

func (_m *UseCase) GetUncompleteParentTasks(ctx context.Context) (entity.Tasks, error)

GetUncompleteParentTasks provides a mock function with given fields: ctx

func (*UseCase) GetUncompleteTasks

func (_m *UseCase) GetUncompleteTasks(ctx context.Context) (entity.Tasks, error)

GetUncompleteTasks provides a mock function with given fields: ctx

func (*UseCase) Remove

func (_m *UseCase) Remove(ctx context.Context, id string) error

Remove provides a mock function with given fields: ctx, id

func (*UseCase) Start

func (_m *UseCase) Start(ctx context.Context, id string) error

Start provides a mock function with given fields: ctx, id

func (*UseCase) Stop

func (_m *UseCase) Stop(ctx context.Context) error

Stop provides a mock function with given fields: ctx

type UseCase_Add_Call

type UseCase_Add_Call struct {
	*mock.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

type UseCase_Complete_Call struct {
	*mock.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 (*UseCase_Complete_Call) Run

func (*UseCase_Complete_Call) RunAndReturn

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

type UseCase_GetByID_Call struct {
	*mock.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 (*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

type UseCase_GetUncompleteParentTasks_Call

type UseCase_GetUncompleteParentTasks_Call struct {
	*mock.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 (*UseCase_GetUncompleteParentTasks_Call) Run

func (*UseCase_GetUncompleteParentTasks_Call) RunAndReturn

type UseCase_GetUncompleteTasks_Call

type UseCase_GetUncompleteTasks_Call struct {
	*mock.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 (*UseCase_GetUncompleteTasks_Call) Run

func (*UseCase_GetUncompleteTasks_Call) RunAndReturn

type UseCase_Remove_Call

type UseCase_Remove_Call struct {
	*mock.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 (*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

type UseCase_Start_Call struct {
	*mock.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

type UseCase_Stop_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

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