From a4728a32997499b177bec64a1b6540ef51b85996 Mon Sep 17 00:00:00 2001 From: John Roesler Date: Thu, 31 Oct 2024 14:46:01 -0500 Subject: [PATCH] update mocks with latest job/scheduler changes --- mocks/job.go | 15 +++++++++++++++ mocks/scheduler.go | 14 ++++++++++++++ 2 files changed, 29 insertions(+) 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()