mocks

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 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 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) CancelTaskByID

func (_m *TaskRepository) CancelTaskByID(ctx context.Context, id int64) (*repository.FullTask, bool, error)

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

func (*TaskRepository) CancelTaskByIDWithTx

func (_m *TaskRepository) CancelTaskByIDWithTx(ctx context.Context, tx asynqpg.Tx, id int64) (*repository.FullTask, bool, error)

CancelTaskByIDWithTx provides a mock function with given fields: ctx, tx, id

func (*TaskRepository) DeleteTaskByID

func (_m *TaskRepository) DeleteTaskByID(ctx context.Context, id int64) (*repository.FullTask, bool, error)

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

func (*TaskRepository) DeleteTaskByIDWithTx

func (_m *TaskRepository) DeleteTaskByIDWithTx(ctx context.Context, tx asynqpg.Tx, id int64) (*repository.FullTask, bool, error)

DeleteTaskByIDWithTx provides a mock function with given fields: ctx, tx, id

func (*TaskRepository) EXPECT

func (*TaskRepository) GetTaskByID

func (_m *TaskRepository) GetTaskByID(ctx context.Context, id int64) (*repository.FullTask, error)

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

func (*TaskRepository) GetTaskByIDWithTx

func (_m *TaskRepository) GetTaskByIDWithTx(ctx context.Context, tx asynqpg.Tx, id int64) (*repository.FullTask, error)

GetTaskByIDWithTx provides a mock function with given fields: ctx, tx, id

func (*TaskRepository) ListTasks

ListTasks provides a mock function with given fields: ctx, params

func (*TaskRepository) ListTasksWithTx

ListTasksWithTx provides a mock function with given fields: ctx, tx, params

func (*TaskRepository) RetryTaskByID

func (_m *TaskRepository) RetryTaskByID(ctx context.Context, id int64) (*repository.FullTask, bool, error)

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

func (*TaskRepository) RetryTaskByIDWithTx

func (_m *TaskRepository) RetryTaskByIDWithTx(ctx context.Context, tx asynqpg.Tx, id int64) (*repository.FullTask, bool, error)

RetryTaskByIDWithTx provides a mock function with given fields: ctx, tx, id

type TaskRepository_CancelTaskByIDWithTx_Call

type TaskRepository_CancelTaskByIDWithTx_Call struct {
	*mock.Call
}

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

func (*TaskRepository_CancelTaskByIDWithTx_Call) Return

func (*TaskRepository_CancelTaskByIDWithTx_Call) Run

func (*TaskRepository_CancelTaskByIDWithTx_Call) RunAndReturn

type TaskRepository_CancelTaskByID_Call

type TaskRepository_CancelTaskByID_Call struct {
	*mock.Call
}

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

func (*TaskRepository_CancelTaskByID_Call) Return

func (*TaskRepository_CancelTaskByID_Call) Run

func (*TaskRepository_CancelTaskByID_Call) RunAndReturn

type TaskRepository_DeleteTaskByIDWithTx_Call

type TaskRepository_DeleteTaskByIDWithTx_Call struct {
	*mock.Call
}

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

func (*TaskRepository_DeleteTaskByIDWithTx_Call) Return

func (*TaskRepository_DeleteTaskByIDWithTx_Call) Run

func (*TaskRepository_DeleteTaskByIDWithTx_Call) RunAndReturn

type TaskRepository_DeleteTaskByID_Call

type TaskRepository_DeleteTaskByID_Call struct {
	*mock.Call
}

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

func (*TaskRepository_DeleteTaskByID_Call) Return

func (*TaskRepository_DeleteTaskByID_Call) Run

func (*TaskRepository_DeleteTaskByID_Call) RunAndReturn

type TaskRepository_Expecter

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

func (*TaskRepository_Expecter) CancelTaskByID

func (_e *TaskRepository_Expecter) CancelTaskByID(ctx interface{}, id interface{}) *TaskRepository_CancelTaskByID_Call

CancelTaskByID is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*TaskRepository_Expecter) CancelTaskByIDWithTx

func (_e *TaskRepository_Expecter) CancelTaskByIDWithTx(ctx interface{}, tx interface{}, id interface{}) *TaskRepository_CancelTaskByIDWithTx_Call

CancelTaskByIDWithTx is a helper method to define mock.On call

  • ctx context.Context
  • tx asynqpg.Tx
  • id int64

func (*TaskRepository_Expecter) DeleteTaskByID

func (_e *TaskRepository_Expecter) DeleteTaskByID(ctx interface{}, id interface{}) *TaskRepository_DeleteTaskByID_Call

DeleteTaskByID is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*TaskRepository_Expecter) DeleteTaskByIDWithTx

func (_e *TaskRepository_Expecter) DeleteTaskByIDWithTx(ctx interface{}, tx interface{}, id interface{}) *TaskRepository_DeleteTaskByIDWithTx_Call

DeleteTaskByIDWithTx is a helper method to define mock.On call

  • ctx context.Context
  • tx asynqpg.Tx
  • id int64

func (*TaskRepository_Expecter) GetTaskByID

func (_e *TaskRepository_Expecter) GetTaskByID(ctx interface{}, id interface{}) *TaskRepository_GetTaskByID_Call

GetTaskByID is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*TaskRepository_Expecter) GetTaskByIDWithTx

func (_e *TaskRepository_Expecter) GetTaskByIDWithTx(ctx interface{}, tx interface{}, id interface{}) *TaskRepository_GetTaskByIDWithTx_Call

GetTaskByIDWithTx is a helper method to define mock.On call

  • ctx context.Context
  • tx asynqpg.Tx
  • id int64

func (*TaskRepository_Expecter) ListTasks

func (_e *TaskRepository_Expecter) ListTasks(ctx interface{}, params interface{}) *TaskRepository_ListTasks_Call

ListTasks is a helper method to define mock.On call

  • ctx context.Context
  • params repository.ListTasksParams

func (*TaskRepository_Expecter) ListTasksWithTx

func (_e *TaskRepository_Expecter) ListTasksWithTx(ctx interface{}, tx interface{}, params interface{}) *TaskRepository_ListTasksWithTx_Call

ListTasksWithTx is a helper method to define mock.On call

  • ctx context.Context
  • tx asynqpg.Tx
  • params repository.ListTasksParams

func (*TaskRepository_Expecter) RetryTaskByID

func (_e *TaskRepository_Expecter) RetryTaskByID(ctx interface{}, id interface{}) *TaskRepository_RetryTaskByID_Call

RetryTaskByID is a helper method to define mock.On call

  • ctx context.Context
  • id int64

func (*TaskRepository_Expecter) RetryTaskByIDWithTx

func (_e *TaskRepository_Expecter) RetryTaskByIDWithTx(ctx interface{}, tx interface{}, id interface{}) *TaskRepository_RetryTaskByIDWithTx_Call

RetryTaskByIDWithTx is a helper method to define mock.On call

  • ctx context.Context
  • tx asynqpg.Tx
  • id int64

type TaskRepository_GetTaskByIDWithTx_Call

type TaskRepository_GetTaskByIDWithTx_Call struct {
	*mock.Call
}

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

func (*TaskRepository_GetTaskByIDWithTx_Call) Return

func (*TaskRepository_GetTaskByIDWithTx_Call) Run

func (*TaskRepository_GetTaskByIDWithTx_Call) RunAndReturn

type TaskRepository_GetTaskByID_Call

type TaskRepository_GetTaskByID_Call struct {
	*mock.Call
}

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

func (*TaskRepository_GetTaskByID_Call) Return

func (*TaskRepository_GetTaskByID_Call) Run

func (*TaskRepository_GetTaskByID_Call) RunAndReturn

type TaskRepository_ListTasksWithTx_Call

type TaskRepository_ListTasksWithTx_Call struct {
	*mock.Call
}

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

func (*TaskRepository_ListTasksWithTx_Call) Return

func (*TaskRepository_ListTasksWithTx_Call) Run

type TaskRepository_ListTasks_Call

type TaskRepository_ListTasks_Call struct {
	*mock.Call
}

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

func (*TaskRepository_ListTasks_Call) Return

func (*TaskRepository_ListTasks_Call) Run

type TaskRepository_RetryTaskByIDWithTx_Call

type TaskRepository_RetryTaskByIDWithTx_Call struct {
	*mock.Call
}

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

func (*TaskRepository_RetryTaskByIDWithTx_Call) Return

func (*TaskRepository_RetryTaskByIDWithTx_Call) Run

func (*TaskRepository_RetryTaskByIDWithTx_Call) RunAndReturn

type TaskRepository_RetryTaskByID_Call

type TaskRepository_RetryTaskByID_Call struct {
	*mock.Call
}

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

func (*TaskRepository_RetryTaskByID_Call) Return

func (*TaskRepository_RetryTaskByID_Call) Run

func (*TaskRepository_RetryTaskByID_Call) RunAndReturn

Jump to

Keyboard shortcuts

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