-
Notifications
You must be signed in to change notification settings - Fork 473
/
mocks.go
71 lines (58 loc) · 1.95 KB
/
mocks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/controllermanager/controller/shoot (interfaces: Cron)
// Package shoot is a generated GoMock package.
package shoot
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
cron "github.com/robfig/cron"
)
// MockCron is a mock of Cron interface.
type MockCron struct {
ctrl *gomock.Controller
recorder *MockCronMockRecorder
}
// MockCronMockRecorder is the mock recorder for MockCron.
type MockCronMockRecorder struct {
mock *MockCron
}
// NewMockCron creates a new mock instance.
func NewMockCron(ctrl *gomock.Controller) *MockCron {
mock := &MockCron{ctrl: ctrl}
mock.recorder = &MockCronMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCron) EXPECT() *MockCronMockRecorder {
return m.recorder
}
// Schedule mocks base method.
func (m *MockCron) Schedule(arg0 cron.Schedule, arg1 cron.Job) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Schedule", arg0, arg1)
}
// Schedule indicates an expected call of Schedule.
func (mr *MockCronMockRecorder) Schedule(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Schedule", reflect.TypeOf((*MockCron)(nil).Schedule), arg0, arg1)
}
// Start mocks base method.
func (m *MockCron) Start() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start")
}
// Start indicates an expected call of Start.
func (mr *MockCronMockRecorder) Start() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockCron)(nil).Start))
}
// Stop mocks base method.
func (m *MockCron) Stop() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Stop")
}
// Stop indicates an expected call of Stop.
func (mr *MockCronMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockCron)(nil).Stop))
}