mockjob

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: LGPL-3.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 Fetcher

type Fetcher struct {
	mock.Mock
}

Fetcher is an autogenerated mock type for the Fetcher type

func NewFetcher

func NewFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Fetcher

NewFetcher creates a new instance of Fetcher. 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 (*Fetcher) EXPECT

func (_m *Fetcher) EXPECT() *Fetcher_Expecter

func (*Fetcher) GetJob

func (_m *Fetcher) GetJob(ctx context.Context, id [32]byte) (types.Job, error)

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

func (*Fetcher) GetJobs

func (_m *Fetcher) GetJobs(ctx context.Context) (*job.Iterator, error)

GetJobs provides a mock function with given fields: ctx

func (*Fetcher) Next added in v1.5.4

func (_m *Fetcher) Next(ctx context.Context, it job.LazyIterator) bool

Next provides a mock function with given fields: ctx, it

type Fetcher_Expecter

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

func (*Fetcher_Expecter) GetJob

func (_e *Fetcher_Expecter) GetJob(ctx interface{}, id interface{}) *Fetcher_GetJob_Call

GetJob is a helper method to define mock.On call

  • ctx context.Context
  • id [32]byte

func (*Fetcher_Expecter) GetJobs

func (_e *Fetcher_Expecter) GetJobs(ctx interface{}) *Fetcher_GetJobs_Call

GetJobs is a helper method to define mock.On call

  • ctx context.Context

func (*Fetcher_Expecter) Next added in v1.5.4

func (_e *Fetcher_Expecter) Next(ctx interface{}, it interface{}) *Fetcher_Next_Call

Next is a helper method to define mock.On call

  • ctx context.Context
  • it job.LazyIterator

type Fetcher_GetJob_Call

type Fetcher_GetJob_Call struct {
	*mock.Call
}

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

func (*Fetcher_GetJob_Call) Return

func (_c *Fetcher_GetJob_Call) Return(_a0 types.Job, _a1 error) *Fetcher_GetJob_Call

func (*Fetcher_GetJob_Call) Run

func (_c *Fetcher_GetJob_Call) Run(run func(ctx context.Context, id [32]byte)) *Fetcher_GetJob_Call

func (*Fetcher_GetJob_Call) RunAndReturn

func (_c *Fetcher_GetJob_Call) RunAndReturn(run func(context.Context, [32]byte) (types.Job, error)) *Fetcher_GetJob_Call

type Fetcher_GetJobs_Call

type Fetcher_GetJobs_Call struct {
	*mock.Call
}

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

func (*Fetcher_GetJobs_Call) Return

func (*Fetcher_GetJobs_Call) Run

func (_c *Fetcher_GetJobs_Call) Run(run func(ctx context.Context)) *Fetcher_GetJobs_Call

func (*Fetcher_GetJobs_Call) RunAndReturn

func (_c *Fetcher_GetJobs_Call) RunAndReturn(run func(context.Context) (*job.Iterator, error)) *Fetcher_GetJobs_Call

type Fetcher_Next_Call added in v1.5.4

type Fetcher_Next_Call struct {
	*mock.Call
}

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

func (*Fetcher_Next_Call) Return added in v1.5.4

func (_c *Fetcher_Next_Call) Return(ok bool) *Fetcher_Next_Call

func (*Fetcher_Next_Call) Run added in v1.5.4

func (_c *Fetcher_Next_Call) Run(run func(ctx context.Context, it job.LazyIterator)) *Fetcher_Next_Call

func (*Fetcher_Next_Call) RunAndReturn added in v1.5.4

func (_c *Fetcher_Next_Call) RunAndReturn(run func(context.Context, job.LazyIterator) bool) *Fetcher_Next_Call

type MetaScheduledIdsFetcher

type MetaScheduledIdsFetcher struct {
	mock.Mock
}

MetaScheduledIdsFetcher is an autogenerated mock type for the MetaScheduledIdsFetcher type

func NewMetaScheduledIdsFetcher

func NewMetaScheduledIdsFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetaScheduledIdsFetcher

NewMetaScheduledIdsFetcher creates a new instance of MetaScheduledIdsFetcher. 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 (*MetaScheduledIdsFetcher) EXPECT

func (*MetaScheduledIdsFetcher) GetMetaScheduledJobIDs

func (_m *MetaScheduledIdsFetcher) GetMetaScheduledJobIDs(ctx context.Context) ([][32]byte, error)

GetMetaScheduledJobIDs provides a mock function with given fields: ctx

type MetaScheduledIdsFetcher_Expecter

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

func (*MetaScheduledIdsFetcher_Expecter) GetMetaScheduledJobIDs

GetMetaScheduledJobIDs is a helper method to define mock.On call

  • ctx context.Context

type MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call

type MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call struct {
	*mock.Call
}

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

func (*MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Return

func (*MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) Run

func (*MetaScheduledIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn

Jump to

Keyboard shortcuts

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