-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmock_appsV1Interface_test.go
More file actions
324 lines (261 loc) · 9.81 KB
/
mock_appsV1Interface_test.go
File metadata and controls
324 lines (261 loc) · 9.81 KB
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
// Code generated by mockery v2.53.6. DO NOT EDIT.
package main
import (
mock "github.com/stretchr/testify/mock"
rest "k8s.io/client-go/rest"
v1 "k8s.io/client-go/kubernetes/typed/apps/v1"
)
// mockAppsV1Interface is an autogenerated mock type for the appsV1Interface type
type mockAppsV1Interface struct {
mock.Mock
}
type mockAppsV1Interface_Expecter struct {
mock *mock.Mock
}
func (_m *mockAppsV1Interface) EXPECT() *mockAppsV1Interface_Expecter {
return &mockAppsV1Interface_Expecter{mock: &_m.Mock}
}
// ControllerRevisions provides a mock function with given fields: namespace
func (_m *mockAppsV1Interface) ControllerRevisions(namespace string) v1.ControllerRevisionInterface {
ret := _m.Called(namespace)
if len(ret) == 0 {
panic("no return value specified for ControllerRevisions")
}
var r0 v1.ControllerRevisionInterface
if rf, ok := ret.Get(0).(func(string) v1.ControllerRevisionInterface); ok {
r0 = rf(namespace)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1.ControllerRevisionInterface)
}
}
return r0
}
// mockAppsV1Interface_ControllerRevisions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ControllerRevisions'
type mockAppsV1Interface_ControllerRevisions_Call struct {
*mock.Call
}
// ControllerRevisions is a helper method to define mock.On call
// - namespace string
func (_e *mockAppsV1Interface_Expecter) ControllerRevisions(namespace interface{}) *mockAppsV1Interface_ControllerRevisions_Call {
return &mockAppsV1Interface_ControllerRevisions_Call{Call: _e.mock.On("ControllerRevisions", namespace)}
}
func (_c *mockAppsV1Interface_ControllerRevisions_Call) Run(run func(namespace string)) *mockAppsV1Interface_ControllerRevisions_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(string))
})
return _c
}
func (_c *mockAppsV1Interface_ControllerRevisions_Call) Return(_a0 v1.ControllerRevisionInterface) *mockAppsV1Interface_ControllerRevisions_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *mockAppsV1Interface_ControllerRevisions_Call) RunAndReturn(run func(string) v1.ControllerRevisionInterface) *mockAppsV1Interface_ControllerRevisions_Call {
_c.Call.Return(run)
return _c
}
// DaemonSets provides a mock function with given fields: namespace
func (_m *mockAppsV1Interface) DaemonSets(namespace string) v1.DaemonSetInterface {
ret := _m.Called(namespace)
if len(ret) == 0 {
panic("no return value specified for DaemonSets")
}
var r0 v1.DaemonSetInterface
if rf, ok := ret.Get(0).(func(string) v1.DaemonSetInterface); ok {
r0 = rf(namespace)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1.DaemonSetInterface)
}
}
return r0
}
// mockAppsV1Interface_DaemonSets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DaemonSets'
type mockAppsV1Interface_DaemonSets_Call struct {
*mock.Call
}
// DaemonSets is a helper method to define mock.On call
// - namespace string
func (_e *mockAppsV1Interface_Expecter) DaemonSets(namespace interface{}) *mockAppsV1Interface_DaemonSets_Call {
return &mockAppsV1Interface_DaemonSets_Call{Call: _e.mock.On("DaemonSets", namespace)}
}
func (_c *mockAppsV1Interface_DaemonSets_Call) Run(run func(namespace string)) *mockAppsV1Interface_DaemonSets_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(string))
})
return _c
}
func (_c *mockAppsV1Interface_DaemonSets_Call) Return(_a0 v1.DaemonSetInterface) *mockAppsV1Interface_DaemonSets_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *mockAppsV1Interface_DaemonSets_Call) RunAndReturn(run func(string) v1.DaemonSetInterface) *mockAppsV1Interface_DaemonSets_Call {
_c.Call.Return(run)
return _c
}
// Deployments provides a mock function with given fields: namespace
func (_m *mockAppsV1Interface) Deployments(namespace string) v1.DeploymentInterface {
ret := _m.Called(namespace)
if len(ret) == 0 {
panic("no return value specified for Deployments")
}
var r0 v1.DeploymentInterface
if rf, ok := ret.Get(0).(func(string) v1.DeploymentInterface); ok {
r0 = rf(namespace)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1.DeploymentInterface)
}
}
return r0
}
// mockAppsV1Interface_Deployments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deployments'
type mockAppsV1Interface_Deployments_Call struct {
*mock.Call
}
// Deployments is a helper method to define mock.On call
// - namespace string
func (_e *mockAppsV1Interface_Expecter) Deployments(namespace interface{}) *mockAppsV1Interface_Deployments_Call {
return &mockAppsV1Interface_Deployments_Call{Call: _e.mock.On("Deployments", namespace)}
}
func (_c *mockAppsV1Interface_Deployments_Call) Run(run func(namespace string)) *mockAppsV1Interface_Deployments_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(string))
})
return _c
}
func (_c *mockAppsV1Interface_Deployments_Call) Return(_a0 v1.DeploymentInterface) *mockAppsV1Interface_Deployments_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *mockAppsV1Interface_Deployments_Call) RunAndReturn(run func(string) v1.DeploymentInterface) *mockAppsV1Interface_Deployments_Call {
_c.Call.Return(run)
return _c
}
// RESTClient provides a mock function with no fields
func (_m *mockAppsV1Interface) RESTClient() rest.Interface {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for RESTClient")
}
var r0 rest.Interface
if rf, ok := ret.Get(0).(func() rest.Interface); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(rest.Interface)
}
}
return r0
}
// mockAppsV1Interface_RESTClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTClient'
type mockAppsV1Interface_RESTClient_Call struct {
*mock.Call
}
// RESTClient is a helper method to define mock.On call
func (_e *mockAppsV1Interface_Expecter) RESTClient() *mockAppsV1Interface_RESTClient_Call {
return &mockAppsV1Interface_RESTClient_Call{Call: _e.mock.On("RESTClient")}
}
func (_c *mockAppsV1Interface_RESTClient_Call) Run(run func()) *mockAppsV1Interface_RESTClient_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *mockAppsV1Interface_RESTClient_Call) Return(_a0 rest.Interface) *mockAppsV1Interface_RESTClient_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *mockAppsV1Interface_RESTClient_Call) RunAndReturn(run func() rest.Interface) *mockAppsV1Interface_RESTClient_Call {
_c.Call.Return(run)
return _c
}
// ReplicaSets provides a mock function with given fields: namespace
func (_m *mockAppsV1Interface) ReplicaSets(namespace string) v1.ReplicaSetInterface {
ret := _m.Called(namespace)
if len(ret) == 0 {
panic("no return value specified for ReplicaSets")
}
var r0 v1.ReplicaSetInterface
if rf, ok := ret.Get(0).(func(string) v1.ReplicaSetInterface); ok {
r0 = rf(namespace)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1.ReplicaSetInterface)
}
}
return r0
}
// mockAppsV1Interface_ReplicaSets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplicaSets'
type mockAppsV1Interface_ReplicaSets_Call struct {
*mock.Call
}
// ReplicaSets is a helper method to define mock.On call
// - namespace string
func (_e *mockAppsV1Interface_Expecter) ReplicaSets(namespace interface{}) *mockAppsV1Interface_ReplicaSets_Call {
return &mockAppsV1Interface_ReplicaSets_Call{Call: _e.mock.On("ReplicaSets", namespace)}
}
func (_c *mockAppsV1Interface_ReplicaSets_Call) Run(run func(namespace string)) *mockAppsV1Interface_ReplicaSets_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(string))
})
return _c
}
func (_c *mockAppsV1Interface_ReplicaSets_Call) Return(_a0 v1.ReplicaSetInterface) *mockAppsV1Interface_ReplicaSets_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *mockAppsV1Interface_ReplicaSets_Call) RunAndReturn(run func(string) v1.ReplicaSetInterface) *mockAppsV1Interface_ReplicaSets_Call {
_c.Call.Return(run)
return _c
}
// StatefulSets provides a mock function with given fields: namespace
func (_m *mockAppsV1Interface) StatefulSets(namespace string) v1.StatefulSetInterface {
ret := _m.Called(namespace)
if len(ret) == 0 {
panic("no return value specified for StatefulSets")
}
var r0 v1.StatefulSetInterface
if rf, ok := ret.Get(0).(func(string) v1.StatefulSetInterface); ok {
r0 = rf(namespace)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(v1.StatefulSetInterface)
}
}
return r0
}
// mockAppsV1Interface_StatefulSets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatefulSets'
type mockAppsV1Interface_StatefulSets_Call struct {
*mock.Call
}
// StatefulSets is a helper method to define mock.On call
// - namespace string
func (_e *mockAppsV1Interface_Expecter) StatefulSets(namespace interface{}) *mockAppsV1Interface_StatefulSets_Call {
return &mockAppsV1Interface_StatefulSets_Call{Call: _e.mock.On("StatefulSets", namespace)}
}
func (_c *mockAppsV1Interface_StatefulSets_Call) Run(run func(namespace string)) *mockAppsV1Interface_StatefulSets_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(string))
})
return _c
}
func (_c *mockAppsV1Interface_StatefulSets_Call) Return(_a0 v1.StatefulSetInterface) *mockAppsV1Interface_StatefulSets_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *mockAppsV1Interface_StatefulSets_Call) RunAndReturn(run func(string) v1.StatefulSetInterface) *mockAppsV1Interface_StatefulSets_Call {
_c.Call.Return(run)
return _c
}
// newMockAppsV1Interface creates a new instance of mockAppsV1Interface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func newMockAppsV1Interface(t interface {
mock.TestingT
Cleanup(func())
}) *mockAppsV1Interface {
mock := &mockAppsV1Interface{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}