Documentation ¶
Index ¶
- type IntegrationRepository
- type IntegrationRepository_Download_Call
- func (_c *IntegrationRepository_Download_Call) Return(_a0 error) *IntegrationRepository_Download_Call
- func (_c *IntegrationRepository_Download_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *IntegrationRepository_Download_Call
- func (_c *IntegrationRepository_Download_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *IntegrationRepository_Download_Call
- type IntegrationRepository_Expecter
- type IntegrationRepository_Upload_Call
- func (_c *IntegrationRepository_Upload_Call) Return(_a0 error) *IntegrationRepository_Upload_Call
- func (_c *IntegrationRepository_Upload_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *IntegrationRepository_Upload_Call
- func (_c *IntegrationRepository_Upload_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *IntegrationRepository_Upload_Call
- type SettingRepository
- type SettingRepository_Expecter
- type SettingRepository_GetSyncIntegration_Call
- func (_c *SettingRepository_GetSyncIntegration_Call) Return(_a0 syncintegration.SyncIntegration, _a1 error) *SettingRepository_GetSyncIntegration_Call
- func (_c *SettingRepository_GetSyncIntegration_Call) Run(run func(ctx context.Context)) *SettingRepository_GetSyncIntegration_Call
- func (_c *SettingRepository_GetSyncIntegration_Call) RunAndReturn(run func(context.Context) (syncintegration.SyncIntegration, error)) *SettingRepository_GetSyncIntegration_Call
- type SettingRepository_SetSyncIntegration_Call
- func (_c *SettingRepository_SetSyncIntegration_Call) Return(_a0 error) *SettingRepository_SetSyncIntegration_Call
- func (_c *SettingRepository_SetSyncIntegration_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *SettingRepository_SetSyncIntegration_Call
- func (_c *SettingRepository_SetSyncIntegration_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *SettingRepository_SetSyncIntegration_Call
- type TaskRepository
- type TaskRepository_Expecter
- type TaskRepository_GetTasks_Call
- func (_c *TaskRepository_GetTasks_Call) Return(_a0 entity.Tasks, _a1 error) *TaskRepository_GetTasks_Call
- func (_c *TaskRepository_GetTasks_Call) Run(run func(ctx context.Context)) *TaskRepository_GetTasks_Call
- func (_c *TaskRepository_GetTasks_Call) RunAndReturn(run func(context.Context) (entity.Tasks, error)) *TaskRepository_GetTasks_Call
- type UseCase
- type UseCase_Download_Call
- type UseCase_Expecter
- type UseCase_SetSyncIntegration_Call
- func (_c *UseCase_SetSyncIntegration_Call) Return(_a0 error) *UseCase_SetSyncIntegration_Call
- func (_c *UseCase_SetSyncIntegration_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *UseCase_SetSyncIntegration_Call
- func (_c *UseCase_SetSyncIntegration_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *UseCase_SetSyncIntegration_Call
- type UseCase_Upload_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) Download ¶
func (_m *IntegrationRepository) Download(ctx context.Context, integration syncintegration.SyncIntegration) error
Download provides a mock function with given fields: ctx, integration
func (*IntegrationRepository) EXPECT ¶
func (_m *IntegrationRepository) EXPECT() *IntegrationRepository_Expecter
func (*IntegrationRepository) Upload ¶
func (_m *IntegrationRepository) Upload(ctx context.Context, integration syncintegration.SyncIntegration) error
Upload provides a mock function with given fields: ctx, integration
type IntegrationRepository_Download_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 (_c *IntegrationRepository_Download_Call) Return(_a0 error) *IntegrationRepository_Download_Call
func (*IntegrationRepository_Download_Call) Run ¶
func (_c *IntegrationRepository_Download_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *IntegrationRepository_Download_Call
func (*IntegrationRepository_Download_Call) RunAndReturn ¶
func (_c *IntegrationRepository_Download_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *IntegrationRepository_Download_Call
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 ¶
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 (_c *IntegrationRepository_Upload_Call) Return(_a0 error) *IntegrationRepository_Upload_Call
func (*IntegrationRepository_Upload_Call) Run ¶
func (_c *IntegrationRepository_Upload_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *IntegrationRepository_Upload_Call
func (*IntegrationRepository_Upload_Call) RunAndReturn ¶
func (_c *IntegrationRepository_Upload_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *IntegrationRepository_Upload_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
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 ¶
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 (_c *SettingRepository_GetSyncIntegration_Call) Return(_a0 syncintegration.SyncIntegration, _a1 error) *SettingRepository_GetSyncIntegration_Call
func (*SettingRepository_GetSyncIntegration_Call) Run ¶
func (_c *SettingRepository_GetSyncIntegration_Call) Run(run func(ctx context.Context)) *SettingRepository_GetSyncIntegration_Call
func (*SettingRepository_GetSyncIntegration_Call) RunAndReturn ¶
func (_c *SettingRepository_GetSyncIntegration_Call) RunAndReturn(run func(context.Context) (syncintegration.SyncIntegration, error)) *SettingRepository_GetSyncIntegration_Call
type SettingRepository_SetSyncIntegration_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 (_c *SettingRepository_SetSyncIntegration_Call) Return(_a0 error) *SettingRepository_SetSyncIntegration_Call
func (*SettingRepository_SetSyncIntegration_Call) Run ¶
func (_c *SettingRepository_SetSyncIntegration_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *SettingRepository_SetSyncIntegration_Call
func (*SettingRepository_SetSyncIntegration_Call) RunAndReturn ¶
func (_c *SettingRepository_SetSyncIntegration_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *SettingRepository_SetSyncIntegration_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
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 ¶
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 (_c *TaskRepository_GetTasks_Call) Return(_a0 entity.Tasks, _a1 error) *TaskRepository_GetTasks_Call
func (*TaskRepository_GetTasks_Call) Run ¶
func (_c *TaskRepository_GetTasks_Call) Run(run func(ctx context.Context)) *TaskRepository_GetTasks_Call
func (*TaskRepository_GetTasks_Call) RunAndReturn ¶
func (_c *TaskRepository_GetTasks_Call) RunAndReturn(run func(context.Context) (entity.Tasks, error)) *TaskRepository_GetTasks_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) SetSyncIntegration ¶
func (_m *UseCase) SetSyncIntegration(ctx context.Context, integration syncintegration.SyncIntegration) error
SetSyncIntegration provides a mock function with given fields: ctx, integration
type UseCase_Download_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 (_c *UseCase_Download_Call) Return(_a0 error) *UseCase_Download_Call
func (*UseCase_Download_Call) Run ¶
func (_c *UseCase_Download_Call) Run(run func(ctx context.Context)) *UseCase_Download_Call
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 ¶
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 (_c *UseCase_SetSyncIntegration_Call) Return(_a0 error) *UseCase_SetSyncIntegration_Call
func (*UseCase_SetSyncIntegration_Call) Run ¶
func (_c *UseCase_SetSyncIntegration_Call) Run(run func(ctx context.Context, integration syncintegration.SyncIntegration)) *UseCase_SetSyncIntegration_Call
func (*UseCase_SetSyncIntegration_Call) RunAndReturn ¶
func (_c *UseCase_SetSyncIntegration_Call) RunAndReturn(run func(context.Context, syncintegration.SyncIntegration) error) *UseCase_SetSyncIntegration_Call
type UseCase_Upload_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 (_c *UseCase_Upload_Call) Return(_a0 error) *UseCase_Upload_Call
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