diff --git a/mocks/job.go b/mocks/job.go index eb75dbc2..0c233e41 100644 --- a/mocks/job.go +++ b/mocks/job.go @@ -97,6 +97,21 @@ func (mr *MockJobMockRecorder) NextRun() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextRun", reflect.TypeOf((*MockJob)(nil).NextRun)) } +// NextRuns mocks base method. +func (m *MockJob) NextRuns(arg0 int) ([]time.Time, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "NextRuns", arg0) + ret0, _ := ret[0].([]time.Time) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// NextRuns indicates an expected call of NextRuns. +func (mr *MockJobMockRecorder) NextRuns(arg0 any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextRuns", reflect.TypeOf((*MockJob)(nil).NextRuns), arg0) +} + // RunNow mocks base method. func (m *MockJob) RunNow() error { m.ctrl.T.Helper() diff --git a/mocks/scheduler.go b/mocks/scheduler.go index d4180c8d..5fb47970 100644 --- a/mocks/scheduler.go +++ b/mocks/scheduler.go @@ -53,6 +53,20 @@ func (mr *MockSchedulerMockRecorder) Jobs() *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Jobs", reflect.TypeOf((*MockScheduler)(nil).Jobs)) } +// JobsWaitingInQueue mocks base method. +func (m *MockScheduler) JobsWaitingInQueue() int { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "JobsWaitingInQueue") + ret0, _ := ret[0].(int) + return ret0 +} + +// JobsWaitingInQueue indicates an expected call of JobsWaitingInQueue. +func (mr *MockSchedulerMockRecorder) JobsWaitingInQueue() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "JobsWaitingInQueue", reflect.TypeOf((*MockScheduler)(nil).JobsWaitingInQueue)) +} + // NewJob mocks base method. func (m *MockScheduler) NewJob(arg0 gocron.JobDefinition, arg1 gocron.Task, arg2 ...gocron.JobOption) (gocron.Job, error) { m.ctrl.T.Helper()