-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.mock.go
299 lines (252 loc) · 8.71 KB
/
spec.mock.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
// Code generated by MockGen. DO NOT EDIT.
// Source: spec.go
// Package glcm is a generated GoMock package.
package glcm
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockHook is a mock of Hook interface.
type MockHook struct {
ctrl *gomock.Controller
recorder *MockHookMockRecorder
}
// MockHookMockRecorder is the mock recorder for MockHook.
type MockHookMockRecorder struct {
mock *MockHook
}
// NewMockHook creates a new mock instance.
func NewMockHook(ctrl *gomock.Controller) *MockHook {
mock := &MockHook{ctrl: ctrl}
mock.recorder = &MockHookMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockHook) EXPECT() *MockHookMockRecorder {
return m.recorder
}
// Execute mocks base method.
func (m *MockHook) Execute() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Execute")
ret0, _ := ret[0].(error)
return ret0
}
// Execute indicates an expected call of Execute.
func (mr *MockHookMockRecorder) Execute() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Execute", reflect.TypeOf((*MockHook)(nil).Execute))
}
// Name mocks base method.
func (m *MockHook) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MockHookMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockHook)(nil).Name))
}
// MockService is a mock of Service interface.
type MockService struct {
ctrl *gomock.Controller
recorder *MockServiceMockRecorder
}
// MockServiceMockRecorder is the mock recorder for MockService.
type MockServiceMockRecorder struct {
mock *MockService
}
// NewMockService creates a new mock instance.
func NewMockService(ctrl *gomock.Controller) *MockService {
mock := &MockService{ctrl: ctrl}
mock.recorder = &MockServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockService) EXPECT() *MockServiceMockRecorder {
return m.recorder
}
// Name mocks base method.
func (m *MockService) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MockServiceMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockService)(nil).Name))
}
// Start mocks base method.
func (m *MockService) Start(arg0 Terminator) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Start", arg0)
}
// Start indicates an expected call of Start.
func (mr *MockServiceMockRecorder) Start(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockService)(nil).Start), arg0)
}
// Status mocks base method.
func (m *MockService) Status() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Status")
ret0, _ := ret[0].(string)
return ret0
}
// Status indicates an expected call of Status.
func (mr *MockServiceMockRecorder) Status() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockService)(nil).Status))
}
// MockTerminator is a mock of Terminator interface.
type MockTerminator struct {
ctrl *gomock.Controller
recorder *MockTerminatorMockRecorder
}
// MockTerminatorMockRecorder is the mock recorder for MockTerminator.
type MockTerminatorMockRecorder struct {
mock *MockTerminator
}
// NewMockTerminator creates a new mock instance.
func NewMockTerminator(ctrl *gomock.Controller) *MockTerminator {
mock := &MockTerminator{ctrl: ctrl}
mock.recorder = &MockTerminatorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTerminator) EXPECT() *MockTerminatorMockRecorder {
return m.recorder
}
// TermCh mocks base method.
func (m *MockTerminator) TermCh() chan struct{} {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TermCh")
ret0, _ := ret[0].(chan struct{})
return ret0
}
// TermCh indicates an expected call of TermCh.
func (mr *MockTerminatorMockRecorder) TermCh() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TermCh", reflect.TypeOf((*MockTerminator)(nil).TermCh))
}
// MockRunner is a mock of Runner interface.
type MockRunner struct {
ctrl *gomock.Controller
recorder *MockRunnerMockRecorder
}
// MockRunnerMockRecorder is the mock recorder for MockRunner.
type MockRunnerMockRecorder struct {
mock *MockRunner
}
// NewMockRunner creates a new mock instance.
func NewMockRunner(ctrl *gomock.Controller) *MockRunner {
mock := &MockRunner{ctrl: ctrl}
mock.recorder = &MockRunnerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockRunner) EXPECT() *MockRunnerMockRecorder {
return m.recorder
}
// BootUp mocks base method.
func (m *MockRunner) BootUp() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BootUp")
ret0, _ := ret[0].(error)
return ret0
}
// BootUp indicates an expected call of BootUp.
func (mr *MockRunnerMockRecorder) BootUp() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BootUp", reflect.TypeOf((*MockRunner)(nil).BootUp))
}
// IsRunning mocks base method.
func (m *MockRunner) IsRunning() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsRunning")
ret0, _ := ret[0].(bool)
return ret0
}
// IsRunning indicates an expected call of IsRunning.
func (mr *MockRunnerMockRecorder) IsRunning() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsRunning", reflect.TypeOf((*MockRunner)(nil).IsRunning))
}
// RegisterService mocks base method.
func (m *MockRunner) RegisterService(arg0 Service, arg1 ServiceOptions) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RegisterService", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// RegisterService indicates an expected call of RegisterService.
func (mr *MockRunnerMockRecorder) RegisterService(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterService", reflect.TypeOf((*MockRunner)(nil).RegisterService), arg0, arg1)
}
// RestartAllServices mocks base method.
func (m *MockRunner) RestartAllServices() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RestartAllServices")
}
// RestartAllServices indicates an expected call of RestartAllServices.
func (mr *MockRunnerMockRecorder) RestartAllServices() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestartAllServices", reflect.TypeOf((*MockRunner)(nil).RestartAllServices))
}
// RestartService mocks base method.
func (m *MockRunner) RestartService(arg0 ...string) error {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "RestartService", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// RestartService indicates an expected call of RestartService.
func (mr *MockRunnerMockRecorder) RestartService(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RestartService", reflect.TypeOf((*MockRunner)(nil).RestartService), arg0...)
}
// Shutdown mocks base method.
func (m *MockRunner) Shutdown() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Shutdown")
}
// Shutdown indicates an expected call of Shutdown.
func (mr *MockRunnerMockRecorder) Shutdown() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Shutdown", reflect.TypeOf((*MockRunner)(nil).Shutdown))
}
// StopAllServices mocks base method.
func (m *MockRunner) StopAllServices() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "StopAllServices")
}
// StopAllServices indicates an expected call of StopAllServices.
func (mr *MockRunnerMockRecorder) StopAllServices() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopAllServices", reflect.TypeOf((*MockRunner)(nil).StopAllServices))
}
// StopService mocks base method.
func (m *MockRunner) StopService(arg0 ...string) error {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "StopService", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// StopService indicates an expected call of StopService.
func (mr *MockRunnerMockRecorder) StopService(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopService", reflect.TypeOf((*MockRunner)(nil).StopService), arg0...)
}