mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmployeeParserIface

type EmployeeParserIface struct {
	mock.Mock
}

EmployeeParserIface is an autogenerated mock type for the EmployeeParserIface type

func NewEmployeeParserIface

func NewEmployeeParserIface(t interface {
	mock.TestingT
	Cleanup(func())
}) *EmployeeParserIface

NewEmployeeParserIface creates a new instance of EmployeeParserIface. 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 (*EmployeeParserIface) ParseEmployees

func (_m *EmployeeParserIface) ParseEmployees(ctx context.Context) ([]models.Employee, error)

ParseEmployees provides a mock function with given fields: ctx

type EmployeeRepoIface

type EmployeeRepoIface struct {
	mock.Mock
}

EmployeeRepoIface is an autogenerated mock type for the EmployeeRepoIface type

func NewEmployeeRepoIface

func NewEmployeeRepoIface(t interface {
	mock.TestingT
	Cleanup(func())
}) *EmployeeRepoIface

NewEmployeeRepoIface creates a new instance of EmployeeRepoIface. 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 (*EmployeeRepoIface) GetEmployeeByID

func (_m *EmployeeRepoIface) GetEmployeeByID(ctx context.Context, identifier int) (models.Employee, error)

GetEmployeeByID provides a mock function with given fields: ctx, identifier

func (*EmployeeRepoIface) SaveEmployee

func (_m *EmployeeRepoIface) SaveEmployee(ctx context.Context, identifier int, fullname string, shortname string, position string, email string, phone string) error

SaveEmployee provides a mock function with given fields: ctx, identifier, fullname, shortname, position, email, phone

func (*EmployeeRepoIface) UpdateEmployee

func (_m *EmployeeRepoIface) UpdateEmployee(ctx context.Context, identifier int, fullname string, shortname string, position string, email string, phone string) error

UpdateEmployee provides a mock function with given fields: ctx, identifier, fullname, shortname, position, email, phone

type StatusRepoIface

type StatusRepoIface struct {
	mock.Mock
}

StatusRepoIface is an autogenerated mock type for the StatusRepoIface type

func NewStatusRepoIface

func NewStatusRepoIface(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatusRepoIface

NewStatusRepoIface creates a new instance of StatusRepoIface. 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 (*StatusRepoIface) GetLastProcessedDate

func (_m *StatusRepoIface) GetLastProcessedDate(ctx context.Context) (time.Time, error)

GetLastProcessedDate provides a mock function with given fields: ctx

func (*StatusRepoIface) SaveProcessedDate

func (_m *StatusRepoIface) SaveProcessedDate(ctx context.Context, date time.Time) error

SaveProcessedDate provides a mock function with given fields: ctx, date

type TaskRepoIface

type TaskRepoIface struct {
	mock.Mock
}

TaskRepoIface is an autogenerated mock type for the TaskRepoIface type

func NewTaskRepoIface

func NewTaskRepoIface(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskRepoIface

NewTaskRepoIface creates a new instance of TaskRepoIface. 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 (*TaskRepoIface) GetOrCreateTaskTypeID

func (_m *TaskRepoIface) GetOrCreateTaskTypeID(ctx context.Context, typeName string) (int, error)

GetOrCreateTaskTypeID provides a mock function with given fields: ctx, typeName

func (*TaskRepoIface) SaveTaskData

func (_m *TaskRepoIface) SaveTaskData(ctx context.Context, task models.Task) error

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

func (*TaskRepoIface) UpdateTaskExecutors

func (_m *TaskRepoIface) UpdateTaskExecutors(ctx context.Context, taskID int, executors []string) error

UpdateTaskExecutors provides a mock function with given fields: ctx, taskID, executors

func (*TaskRepoIface) UpsertTask

func (_m *TaskRepoIface) UpsertTask(ctx context.Context, task models.Task, typeID int) error

UpsertTask provides a mock function with given fields: ctx, task, typeID

Jump to

Keyboard shortcuts

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