This repository has been archived by the owner on Sep 6, 2021. It is now read-only.
forked from cloudfoundry/bosh-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mocks.go
302 lines (242 loc) · 8.85 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
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
300
301
302
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/cloudfoundry/bosh-cli/templatescompiler (interfaces: JobRenderer,JobListRenderer,RenderedJob,RenderedJobList,RenderedJobListArchive,RenderedJobListCompressor)
package mocks
import (
job "github.com/cloudfoundry/bosh-cli/release/job"
templatescompiler "github.com/cloudfoundry/bosh-cli/templatescompiler"
property "github.com/cloudfoundry/bosh-utils/property"
gomock "github.com/golang/mock/gomock"
)
// Mock of JobRenderer interface
type MockJobRenderer struct {
ctrl *gomock.Controller
recorder *_MockJobRendererRecorder
}
// Recorder for MockJobRenderer (not exported)
type _MockJobRendererRecorder struct {
mock *MockJobRenderer
}
func NewMockJobRenderer(ctrl *gomock.Controller) *MockJobRenderer {
mock := &MockJobRenderer{ctrl: ctrl}
mock.recorder = &_MockJobRendererRecorder{mock}
return mock
}
func (_m *MockJobRenderer) EXPECT() *_MockJobRendererRecorder {
return _m.recorder
}
func (_m *MockJobRenderer) Render(_param0 job.Job, _param1 *property.Map, _param2 property.Map, _param3 property.Map, _param4 string, _param5 string) (templatescompiler.RenderedJob, error) {
ret := _m.ctrl.Call(_m, "Render", _param0, _param1, _param2, _param3, _param4, _param5)
ret0, _ := ret[0].(templatescompiler.RenderedJob)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockJobRendererRecorder) Render(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Render", arg0, arg1, arg2, arg3, arg4, arg5)
}
// Mock of JobListRenderer interface
type MockJobListRenderer struct {
ctrl *gomock.Controller
recorder *_MockJobListRendererRecorder
}
// Recorder for MockJobListRenderer (not exported)
type _MockJobListRendererRecorder struct {
mock *MockJobListRenderer
}
func NewMockJobListRenderer(ctrl *gomock.Controller) *MockJobListRenderer {
mock := &MockJobListRenderer{ctrl: ctrl}
mock.recorder = &_MockJobListRendererRecorder{mock}
return mock
}
func (_m *MockJobListRenderer) EXPECT() *_MockJobListRendererRecorder {
return _m.recorder
}
func (_m *MockJobListRenderer) Render(_param0 []job.Job, _param1 map[string]*property.Map, _param2 property.Map, _param3 property.Map, _param4 string, _param5 string) (templatescompiler.RenderedJobList, error) {
ret := _m.ctrl.Call(_m, "Render", _param0, _param1, _param2, _param3, _param4, _param5)
ret0, _ := ret[0].(templatescompiler.RenderedJobList)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockJobListRendererRecorder) Render(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Render", arg0, arg1, arg2, arg3, arg4, arg5)
}
// Mock of RenderedJob interface
type MockRenderedJob struct {
ctrl *gomock.Controller
recorder *_MockRenderedJobRecorder
}
// Recorder for MockRenderedJob (not exported)
type _MockRenderedJobRecorder struct {
mock *MockRenderedJob
}
func NewMockRenderedJob(ctrl *gomock.Controller) *MockRenderedJob {
mock := &MockRenderedJob{ctrl: ctrl}
mock.recorder = &_MockRenderedJobRecorder{mock}
return mock
}
func (_m *MockRenderedJob) EXPECT() *_MockRenderedJobRecorder {
return _m.recorder
}
func (_m *MockRenderedJob) Delete() error {
ret := _m.ctrl.Call(_m, "Delete")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockRenderedJobRecorder) Delete() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Delete")
}
func (_m *MockRenderedJob) DeleteSilently() {
_m.ctrl.Call(_m, "DeleteSilently")
}
func (_mr *_MockRenderedJobRecorder) DeleteSilently() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteSilently")
}
func (_m *MockRenderedJob) Job() job.Job {
ret := _m.ctrl.Call(_m, "Job")
ret0, _ := ret[0].(job.Job)
return ret0
}
func (_mr *_MockRenderedJobRecorder) Job() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Job")
}
func (_m *MockRenderedJob) Path() string {
ret := _m.ctrl.Call(_m, "Path")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockRenderedJobRecorder) Path() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Path")
}
// Mock of RenderedJobList interface
type MockRenderedJobList struct {
ctrl *gomock.Controller
recorder *_MockRenderedJobListRecorder
}
// Recorder for MockRenderedJobList (not exported)
type _MockRenderedJobListRecorder struct {
mock *MockRenderedJobList
}
func NewMockRenderedJobList(ctrl *gomock.Controller) *MockRenderedJobList {
mock := &MockRenderedJobList{ctrl: ctrl}
mock.recorder = &_MockRenderedJobListRecorder{mock}
return mock
}
func (_m *MockRenderedJobList) EXPECT() *_MockRenderedJobListRecorder {
return _m.recorder
}
func (_m *MockRenderedJobList) Add(_param0 templatescompiler.RenderedJob) {
_m.ctrl.Call(_m, "Add", _param0)
}
func (_mr *_MockRenderedJobListRecorder) Add(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Add", arg0)
}
func (_m *MockRenderedJobList) All() []templatescompiler.RenderedJob {
ret := _m.ctrl.Call(_m, "All")
ret0, _ := ret[0].([]templatescompiler.RenderedJob)
return ret0
}
func (_mr *_MockRenderedJobListRecorder) All() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "All")
}
func (_m *MockRenderedJobList) Delete() error {
ret := _m.ctrl.Call(_m, "Delete")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockRenderedJobListRecorder) Delete() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Delete")
}
func (_m *MockRenderedJobList) DeleteSilently() {
_m.ctrl.Call(_m, "DeleteSilently")
}
func (_mr *_MockRenderedJobListRecorder) DeleteSilently() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteSilently")
}
// Mock of RenderedJobListArchive interface
type MockRenderedJobListArchive struct {
ctrl *gomock.Controller
recorder *_MockRenderedJobListArchiveRecorder
}
// Recorder for MockRenderedJobListArchive (not exported)
type _MockRenderedJobListArchiveRecorder struct {
mock *MockRenderedJobListArchive
}
func NewMockRenderedJobListArchive(ctrl *gomock.Controller) *MockRenderedJobListArchive {
mock := &MockRenderedJobListArchive{ctrl: ctrl}
mock.recorder = &_MockRenderedJobListArchiveRecorder{mock}
return mock
}
func (_m *MockRenderedJobListArchive) EXPECT() *_MockRenderedJobListArchiveRecorder {
return _m.recorder
}
func (_m *MockRenderedJobListArchive) Delete() error {
ret := _m.ctrl.Call(_m, "Delete")
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockRenderedJobListArchiveRecorder) Delete() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Delete")
}
func (_m *MockRenderedJobListArchive) DeleteSilently() {
_m.ctrl.Call(_m, "DeleteSilently")
}
func (_mr *_MockRenderedJobListArchiveRecorder) DeleteSilently() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteSilently")
}
func (_m *MockRenderedJobListArchive) Fingerprint() string {
ret := _m.ctrl.Call(_m, "Fingerprint")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockRenderedJobListArchiveRecorder) Fingerprint() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Fingerprint")
}
func (_m *MockRenderedJobListArchive) List() templatescompiler.RenderedJobList {
ret := _m.ctrl.Call(_m, "List")
ret0, _ := ret[0].(templatescompiler.RenderedJobList)
return ret0
}
func (_mr *_MockRenderedJobListArchiveRecorder) List() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "List")
}
func (_m *MockRenderedJobListArchive) Path() string {
ret := _m.ctrl.Call(_m, "Path")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockRenderedJobListArchiveRecorder) Path() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Path")
}
func (_m *MockRenderedJobListArchive) SHA1() string {
ret := _m.ctrl.Call(_m, "SHA1")
ret0, _ := ret[0].(string)
return ret0
}
func (_mr *_MockRenderedJobListArchiveRecorder) SHA1() *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SHA1")
}
// Mock of RenderedJobListCompressor interface
type MockRenderedJobListCompressor struct {
ctrl *gomock.Controller
recorder *_MockRenderedJobListCompressorRecorder
}
// Recorder for MockRenderedJobListCompressor (not exported)
type _MockRenderedJobListCompressorRecorder struct {
mock *MockRenderedJobListCompressor
}
func NewMockRenderedJobListCompressor(ctrl *gomock.Controller) *MockRenderedJobListCompressor {
mock := &MockRenderedJobListCompressor{ctrl: ctrl}
mock.recorder = &_MockRenderedJobListCompressorRecorder{mock}
return mock
}
func (_m *MockRenderedJobListCompressor) EXPECT() *_MockRenderedJobListCompressorRecorder {
return _m.recorder
}
func (_m *MockRenderedJobListCompressor) Compress(_param0 templatescompiler.RenderedJobList) (templatescompiler.RenderedJobListArchive, error) {
ret := _m.ctrl.Call(_m, "Compress", _param0)
ret0, _ := ret[0].(templatescompiler.RenderedJobListArchive)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockRenderedJobListCompressorRecorder) Compress(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Compress", arg0)
}