mocks

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	mock.Mock
}

Job is an autogenerated mock type for the Job type

func NewJob

func NewJob(t testing.TB) *Job

NewJob creates a new instance of Job. It also registers a cleanup function to assert the mocks expectations.

func (*Job) GetJobParameter

func (_m *Job) GetJobParameter() string

GetJobParameter provides a mock function with given fields:

func (*Job) GetName

func (_m *Job) GetName() domain.JobName

GetName provides a mock function with given fields:

func (*Job) GetTimeout

func (_m *Job) GetTimeout() time.Duration

GetTimeout provides a mock function with given fields:

func (*Job) IsAllowedConcurrentExecution

func (_m *Job) IsAllowedConcurrentExecution() bool

IsAllowedConcurrentExecution provides a mock function with given fields:

func (*Job) Run

func (_m *Job) Run(ctx context.Context) error

Run provides a mock function with given fields: ctx

type JobHistoryRepository

type JobHistoryRepository struct {
	mock.Mock
}

JobHistoryRepository is an autogenerated mock type for the JobHistoryRepository type

func NewJobHistoryRepository

func NewJobHistoryRepository(t testing.TB) *JobHistoryRepository

NewJobHistoryRepository creates a new instance of JobHistoryRepository. It also registers a cleanup function to assert the mocks expectations.

func (*JobHistoryRepository) AddJobHistory

AddJobHistory provides a mock function with given fields: ctx, param

func (*JobHistoryRepository) FindJobHistoryByJobName

func (_m *JobHistoryRepository) FindJobHistoryByJobName(ctx context.Context, jobName domain.JobName) (service.JobHistory, error)

FindJobHistoryByJobName provides a mock function with given fields: ctx, jobName

type JobService

type JobService struct {
	mock.Mock
}

JobService is an autogenerated mock type for the JobService type

func NewJobService

func NewJobService(t testing.TB) *JobService

NewJobService creates a new instance of JobService. It also registers a cleanup function to assert the mocks expectations.

func (*JobService) CleanOldJobs

func (_m *JobService) CleanOldJobs(ctx context.Context) error

CleanOldJobs provides a mock function with given fields: ctx

func (*JobService) StartJob

func (_m *JobService) StartJob(ctx context.Context, job service.Job) error

StartJob provides a mock function with given fields: ctx, job

type JobStatus

type JobStatus struct {
	mock.Mock
}

JobStatus is an autogenerated mock type for the JobStatus type

func NewJobStatus

func NewJobStatus(t testing.TB) *JobStatus

NewJobStatus creates a new instance of JobStatus. It also registers a cleanup function to assert the mocks expectations.

func (*JobStatus) GetJobName

func (_m *JobStatus) GetJobName() domain.JobName

GetJobName provides a mock function with given fields:

func (*JobStatus) GetJobParameter

func (_m *JobStatus) GetJobParameter() string

GetJobParameter provides a mock function with given fields:

func (*JobStatus) GetJobStatusID

func (_m *JobStatus) GetJobStatusID() domain.JobStatusID

GetJobStatusID provides a mock function with given fields:

type JobStatusRepository

type JobStatusRepository struct {
	mock.Mock
}

JobStatusRepository is an autogenerated mock type for the JobStatusRepository type

func NewJobStatusRepository

func NewJobStatusRepository(t testing.TB) *JobStatusRepository

NewJobStatusRepository creates a new instance of JobStatusRepository. It also registers a cleanup function to assert the mocks expectations.

func (*JobStatusRepository) AddJobStatus

func (_m *JobStatusRepository) AddJobStatus(ctx context.Context, job service.Job) (domain.JobStatusID, error)

AddJobStatus provides a mock function with given fields: ctx, job

func (*JobStatusRepository) FindJobStatusByJobName

func (_m *JobStatusRepository) FindJobStatusByJobName(ctx context.Context, jobName domain.JobName) ([]service.JobStatus, error)

FindJobStatusByJobName provides a mock function with given fields: ctx, jobName

func (*JobStatusRepository) RemoveExpiredJobStatus

func (_m *JobStatusRepository) RemoveExpiredJobStatus(ctx context.Context) (int, error)

RemoveExpiredJobStatus provides a mock function with given fields: ctx

func (*JobStatusRepository) RemoveJobStatus

func (_m *JobStatusRepository) RemoveJobStatus(ctx context.Context, jobStatusID domain.JobStatusID) error

RemoveJobStatus provides a mock function with given fields: ctx, jobStatusID

type RepositoryFactory

type RepositoryFactory struct {
	mock.Mock
}

RepositoryFactory is an autogenerated mock type for the RepositoryFactory type

func NewRepositoryFactory

func NewRepositoryFactory(t testing.TB) *RepositoryFactory

NewRepositoryFactory creates a new instance of RepositoryFactory. It also registers a cleanup function to assert the mocks expectations.

func (*RepositoryFactory) NewJobHistoryRepository

func (_m *RepositoryFactory) NewJobHistoryRepository(ctx context.Context) service.JobHistoryRepository

NewJobHistoryRepository provides a mock function with given fields: ctx

func (*RepositoryFactory) NewJobStatusRepository

func (_m *RepositoryFactory) NewJobStatusRepository(ctx context.Context) service.JobStatusRepository

NewJobStatusRepository provides a mock function with given fields: ctx

type Transaction

type Transaction struct {
	mock.Mock
}

Transaction is an autogenerated mock type for the Transaction type

func NewTransaction

func NewTransaction(t testing.TB) *Transaction

NewTransaction creates a new instance of Transaction. It also registers a cleanup function to assert the mocks expectations.

func (*Transaction) Do

Do provides a mock function with given fields: ctx, fn

Jump to

Keyboard shortcuts

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