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 IntegrationRepository

type IntegrationRepository struct {
	mock.Mock
}

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 (*IntegrationRepository) GetTasks

func (_m *IntegrationRepository) GetTasks(ctx context.Context, projectID string, details map[string]string) (entity.Tasks, error)

GetTasks provides a mock function with given fields: ctx, projectID, details

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

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

func (*IntegrationRepository_GetTasks_Call) RunAndReturn

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

GetAll provides a mock function with given fields: ctx

func (*ProjectRepository) GetByID

func (_m *ProjectRepository) GetByID(ctx context.Context, id string) (entity.Project, error)

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

func (*ProjectRepository) GetSelectedProject

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

GetSelectedProject provides a mock function with given fields: ctx

func (*ProjectRepository) Insert

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

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

func (*ProjectRepository) SetSelectedProject

func (_m *ProjectRepository) SetSelectedProject(ctx context.Context, id string) error

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

func (*ProjectRepository) Update

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

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

type ProjectRepository_Delete_Call

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

func (*ProjectRepository_Delete_Call) RunAndReturn

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

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

func (*ProjectRepository_GetAll_Call) RunAndReturn

type ProjectRepository_GetByID_Call

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

func (*ProjectRepository_GetByID_Call) RunAndReturn

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 ProjectRepository_Insert_Call

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

func (*ProjectRepository_Insert_Call) RunAndReturn

type ProjectRepository_SetSelectedProject_Call

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

func (*ProjectRepository_SetSelectedProject_Call) RunAndReturn

type ProjectRepository_Update_Call

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

func (*ProjectRepository_Update_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) EXPECT

func (*TaskRepository) GetStartedTask

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

GetStartedTask provides a mock function with given fields: ctx

func (*TaskRepository) Update

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

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

func (*TaskRepository) Upsert

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

Upsert provides a mock function with given fields: ctx, task

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

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_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 TaskRepository_Upsert_Call

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

func (*TaskRepository_Upsert_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) AddIntegration

func (_m *UseCase) AddIntegration(ctx context.Context, integration entity.Integration) error

AddIntegration provides a mock function with given fields: ctx, integration

func (*UseCase) Delete

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

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

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

func (_m *UseCase) GetAll(ctx context.Context) (entity.Projects, error)

GetAll provides a mock function with given fields: ctx

func (*UseCase) GetSelected

func (_m *UseCase) GetSelected(ctx context.Context) (entity.Project, error)

GetSelected provides a mock function with given fields: ctx

func (*UseCase) Insert

func (_m *UseCase) Insert(ctx context.Context, _a1 entity.Project) error

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

func (*UseCase) RemoveIntegration

func (_m *UseCase) RemoveIntegration(ctx context.Context, integrationType entity.IntegrationType) error

RemoveIntegration provides a mock function with given fields: ctx, integrationType

func (*UseCase) Select

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

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

func (*UseCase) SyncTasks

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

SyncTasks provides a mock function with given fields: ctx

type UseCase_AddIntegration_Call

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

func (*UseCase_AddIntegration_Call) RunAndReturn

type UseCase_Delete_Call

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

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

func (*UseCase_DisableIntegration_Call) RunAndReturn

type UseCase_EnableIntegration_Call

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

func (*UseCase_EnableIntegration_Call) RunAndReturn

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

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

func (_c *UseCase_GetAll_Call) Run(run func(ctx context.Context)) *UseCase_GetAll_Call

func (*UseCase_GetAll_Call) RunAndReturn

type UseCase_GetSelected_Call

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

func (*UseCase_GetSelected_Call) RunAndReturn

type UseCase_Insert_Call

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

func (*UseCase_Insert_Call) RunAndReturn

type UseCase_RemoveIntegration_Call

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

func (*UseCase_RemoveIntegration_Call) RunAndReturn

type UseCase_Select_Call

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

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

func (*UseCase_SyncTasks_Call) RunAndReturn

func (_c *UseCase_SyncTasks_Call) RunAndReturn(run func(context.Context) error) *UseCase_SyncTasks_Call

Jump to

Keyboard shortcuts

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