mocktypes

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobFetcher

type JobFetcher struct {
	mock.Mock
}

JobFetcher is an autogenerated mock type for the JobFetcher type

func NewJobFetcher

func NewJobFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *JobFetcher

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

func (_m *JobFetcher) EXPECT() *JobFetcher_Expecter

func (*JobFetcher) GetJob

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

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

func (*JobFetcher) GetJobs

func (_m *JobFetcher) GetJobs(ctx context.Context) (types.JobLazyIterator, error)

GetJobs provides a mock function with given fields: ctx

type JobFetcher_Expecter

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

func (*JobFetcher_Expecter) GetJob

func (_e *JobFetcher_Expecter) GetJob(ctx interface{}, id interface{}) *JobFetcher_GetJob_Call

GetJob is a helper method to define mock.On call

  • ctx context.Context
  • id [32]byte

func (*JobFetcher_Expecter) GetJobs

func (_e *JobFetcher_Expecter) GetJobs(ctx interface{}) *JobFetcher_GetJobs_Call

GetJobs is a helper method to define mock.On call

  • ctx context.Context

type JobFetcher_GetJob_Call

type JobFetcher_GetJob_Call struct {
	*mock.Call
}

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

func (*JobFetcher_GetJob_Call) Return

func (*JobFetcher_GetJob_Call) Run

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

func (*JobFetcher_GetJob_Call) RunAndReturn

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

type JobFetcher_GetJobs_Call

type JobFetcher_GetJobs_Call struct {
	*mock.Call
}

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

func (*JobFetcher_GetJobs_Call) Return

func (*JobFetcher_GetJobs_Call) Run

func (*JobFetcher_GetJobs_Call) RunAndReturn

type MetaScheduledJobsIdsFetcher

type MetaScheduledJobsIdsFetcher struct {
	mock.Mock
}

MetaScheduledJobsIdsFetcher is an autogenerated mock type for the MetaScheduledJobsIdsFetcher type

func NewMetaScheduledJobsIdsFetcher

func NewMetaScheduledJobsIdsFetcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MetaScheduledJobsIdsFetcher

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

func (*MetaScheduledJobsIdsFetcher) GetMetaScheduledJobIDs

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

GetMetaScheduledJobIDs provides a mock function with given fields: ctx

type MetaScheduledJobsIdsFetcher_Expecter

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

func (*MetaScheduledJobsIdsFetcher_Expecter) GetMetaScheduledJobIDs

GetMetaScheduledJobIDs is a helper method to define mock.On call

  • ctx context.Context

type MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call

type MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call struct {
	*mock.Call
}

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

func (*MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Return

func (*MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) Run

func (*MetaScheduledJobsIdsFetcher_GetMetaScheduledJobIDs_Call) RunAndReturn

Jump to

Keyboard shortcuts

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