forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_app_manifest.go
346 lines (309 loc) · 9.51 KB
/
fake_app_manifest.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
// This file was generated by counterfeiter
package fakes
import (
"sync"
"github.com/cloudfoundry/cli/cf/manifest"
"github.com/cloudfoundry/cli/cf/models"
)
type FakeAppManifest struct {
BuildpackUrlStub func(string, string)
buildpackUrlMutex sync.RWMutex
buildpackUrlArgsForCall []struct {
arg1 string
arg2 string
}
MemoryStub func(string, int64)
memoryMutex sync.RWMutex
memoryArgsForCall []struct {
arg1 string
arg2 int64
}
ServiceStub func(string, string)
serviceMutex sync.RWMutex
serviceArgsForCall []struct {
arg1 string
arg2 string
}
StartCommandStub func(string, string)
startCommandMutex sync.RWMutex
startCommandArgsForCall []struct {
arg1 string
arg2 string
}
EnvironmentVarsStub func(string, string, string)
environmentVarsMutex sync.RWMutex
environmentVarsArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
HealthCheckTimeoutStub func(string, int)
healthCheckTimeoutMutex sync.RWMutex
healthCheckTimeoutArgsForCall []struct {
arg1 string
arg2 int
}
InstancesStub func(string, int)
instancesMutex sync.RWMutex
instancesArgsForCall []struct {
arg1 string
arg2 int
}
DomainStub func(string, string, string)
domainMutex sync.RWMutex
domainArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
GetContentsStub func() []models.Application
getContentsMutex sync.RWMutex
getContentsArgsForCall []struct{}
getContentsReturns struct {
result1 []models.Application
}
FileSavePathStub func(string)
fileSavePathMutex sync.RWMutex
fileSavePathArgsForCall []struct {
arg1 string
}
SaveStub func() error
saveMutex sync.RWMutex
saveArgsForCall []struct{}
saveReturns struct {
result1 error
}
}
func (fake *FakeAppManifest) BuildpackUrl(arg1 string, arg2 string) {
fake.buildpackUrlMutex.Lock()
fake.buildpackUrlArgsForCall = append(fake.buildpackUrlArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.buildpackUrlMutex.Unlock()
if fake.BuildpackUrlStub != nil {
fake.BuildpackUrlStub(arg1, arg2)
}
}
func (fake *FakeAppManifest) BuildpackUrlCallCount() int {
fake.buildpackUrlMutex.RLock()
defer fake.buildpackUrlMutex.RUnlock()
return len(fake.buildpackUrlArgsForCall)
}
func (fake *FakeAppManifest) BuildpackUrlArgsForCall(i int) (string, string) {
fake.buildpackUrlMutex.RLock()
defer fake.buildpackUrlMutex.RUnlock()
return fake.buildpackUrlArgsForCall[i].arg1, fake.buildpackUrlArgsForCall[i].arg2
}
func (fake *FakeAppManifest) Memory(arg1 string, arg2 int64) {
fake.memoryMutex.Lock()
fake.memoryArgsForCall = append(fake.memoryArgsForCall, struct {
arg1 string
arg2 int64
}{arg1, arg2})
fake.memoryMutex.Unlock()
if fake.MemoryStub != nil {
fake.MemoryStub(arg1, arg2)
}
}
func (fake *FakeAppManifest) MemoryCallCount() int {
fake.memoryMutex.RLock()
defer fake.memoryMutex.RUnlock()
return len(fake.memoryArgsForCall)
}
func (fake *FakeAppManifest) MemoryArgsForCall(i int) (string, int64) {
fake.memoryMutex.RLock()
defer fake.memoryMutex.RUnlock()
return fake.memoryArgsForCall[i].arg1, fake.memoryArgsForCall[i].arg2
}
func (fake *FakeAppManifest) Service(arg1 string, arg2 string) {
fake.serviceMutex.Lock()
fake.serviceArgsForCall = append(fake.serviceArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.serviceMutex.Unlock()
if fake.ServiceStub != nil {
fake.ServiceStub(arg1, arg2)
}
}
func (fake *FakeAppManifest) ServiceCallCount() int {
fake.serviceMutex.RLock()
defer fake.serviceMutex.RUnlock()
return len(fake.serviceArgsForCall)
}
func (fake *FakeAppManifest) ServiceArgsForCall(i int) (string, string) {
fake.serviceMutex.RLock()
defer fake.serviceMutex.RUnlock()
return fake.serviceArgsForCall[i].arg1, fake.serviceArgsForCall[i].arg2
}
func (fake *FakeAppManifest) StartCommand(arg1 string, arg2 string) {
fake.startCommandMutex.Lock()
fake.startCommandArgsForCall = append(fake.startCommandArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
fake.startCommandMutex.Unlock()
if fake.StartCommandStub != nil {
fake.StartCommandStub(arg1, arg2)
}
}
func (fake *FakeAppManifest) StartCommandCallCount() int {
fake.startCommandMutex.RLock()
defer fake.startCommandMutex.RUnlock()
return len(fake.startCommandArgsForCall)
}
func (fake *FakeAppManifest) StartCommandArgsForCall(i int) (string, string) {
fake.startCommandMutex.RLock()
defer fake.startCommandMutex.RUnlock()
return fake.startCommandArgsForCall[i].arg1, fake.startCommandArgsForCall[i].arg2
}
func (fake *FakeAppManifest) EnvironmentVars(arg1 string, arg2 string, arg3 string) {
fake.environmentVarsMutex.Lock()
fake.environmentVarsArgsForCall = append(fake.environmentVarsArgsForCall, struct {
arg1 string
arg2 string
arg3 string
}{arg1, arg2, arg3})
fake.environmentVarsMutex.Unlock()
if fake.EnvironmentVarsStub != nil {
fake.EnvironmentVarsStub(arg1, arg2, arg3)
}
}
func (fake *FakeAppManifest) EnvironmentVarsCallCount() int {
fake.environmentVarsMutex.RLock()
defer fake.environmentVarsMutex.RUnlock()
return len(fake.environmentVarsArgsForCall)
}
func (fake *FakeAppManifest) EnvironmentVarsArgsForCall(i int) (string, string, string) {
fake.environmentVarsMutex.RLock()
defer fake.environmentVarsMutex.RUnlock()
return fake.environmentVarsArgsForCall[i].arg1, fake.environmentVarsArgsForCall[i].arg2, fake.environmentVarsArgsForCall[i].arg3
}
func (fake *FakeAppManifest) HealthCheckTimeout(arg1 string, arg2 int) {
fake.healthCheckTimeoutMutex.Lock()
fake.healthCheckTimeoutArgsForCall = append(fake.healthCheckTimeoutArgsForCall, struct {
arg1 string
arg2 int
}{arg1, arg2})
fake.healthCheckTimeoutMutex.Unlock()
if fake.HealthCheckTimeoutStub != nil {
fake.HealthCheckTimeoutStub(arg1, arg2)
}
}
func (fake *FakeAppManifest) HealthCheckTimeoutCallCount() int {
fake.healthCheckTimeoutMutex.RLock()
defer fake.healthCheckTimeoutMutex.RUnlock()
return len(fake.healthCheckTimeoutArgsForCall)
}
func (fake *FakeAppManifest) HealthCheckTimeoutArgsForCall(i int) (string, int) {
fake.healthCheckTimeoutMutex.RLock()
defer fake.healthCheckTimeoutMutex.RUnlock()
return fake.healthCheckTimeoutArgsForCall[i].arg1, fake.healthCheckTimeoutArgsForCall[i].arg2
}
func (fake *FakeAppManifest) Instances(arg1 string, arg2 int) {
fake.instancesMutex.Lock()
fake.instancesArgsForCall = append(fake.instancesArgsForCall, struct {
arg1 string
arg2 int
}{arg1, arg2})
fake.instancesMutex.Unlock()
if fake.InstancesStub != nil {
fake.InstancesStub(arg1, arg2)
}
}
func (fake *FakeAppManifest) InstancesCallCount() int {
fake.instancesMutex.RLock()
defer fake.instancesMutex.RUnlock()
return len(fake.instancesArgsForCall)
}
func (fake *FakeAppManifest) InstancesArgsForCall(i int) (string, int) {
fake.instancesMutex.RLock()
defer fake.instancesMutex.RUnlock()
return fake.instancesArgsForCall[i].arg1, fake.instancesArgsForCall[i].arg2
}
func (fake *FakeAppManifest) Domain(arg1 string, arg2 string, arg3 string) {
fake.domainMutex.Lock()
fake.domainArgsForCall = append(fake.domainArgsForCall, struct {
arg1 string
arg2 string
arg3 string
}{arg1, arg2, arg3})
fake.domainMutex.Unlock()
if fake.DomainStub != nil {
fake.DomainStub(arg1, arg2, arg3)
}
}
func (fake *FakeAppManifest) DomainCallCount() int {
fake.domainMutex.RLock()
defer fake.domainMutex.RUnlock()
return len(fake.domainArgsForCall)
}
func (fake *FakeAppManifest) DomainArgsForCall(i int) (string, string, string) {
fake.domainMutex.RLock()
defer fake.domainMutex.RUnlock()
return fake.domainArgsForCall[i].arg1, fake.domainArgsForCall[i].arg2, fake.domainArgsForCall[i].arg3
}
func (fake *FakeAppManifest) GetContents() []models.Application {
fake.getContentsMutex.Lock()
fake.getContentsArgsForCall = append(fake.getContentsArgsForCall, struct{}{})
fake.getContentsMutex.Unlock()
if fake.GetContentsStub != nil {
return fake.GetContentsStub()
} else {
return fake.getContentsReturns.result1
}
}
func (fake *FakeAppManifest) GetContentsCallCount() int {
fake.getContentsMutex.RLock()
defer fake.getContentsMutex.RUnlock()
return len(fake.getContentsArgsForCall)
}
func (fake *FakeAppManifest) GetContentsReturns(result1 []models.Application) {
fake.GetContentsStub = nil
fake.getContentsReturns = struct {
result1 []models.Application
}{result1}
}
func (fake *FakeAppManifest) FileSavePath(arg1 string) {
fake.fileSavePathMutex.Lock()
fake.fileSavePathArgsForCall = append(fake.fileSavePathArgsForCall, struct {
arg1 string
}{arg1})
fake.fileSavePathMutex.Unlock()
if fake.FileSavePathStub != nil {
fake.FileSavePathStub(arg1)
}
}
func (fake *FakeAppManifest) FileSavePathCallCount() int {
fake.fileSavePathMutex.RLock()
defer fake.fileSavePathMutex.RUnlock()
return len(fake.fileSavePathArgsForCall)
}
func (fake *FakeAppManifest) FileSavePathArgsForCall(i int) string {
fake.fileSavePathMutex.RLock()
defer fake.fileSavePathMutex.RUnlock()
return fake.fileSavePathArgsForCall[i].arg1
}
func (fake *FakeAppManifest) Save() error {
fake.saveMutex.Lock()
fake.saveArgsForCall = append(fake.saveArgsForCall, struct{}{})
fake.saveMutex.Unlock()
if fake.SaveStub != nil {
return fake.SaveStub()
} else {
return fake.saveReturns.result1
}
}
func (fake *FakeAppManifest) SaveCallCount() int {
fake.saveMutex.RLock()
defer fake.saveMutex.RUnlock()
return len(fake.saveArgsForCall)
}
func (fake *FakeAppManifest) SaveReturns(result1 error) {
fake.SaveStub = nil
fake.saveReturns = struct {
result1 error
}{result1}
}
var _ manifest.AppManifest = new(FakeAppManifest)