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: 4 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) Download

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

func (*IntegrationRepository) EXPECT

func (*IntegrationRepository) Upload

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

type IntegrationRepository_Download_Call

type IntegrationRepository_Download_Call struct {
	*mock.Call
}

IntegrationRepository_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'

func (*IntegrationRepository_Download_Call) Return

func (*IntegrationRepository_Download_Call) Run

func (*IntegrationRepository_Download_Call) RunAndReturn

type IntegrationRepository_Expecter

type IntegrationRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*IntegrationRepository_Expecter) Download

func (_e *IntegrationRepository_Expecter) Download(ctx interface{}, integration interface{}) *IntegrationRepository_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context
  • integration syncintegration.SyncIntegration

func (*IntegrationRepository_Expecter) Upload

func (_e *IntegrationRepository_Expecter) Upload(ctx interface{}, integration interface{}) *IntegrationRepository_Upload_Call

Upload is a helper method to define mock.On call

  • ctx context.Context
  • integration syncintegration.SyncIntegration

type IntegrationRepository_Upload_Call

type IntegrationRepository_Upload_Call struct {
	*mock.Call
}

IntegrationRepository_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'

func (*IntegrationRepository_Upload_Call) Return

func (*IntegrationRepository_Upload_Call) Run

func (*IntegrationRepository_Upload_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) GetSyncIntegration

func (_m *SettingRepository) GetSyncIntegration(ctx context.Context) (syncintegration.SyncIntegration, error)

GetSyncIntegration provides a mock function with given fields: ctx

func (*SettingRepository) SetSyncIntegration

func (_m *SettingRepository) SetSyncIntegration(ctx context.Context, integration syncintegration.SyncIntegration) error

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

type SettingRepository_Expecter

type SettingRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*SettingRepository_Expecter) GetSyncIntegration

func (_e *SettingRepository_Expecter) GetSyncIntegration(ctx interface{}) *SettingRepository_GetSyncIntegration_Call

GetSyncIntegration is a helper method to define mock.On call

  • ctx context.Context

func (*SettingRepository_Expecter) SetSyncIntegration

func (_e *SettingRepository_Expecter) SetSyncIntegration(ctx interface{}, integration interface{}) *SettingRepository_SetSyncIntegration_Call

SetSyncIntegration is a helper method to define mock.On call

  • ctx context.Context
  • integration syncintegration.SyncIntegration

type SettingRepository_GetSyncIntegration_Call

type SettingRepository_GetSyncIntegration_Call struct {
	*mock.Call
}

SettingRepository_GetSyncIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSyncIntegration'

func (*SettingRepository_GetSyncIntegration_Call) Return

func (*SettingRepository_GetSyncIntegration_Call) Run

func (*SettingRepository_GetSyncIntegration_Call) RunAndReturn

type SettingRepository_SetSyncIntegration_Call

type SettingRepository_SetSyncIntegration_Call struct {
	*mock.Call
}

SettingRepository_SetSyncIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSyncIntegration'

func (*SettingRepository_SetSyncIntegration_Call) Return

func (*SettingRepository_SetSyncIntegration_Call) Run

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

func (_m *TaskRepository) GetTasks(ctx context.Context) (entity.Tasks, error)

GetTasks provides a mock function with given fields: ctx

type TaskRepository_Expecter

type TaskRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*TaskRepository_Expecter) GetTasks

func (_e *TaskRepository_Expecter) GetTasks(ctx interface{}) *TaskRepository_GetTasks_Call

GetTasks is a helper method to define mock.On call

  • ctx context.Context

type TaskRepository_GetTasks_Call

type TaskRepository_GetTasks_Call struct {
	*mock.Call
}

TaskRepository_GetTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTasks'

func (*TaskRepository_GetTasks_Call) Return

func (*TaskRepository_GetTasks_Call) Run

func (*TaskRepository_GetTasks_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) Download

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

Download provides a mock function with given fields: ctx

func (*UseCase) EXPECT

func (_m *UseCase) EXPECT() *UseCase_Expecter

func (*UseCase) SetSyncIntegration

func (_m *UseCase) SetSyncIntegration(ctx context.Context, integration syncintegration.SyncIntegration) error

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

func (*UseCase) Upload

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

Upload provides a mock function with given fields: ctx

type UseCase_Download_Call

type UseCase_Download_Call struct {
	*mock.Call
}

UseCase_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'

func (*UseCase_Download_Call) Return

func (*UseCase_Download_Call) Run

func (*UseCase_Download_Call) RunAndReturn

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

type UseCase_Expecter

type UseCase_Expecter struct {
	// contains filtered or unexported fields
}

func (*UseCase_Expecter) Download

func (_e *UseCase_Expecter) Download(ctx interface{}) *UseCase_Download_Call

Download is a helper method to define mock.On call

  • ctx context.Context

func (*UseCase_Expecter) SetSyncIntegration

func (_e *UseCase_Expecter) SetSyncIntegration(ctx interface{}, integration interface{}) *UseCase_SetSyncIntegration_Call

SetSyncIntegration is a helper method to define mock.On call

  • ctx context.Context
  • integration syncintegration.SyncIntegration

func (*UseCase_Expecter) Upload

func (_e *UseCase_Expecter) Upload(ctx interface{}) *UseCase_Upload_Call

Upload is a helper method to define mock.On call

  • ctx context.Context

type UseCase_SetSyncIntegration_Call

type UseCase_SetSyncIntegration_Call struct {
	*mock.Call
}

UseCase_SetSyncIntegration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSyncIntegration'

func (*UseCase_SetSyncIntegration_Call) Return

func (*UseCase_SetSyncIntegration_Call) Run

func (*UseCase_SetSyncIntegration_Call) RunAndReturn

type UseCase_Upload_Call

type UseCase_Upload_Call struct {
	*mock.Call
}

UseCase_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'

func (*UseCase_Upload_Call) Return

func (*UseCase_Upload_Call) Run

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

func (*UseCase_Upload_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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