mocks

package
v0.0.0-...-aa40c24 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobDB

type JobDB struct {
	mock.Mock
}

JobDB is an autogenerated mock type for the JobDB type

func NewJobDB

func NewJobDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *JobDB

NewJobDB creates a new instance of JobDB. 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 (*JobDB) GetJobById

func (_m *JobDB) GetJobById(_a0 context.Context, _a1 string) (*types.Job, error)

GetJobById provides a mock function with given fields: _a0, _a1

func (*JobDB) GetJobsFromDateRange

func (_m *JobDB) GetJobsFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Job, error)

GetJobsFromDateRange provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*JobDB) ModifiedJobsCh

func (_m *JobDB) ModifiedJobsCh(_a0 context.Context) <-chan []*types.Job

ModifiedJobsCh provides a mock function with given fields: _a0

func (*JobDB) PutJob

func (_m *JobDB) PutJob(_a0 context.Context, _a1 *types.Job) error

PutJob provides a mock function with given fields: _a0, _a1

func (*JobDB) PutJobs

func (_m *JobDB) PutJobs(_a0 context.Context, _a1 []*types.Job) error

PutJobs provides a mock function with given fields: _a0, _a1

func (*JobDB) PutJobsInChunks

func (_m *JobDB) PutJobsInChunks(_a0 context.Context, _a1 []*types.Job) error

PutJobsInChunks provides a mock function with given fields: _a0, _a1

func (*JobDB) SearchJobs

func (_m *JobDB) SearchJobs(_a0 context.Context, _a1 *db.JobSearchParams) ([]*types.Job, error)

SearchJobs provides a mock function with given fields: _a0, _a1

type RemoteDB

type RemoteDB struct {
	mock.Mock
}

RemoteDB is an autogenerated mock type for the RemoteDB type

func NewRemoteDB

func NewRemoteDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *RemoteDB

NewRemoteDB creates a new instance of RemoteDB. 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 (*RemoteDB) DeleteCommitComment

func (_m *RemoteDB) DeleteCommitComment(_a0 context.Context, _a1 *types.CommitComment) error

DeleteCommitComment provides a mock function with given fields: _a0, _a1

func (*RemoteDB) DeleteTaskComment

func (_m *RemoteDB) DeleteTaskComment(_a0 context.Context, _a1 *types.TaskComment) error

DeleteTaskComment provides a mock function with given fields: _a0, _a1

func (*RemoteDB) DeleteTaskSpecComment

func (_m *RemoteDB) DeleteTaskSpecComment(_a0 context.Context, _a1 *types.TaskSpecComment) error

DeleteTaskSpecComment provides a mock function with given fields: _a0, _a1

func (*RemoteDB) GetCommentsForRepos

func (_m *RemoteDB) GetCommentsForRepos(ctx context.Context, repos []string, from time.Time) ([]*types.RepoComments, error)

GetCommentsForRepos provides a mock function with given fields: ctx, repos, from

func (*RemoteDB) GetJobById

func (_m *RemoteDB) GetJobById(_a0 context.Context, _a1 string) (*types.Job, error)

GetJobById provides a mock function with given fields: _a0, _a1

func (*RemoteDB) GetJobsFromDateRange

func (_m *RemoteDB) GetJobsFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Job, error)

GetJobsFromDateRange provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*RemoteDB) GetTaskById

func (_m *RemoteDB) GetTaskById(_a0 context.Context, _a1 string) (*types.Task, error)

GetTaskById provides a mock function with given fields: _a0, _a1

func (*RemoteDB) GetTasksFromDateRange

func (_m *RemoteDB) GetTasksFromDateRange(_a0 context.Context, _a1 time.Time, _a2 time.Time, _a3 string) ([]*types.Task, error)

GetTasksFromDateRange provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*RemoteDB) ModifiedCommitCommentsCh

func (_m *RemoteDB) ModifiedCommitCommentsCh(_a0 context.Context) <-chan []*types.CommitComment

ModifiedCommitCommentsCh provides a mock function with given fields: _a0

func (*RemoteDB) ModifiedJobsCh

func (_m *RemoteDB) ModifiedJobsCh(_a0 context.Context) <-chan []*types.Job

ModifiedJobsCh provides a mock function with given fields: _a0

func (*RemoteDB) ModifiedTaskCommentsCh

func (_m *RemoteDB) ModifiedTaskCommentsCh(_a0 context.Context) <-chan []*types.TaskComment

ModifiedTaskCommentsCh provides a mock function with given fields: _a0

func (*RemoteDB) ModifiedTaskSpecCommentsCh

func (_m *RemoteDB) ModifiedTaskSpecCommentsCh(_a0 context.Context) <-chan []*types.TaskSpecComment

ModifiedTaskSpecCommentsCh provides a mock function with given fields: _a0

func (*RemoteDB) ModifiedTasksCh

func (_m *RemoteDB) ModifiedTasksCh(_a0 context.Context) <-chan []*types.Task

ModifiedTasksCh provides a mock function with given fields: _a0

func (*RemoteDB) PutCommitComment

func (_m *RemoteDB) PutCommitComment(_a0 context.Context, _a1 *types.CommitComment) error

PutCommitComment provides a mock function with given fields: _a0, _a1

func (*RemoteDB) PutTaskComment

func (_m *RemoteDB) PutTaskComment(_a0 context.Context, _a1 *types.TaskComment) error

PutTaskComment provides a mock function with given fields: _a0, _a1

func (*RemoteDB) PutTaskSpecComment

func (_m *RemoteDB) PutTaskSpecComment(_a0 context.Context, _a1 *types.TaskSpecComment) error

PutTaskSpecComment provides a mock function with given fields: _a0, _a1

func (*RemoteDB) SearchJobs

func (_m *RemoteDB) SearchJobs(_a0 context.Context, _a1 *db.JobSearchParams) ([]*types.Job, error)

SearchJobs provides a mock function with given fields: _a0, _a1

func (*RemoteDB) SearchTasks

func (_m *RemoteDB) SearchTasks(_a0 context.Context, _a1 *db.TaskSearchParams) ([]*types.Task, error)

SearchTasks provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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