forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_factory.go
701 lines (630 loc) · 25.7 KB
/
fake_factory.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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
// This file was generated by counterfeiter
package requirementsfakes
import (
"sync"
"github.com/blang/semver"
"github.com/cloudfoundry/cli/cf/requirements"
)
type FakeFactory struct {
NewApplicationRequirementStub func(name string) requirements.ApplicationRequirement
newApplicationRequirementMutex sync.RWMutex
newApplicationRequirementArgsForCall []struct {
name string
}
newApplicationRequirementReturns struct {
result1 requirements.ApplicationRequirement
}
NewDEAApplicationRequirementStub func(name string) requirements.DEAApplicationRequirement
newDEAApplicationRequirementMutex sync.RWMutex
newDEAApplicationRequirementArgsForCall []struct {
name string
}
newDEAApplicationRequirementReturns struct {
result1 requirements.DEAApplicationRequirement
}
NewDiegoApplicationRequirementStub func(name string) requirements.DiegoApplicationRequirement
newDiegoApplicationRequirementMutex sync.RWMutex
newDiegoApplicationRequirementArgsForCall []struct {
name string
}
newDiegoApplicationRequirementReturns struct {
result1 requirements.DiegoApplicationRequirement
}
NewServiceInstanceRequirementStub func(name string) requirements.ServiceInstanceRequirement
newServiceInstanceRequirementMutex sync.RWMutex
newServiceInstanceRequirementArgsForCall []struct {
name string
}
newServiceInstanceRequirementReturns struct {
result1 requirements.ServiceInstanceRequirement
}
NewLoginRequirementStub func() requirements.Requirement
newLoginRequirementMutex sync.RWMutex
newLoginRequirementArgsForCall []struct{}
newLoginRequirementReturns struct {
result1 requirements.Requirement
}
NewRoutingAPIRequirementStub func() requirements.Requirement
newRoutingAPIRequirementMutex sync.RWMutex
newRoutingAPIRequirementArgsForCall []struct{}
newRoutingAPIRequirementReturns struct {
result1 requirements.Requirement
}
NewSpaceRequirementStub func(name string) requirements.SpaceRequirement
newSpaceRequirementMutex sync.RWMutex
newSpaceRequirementArgsForCall []struct {
name string
}
newSpaceRequirementReturns struct {
result1 requirements.SpaceRequirement
}
NewTargetedSpaceRequirementStub func() requirements.Requirement
newTargetedSpaceRequirementMutex sync.RWMutex
newTargetedSpaceRequirementArgsForCall []struct{}
newTargetedSpaceRequirementReturns struct {
result1 requirements.Requirement
}
NewTargetedOrgRequirementStub func() requirements.TargetedOrgRequirement
newTargetedOrgRequirementMutex sync.RWMutex
newTargetedOrgRequirementArgsForCall []struct{}
newTargetedOrgRequirementReturns struct {
result1 requirements.TargetedOrgRequirement
}
NewOrganizationRequirementStub func(name string) requirements.OrganizationRequirement
newOrganizationRequirementMutex sync.RWMutex
newOrganizationRequirementArgsForCall []struct {
name string
}
newOrganizationRequirementReturns struct {
result1 requirements.OrganizationRequirement
}
NewDomainRequirementStub func(name string) requirements.DomainRequirement
newDomainRequirementMutex sync.RWMutex
newDomainRequirementArgsForCall []struct {
name string
}
newDomainRequirementReturns struct {
result1 requirements.DomainRequirement
}
NewUserRequirementStub func(username string, wantGUID bool) requirements.UserRequirement
newUserRequirementMutex sync.RWMutex
newUserRequirementArgsForCall []struct {
username string
wantGUID bool
}
newUserRequirementReturns struct {
result1 requirements.UserRequirement
}
NewBuildpackRequirementStub func(buildpack string) requirements.BuildpackRequirement
newBuildpackRequirementMutex sync.RWMutex
newBuildpackRequirementArgsForCall []struct {
buildpack string
}
newBuildpackRequirementReturns struct {
result1 requirements.BuildpackRequirement
}
NewAPIEndpointRequirementStub func() requirements.Requirement
newAPIEndpointRequirementMutex sync.RWMutex
newAPIEndpointRequirementArgsForCall []struct{}
newAPIEndpointRequirementReturns struct {
result1 requirements.Requirement
}
NewMinAPIVersionRequirementStub func(commandName string, requiredVersion semver.Version) requirements.Requirement
newMinAPIVersionRequirementMutex sync.RWMutex
newMinAPIVersionRequirementArgsForCall []struct {
commandName string
requiredVersion semver.Version
}
newMinAPIVersionRequirementReturns struct {
result1 requirements.Requirement
}
NewMaxAPIVersionRequirementStub func(commandName string, maximumVersion semver.Version) requirements.Requirement
newMaxAPIVersionRequirementMutex sync.RWMutex
newMaxAPIVersionRequirementArgsForCall []struct {
commandName string
maximumVersion semver.Version
}
newMaxAPIVersionRequirementReturns struct {
result1 requirements.Requirement
}
NewUsageRequirementStub func(requirements.Usable, string, func() bool) requirements.Requirement
newUsageRequirementMutex sync.RWMutex
newUsageRequirementArgsForCall []struct {
arg1 requirements.Usable
arg2 string
arg3 func() bool
}
newUsageRequirementReturns struct {
result1 requirements.Requirement
}
NewNumberArgumentsStub func([]string, ...string) requirements.Requirement
newNumberArgumentsMutex sync.RWMutex
newNumberArgumentsArgsForCall []struct {
arg1 []string
arg2 []string
}
newNumberArgumentsReturns struct {
result1 requirements.Requirement
}
}
func (fake *FakeFactory) NewApplicationRequirement(name string) requirements.ApplicationRequirement {
fake.newApplicationRequirementMutex.Lock()
fake.newApplicationRequirementArgsForCall = append(fake.newApplicationRequirementArgsForCall, struct {
name string
}{name})
fake.newApplicationRequirementMutex.Unlock()
if fake.NewApplicationRequirementStub != nil {
return fake.NewApplicationRequirementStub(name)
} else {
return fake.newApplicationRequirementReturns.result1
}
}
func (fake *FakeFactory) NewApplicationRequirementCallCount() int {
fake.newApplicationRequirementMutex.RLock()
defer fake.newApplicationRequirementMutex.RUnlock()
return len(fake.newApplicationRequirementArgsForCall)
}
func (fake *FakeFactory) NewApplicationRequirementArgsForCall(i int) string {
fake.newApplicationRequirementMutex.RLock()
defer fake.newApplicationRequirementMutex.RUnlock()
return fake.newApplicationRequirementArgsForCall[i].name
}
func (fake *FakeFactory) NewApplicationRequirementReturns(result1 requirements.ApplicationRequirement) {
fake.NewApplicationRequirementStub = nil
fake.newApplicationRequirementReturns = struct {
result1 requirements.ApplicationRequirement
}{result1}
}
func (fake *FakeFactory) NewDEAApplicationRequirement(name string) requirements.DEAApplicationRequirement {
fake.newDEAApplicationRequirementMutex.Lock()
fake.newDEAApplicationRequirementArgsForCall = append(fake.newDEAApplicationRequirementArgsForCall, struct {
name string
}{name})
fake.newDEAApplicationRequirementMutex.Unlock()
if fake.NewDEAApplicationRequirementStub != nil {
return fake.NewDEAApplicationRequirementStub(name)
} else {
return fake.newDEAApplicationRequirementReturns.result1
}
}
func (fake *FakeFactory) NewDEAApplicationRequirementCallCount() int {
fake.newDEAApplicationRequirementMutex.RLock()
defer fake.newDEAApplicationRequirementMutex.RUnlock()
return len(fake.newDEAApplicationRequirementArgsForCall)
}
func (fake *FakeFactory) NewDEAApplicationRequirementArgsForCall(i int) string {
fake.newDEAApplicationRequirementMutex.RLock()
defer fake.newDEAApplicationRequirementMutex.RUnlock()
return fake.newDEAApplicationRequirementArgsForCall[i].name
}
func (fake *FakeFactory) NewDEAApplicationRequirementReturns(result1 requirements.DEAApplicationRequirement) {
fake.NewDEAApplicationRequirementStub = nil
fake.newDEAApplicationRequirementReturns = struct {
result1 requirements.DEAApplicationRequirement
}{result1}
}
func (fake *FakeFactory) NewDiegoApplicationRequirement(name string) requirements.DiegoApplicationRequirement {
fake.newDiegoApplicationRequirementMutex.Lock()
fake.newDiegoApplicationRequirementArgsForCall = append(fake.newDiegoApplicationRequirementArgsForCall, struct {
name string
}{name})
fake.newDiegoApplicationRequirementMutex.Unlock()
if fake.NewDiegoApplicationRequirementStub != nil {
return fake.NewDiegoApplicationRequirementStub(name)
} else {
return fake.newDiegoApplicationRequirementReturns.result1
}
}
func (fake *FakeFactory) NewDiegoApplicationRequirementCallCount() int {
fake.newDiegoApplicationRequirementMutex.RLock()
defer fake.newDiegoApplicationRequirementMutex.RUnlock()
return len(fake.newDiegoApplicationRequirementArgsForCall)
}
func (fake *FakeFactory) NewDiegoApplicationRequirementArgsForCall(i int) string {
fake.newDiegoApplicationRequirementMutex.RLock()
defer fake.newDiegoApplicationRequirementMutex.RUnlock()
return fake.newDiegoApplicationRequirementArgsForCall[i].name
}
func (fake *FakeFactory) NewDiegoApplicationRequirementReturns(result1 requirements.DiegoApplicationRequirement) {
fake.NewDiegoApplicationRequirementStub = nil
fake.newDiegoApplicationRequirementReturns = struct {
result1 requirements.DiegoApplicationRequirement
}{result1}
}
func (fake *FakeFactory) NewServiceInstanceRequirement(name string) requirements.ServiceInstanceRequirement {
fake.newServiceInstanceRequirementMutex.Lock()
fake.newServiceInstanceRequirementArgsForCall = append(fake.newServiceInstanceRequirementArgsForCall, struct {
name string
}{name})
fake.newServiceInstanceRequirementMutex.Unlock()
if fake.NewServiceInstanceRequirementStub != nil {
return fake.NewServiceInstanceRequirementStub(name)
} else {
return fake.newServiceInstanceRequirementReturns.result1
}
}
func (fake *FakeFactory) NewServiceInstanceRequirementCallCount() int {
fake.newServiceInstanceRequirementMutex.RLock()
defer fake.newServiceInstanceRequirementMutex.RUnlock()
return len(fake.newServiceInstanceRequirementArgsForCall)
}
func (fake *FakeFactory) NewServiceInstanceRequirementArgsForCall(i int) string {
fake.newServiceInstanceRequirementMutex.RLock()
defer fake.newServiceInstanceRequirementMutex.RUnlock()
return fake.newServiceInstanceRequirementArgsForCall[i].name
}
func (fake *FakeFactory) NewServiceInstanceRequirementReturns(result1 requirements.ServiceInstanceRequirement) {
fake.NewServiceInstanceRequirementStub = nil
fake.newServiceInstanceRequirementReturns = struct {
result1 requirements.ServiceInstanceRequirement
}{result1}
}
func (fake *FakeFactory) NewLoginRequirement() requirements.Requirement {
fake.newLoginRequirementMutex.Lock()
fake.newLoginRequirementArgsForCall = append(fake.newLoginRequirementArgsForCall, struct{}{})
fake.newLoginRequirementMutex.Unlock()
if fake.NewLoginRequirementStub != nil {
return fake.NewLoginRequirementStub()
} else {
return fake.newLoginRequirementReturns.result1
}
}
func (fake *FakeFactory) NewLoginRequirementCallCount() int {
fake.newLoginRequirementMutex.RLock()
defer fake.newLoginRequirementMutex.RUnlock()
return len(fake.newLoginRequirementArgsForCall)
}
func (fake *FakeFactory) NewLoginRequirementReturns(result1 requirements.Requirement) {
fake.NewLoginRequirementStub = nil
fake.newLoginRequirementReturns = struct {
result1 requirements.Requirement
}{result1}
}
func (fake *FakeFactory) NewRoutingAPIRequirement() requirements.Requirement {
fake.newRoutingAPIRequirementMutex.Lock()
fake.newRoutingAPIRequirementArgsForCall = append(fake.newRoutingAPIRequirementArgsForCall, struct{}{})
fake.newRoutingAPIRequirementMutex.Unlock()
if fake.NewRoutingAPIRequirementStub != nil {
return fake.NewRoutingAPIRequirementStub()
} else {
return fake.newRoutingAPIRequirementReturns.result1
}
}
func (fake *FakeFactory) NewRoutingAPIRequirementCallCount() int {
fake.newRoutingAPIRequirementMutex.RLock()
defer fake.newRoutingAPIRequirementMutex.RUnlock()
return len(fake.newRoutingAPIRequirementArgsForCall)
}
func (fake *FakeFactory) NewRoutingAPIRequirementReturns(result1 requirements.Requirement) {
fake.NewRoutingAPIRequirementStub = nil
fake.newRoutingAPIRequirementReturns = struct {
result1 requirements.Requirement
}{result1}
}
func (fake *FakeFactory) NewSpaceRequirement(name string) requirements.SpaceRequirement {
fake.newSpaceRequirementMutex.Lock()
fake.newSpaceRequirementArgsForCall = append(fake.newSpaceRequirementArgsForCall, struct {
name string
}{name})
fake.newSpaceRequirementMutex.Unlock()
if fake.NewSpaceRequirementStub != nil {
return fake.NewSpaceRequirementStub(name)
} else {
return fake.newSpaceRequirementReturns.result1
}
}
func (fake *FakeFactory) NewSpaceRequirementCallCount() int {
fake.newSpaceRequirementMutex.RLock()
defer fake.newSpaceRequirementMutex.RUnlock()
return len(fake.newSpaceRequirementArgsForCall)
}
func (fake *FakeFactory) NewSpaceRequirementArgsForCall(i int) string {
fake.newSpaceRequirementMutex.RLock()
defer fake.newSpaceRequirementMutex.RUnlock()
return fake.newSpaceRequirementArgsForCall[i].name
}
func (fake *FakeFactory) NewSpaceRequirementReturns(result1 requirements.SpaceRequirement) {
fake.NewSpaceRequirementStub = nil
fake.newSpaceRequirementReturns = struct {
result1 requirements.SpaceRequirement
}{result1}
}
func (fake *FakeFactory) NewTargetedSpaceRequirement() requirements.Requirement {
fake.newTargetedSpaceRequirementMutex.Lock()
fake.newTargetedSpaceRequirementArgsForCall = append(fake.newTargetedSpaceRequirementArgsForCall, struct{}{})
fake.newTargetedSpaceRequirementMutex.Unlock()
if fake.NewTargetedSpaceRequirementStub != nil {
return fake.NewTargetedSpaceRequirementStub()
} else {
return fake.newTargetedSpaceRequirementReturns.result1
}
}
func (fake *FakeFactory) NewTargetedSpaceRequirementCallCount() int {
fake.newTargetedSpaceRequirementMutex.RLock()
defer fake.newTargetedSpaceRequirementMutex.RUnlock()
return len(fake.newTargetedSpaceRequirementArgsForCall)
}
func (fake *FakeFactory) NewTargetedSpaceRequirementReturns(result1 requirements.Requirement) {
fake.NewTargetedSpaceRequirementStub = nil
fake.newTargetedSpaceRequirementReturns = struct {
result1 requirements.Requirement
}{result1}
}
func (fake *FakeFactory) NewTargetedOrgRequirement() requirements.TargetedOrgRequirement {
fake.newTargetedOrgRequirementMutex.Lock()
fake.newTargetedOrgRequirementArgsForCall = append(fake.newTargetedOrgRequirementArgsForCall, struct{}{})
fake.newTargetedOrgRequirementMutex.Unlock()
if fake.NewTargetedOrgRequirementStub != nil {
return fake.NewTargetedOrgRequirementStub()
} else {
return fake.newTargetedOrgRequirementReturns.result1
}
}
func (fake *FakeFactory) NewTargetedOrgRequirementCallCount() int {
fake.newTargetedOrgRequirementMutex.RLock()
defer fake.newTargetedOrgRequirementMutex.RUnlock()
return len(fake.newTargetedOrgRequirementArgsForCall)
}
func (fake *FakeFactory) NewTargetedOrgRequirementReturns(result1 requirements.TargetedOrgRequirement) {
fake.NewTargetedOrgRequirementStub = nil
fake.newTargetedOrgRequirementReturns = struct {
result1 requirements.TargetedOrgRequirement
}{result1}
}
func (fake *FakeFactory) NewOrganizationRequirement(name string) requirements.OrganizationRequirement {
fake.newOrganizationRequirementMutex.Lock()
fake.newOrganizationRequirementArgsForCall = append(fake.newOrganizationRequirementArgsForCall, struct {
name string
}{name})
fake.newOrganizationRequirementMutex.Unlock()
if fake.NewOrganizationRequirementStub != nil {
return fake.NewOrganizationRequirementStub(name)
} else {
return fake.newOrganizationRequirementReturns.result1
}
}
func (fake *FakeFactory) NewOrganizationRequirementCallCount() int {
fake.newOrganizationRequirementMutex.RLock()
defer fake.newOrganizationRequirementMutex.RUnlock()
return len(fake.newOrganizationRequirementArgsForCall)
}
func (fake *FakeFactory) NewOrganizationRequirementArgsForCall(i int) string {
fake.newOrganizationRequirementMutex.RLock()
defer fake.newOrganizationRequirementMutex.RUnlock()
return fake.newOrganizationRequirementArgsForCall[i].name
}
func (fake *FakeFactory) NewOrganizationRequirementReturns(result1 requirements.OrganizationRequirement) {
fake.NewOrganizationRequirementStub = nil
fake.newOrganizationRequirementReturns = struct {
result1 requirements.OrganizationRequirement
}{result1}
}
func (fake *FakeFactory) NewDomainRequirement(name string) requirements.DomainRequirement {
fake.newDomainRequirementMutex.Lock()
fake.newDomainRequirementArgsForCall = append(fake.newDomainRequirementArgsForCall, struct {
name string
}{name})
fake.newDomainRequirementMutex.Unlock()
if fake.NewDomainRequirementStub != nil {
return fake.NewDomainRequirementStub(name)
} else {
return fake.newDomainRequirementReturns.result1
}
}
func (fake *FakeFactory) NewDomainRequirementCallCount() int {
fake.newDomainRequirementMutex.RLock()
defer fake.newDomainRequirementMutex.RUnlock()
return len(fake.newDomainRequirementArgsForCall)
}
func (fake *FakeFactory) NewDomainRequirementArgsForCall(i int) string {
fake.newDomainRequirementMutex.RLock()
defer fake.newDomainRequirementMutex.RUnlock()
return fake.newDomainRequirementArgsForCall[i].name
}
func (fake *FakeFactory) NewDomainRequirementReturns(result1 requirements.DomainRequirement) {
fake.NewDomainRequirementStub = nil
fake.newDomainRequirementReturns = struct {
result1 requirements.DomainRequirement
}{result1}
}
func (fake *FakeFactory) NewUserRequirement(username string, wantGUID bool) requirements.UserRequirement {
fake.newUserRequirementMutex.Lock()
fake.newUserRequirementArgsForCall = append(fake.newUserRequirementArgsForCall, struct {
username string
wantGUID bool
}{username, wantGUID})
fake.newUserRequirementMutex.Unlock()
if fake.NewUserRequirementStub != nil {
return fake.NewUserRequirementStub(username, wantGUID)
} else {
return fake.newUserRequirementReturns.result1
}
}
func (fake *FakeFactory) NewUserRequirementCallCount() int {
fake.newUserRequirementMutex.RLock()
defer fake.newUserRequirementMutex.RUnlock()
return len(fake.newUserRequirementArgsForCall)
}
func (fake *FakeFactory) NewUserRequirementArgsForCall(i int) (string, bool) {
fake.newUserRequirementMutex.RLock()
defer fake.newUserRequirementMutex.RUnlock()
return fake.newUserRequirementArgsForCall[i].username, fake.newUserRequirementArgsForCall[i].wantGUID
}
func (fake *FakeFactory) NewUserRequirementReturns(result1 requirements.UserRequirement) {
fake.NewUserRequirementStub = nil
fake.newUserRequirementReturns = struct {
result1 requirements.UserRequirement
}{result1}
}
func (fake *FakeFactory) NewBuildpackRequirement(buildpack string) requirements.BuildpackRequirement {
fake.newBuildpackRequirementMutex.Lock()
fake.newBuildpackRequirementArgsForCall = append(fake.newBuildpackRequirementArgsForCall, struct {
buildpack string
}{buildpack})
fake.newBuildpackRequirementMutex.Unlock()
if fake.NewBuildpackRequirementStub != nil {
return fake.NewBuildpackRequirementStub(buildpack)
} else {
return fake.newBuildpackRequirementReturns.result1
}
}
func (fake *FakeFactory) NewBuildpackRequirementCallCount() int {
fake.newBuildpackRequirementMutex.RLock()
defer fake.newBuildpackRequirementMutex.RUnlock()
return len(fake.newBuildpackRequirementArgsForCall)
}
func (fake *FakeFactory) NewBuildpackRequirementArgsForCall(i int) string {
fake.newBuildpackRequirementMutex.RLock()
defer fake.newBuildpackRequirementMutex.RUnlock()
return fake.newBuildpackRequirementArgsForCall[i].buildpack
}
func (fake *FakeFactory) NewBuildpackRequirementReturns(result1 requirements.BuildpackRequirement) {
fake.NewBuildpackRequirementStub = nil
fake.newBuildpackRequirementReturns = struct {
result1 requirements.BuildpackRequirement
}{result1}
}
func (fake *FakeFactory) NewAPIEndpointRequirement() requirements.Requirement {
fake.newAPIEndpointRequirementMutex.Lock()
fake.newAPIEndpointRequirementArgsForCall = append(fake.newAPIEndpointRequirementArgsForCall, struct{}{})
fake.newAPIEndpointRequirementMutex.Unlock()
if fake.NewAPIEndpointRequirementStub != nil {
return fake.NewAPIEndpointRequirementStub()
} else {
return fake.newAPIEndpointRequirementReturns.result1
}
}
func (fake *FakeFactory) NewAPIEndpointRequirementCallCount() int {
fake.newAPIEndpointRequirementMutex.RLock()
defer fake.newAPIEndpointRequirementMutex.RUnlock()
return len(fake.newAPIEndpointRequirementArgsForCall)
}
func (fake *FakeFactory) NewAPIEndpointRequirementReturns(result1 requirements.Requirement) {
fake.NewAPIEndpointRequirementStub = nil
fake.newAPIEndpointRequirementReturns = struct {
result1 requirements.Requirement
}{result1}
}
func (fake *FakeFactory) NewMinAPIVersionRequirement(commandName string, requiredVersion semver.Version) requirements.Requirement {
fake.newMinAPIVersionRequirementMutex.Lock()
fake.newMinAPIVersionRequirementArgsForCall = append(fake.newMinAPIVersionRequirementArgsForCall, struct {
commandName string
requiredVersion semver.Version
}{commandName, requiredVersion})
fake.newMinAPIVersionRequirementMutex.Unlock()
if fake.NewMinAPIVersionRequirementStub != nil {
return fake.NewMinAPIVersionRequirementStub(commandName, requiredVersion)
} else {
return fake.newMinAPIVersionRequirementReturns.result1
}
}
func (fake *FakeFactory) NewMinAPIVersionRequirementCallCount() int {
fake.newMinAPIVersionRequirementMutex.RLock()
defer fake.newMinAPIVersionRequirementMutex.RUnlock()
return len(fake.newMinAPIVersionRequirementArgsForCall)
}
func (fake *FakeFactory) NewMinAPIVersionRequirementArgsForCall(i int) (string, semver.Version) {
fake.newMinAPIVersionRequirementMutex.RLock()
defer fake.newMinAPIVersionRequirementMutex.RUnlock()
return fake.newMinAPIVersionRequirementArgsForCall[i].commandName, fake.newMinAPIVersionRequirementArgsForCall[i].requiredVersion
}
func (fake *FakeFactory) NewMinAPIVersionRequirementReturns(result1 requirements.Requirement) {
fake.NewMinAPIVersionRequirementStub = nil
fake.newMinAPIVersionRequirementReturns = struct {
result1 requirements.Requirement
}{result1}
}
func (fake *FakeFactory) NewMaxAPIVersionRequirement(commandName string, maximumVersion semver.Version) requirements.Requirement {
fake.newMaxAPIVersionRequirementMutex.Lock()
fake.newMaxAPIVersionRequirementArgsForCall = append(fake.newMaxAPIVersionRequirementArgsForCall, struct {
commandName string
maximumVersion semver.Version
}{commandName, maximumVersion})
fake.newMaxAPIVersionRequirementMutex.Unlock()
if fake.NewMaxAPIVersionRequirementStub != nil {
return fake.NewMaxAPIVersionRequirementStub(commandName, maximumVersion)
} else {
return fake.newMaxAPIVersionRequirementReturns.result1
}
}
func (fake *FakeFactory) NewMaxAPIVersionRequirementCallCount() int {
fake.newMaxAPIVersionRequirementMutex.RLock()
defer fake.newMaxAPIVersionRequirementMutex.RUnlock()
return len(fake.newMaxAPIVersionRequirementArgsForCall)
}
func (fake *FakeFactory) NewMaxAPIVersionRequirementArgsForCall(i int) (string, semver.Version) {
fake.newMaxAPIVersionRequirementMutex.RLock()
defer fake.newMaxAPIVersionRequirementMutex.RUnlock()
return fake.newMaxAPIVersionRequirementArgsForCall[i].commandName, fake.newMaxAPIVersionRequirementArgsForCall[i].maximumVersion
}
func (fake *FakeFactory) NewMaxAPIVersionRequirementReturns(result1 requirements.Requirement) {
fake.NewMaxAPIVersionRequirementStub = nil
fake.newMaxAPIVersionRequirementReturns = struct {
result1 requirements.Requirement
}{result1}
}
func (fake *FakeFactory) NewUsageRequirement(arg1 requirements.Usable, arg2 string, arg3 func() bool) requirements.Requirement {
fake.newUsageRequirementMutex.Lock()
fake.newUsageRequirementArgsForCall = append(fake.newUsageRequirementArgsForCall, struct {
arg1 requirements.Usable
arg2 string
arg3 func() bool
}{arg1, arg2, arg3})
fake.newUsageRequirementMutex.Unlock()
if fake.NewUsageRequirementStub != nil {
return fake.NewUsageRequirementStub(arg1, arg2, arg3)
} else {
return fake.newUsageRequirementReturns.result1
}
}
func (fake *FakeFactory) NewUsageRequirementCallCount() int {
fake.newUsageRequirementMutex.RLock()
defer fake.newUsageRequirementMutex.RUnlock()
return len(fake.newUsageRequirementArgsForCall)
}
func (fake *FakeFactory) NewUsageRequirementArgsForCall(i int) (requirements.Usable, string, func() bool) {
fake.newUsageRequirementMutex.RLock()
defer fake.newUsageRequirementMutex.RUnlock()
return fake.newUsageRequirementArgsForCall[i].arg1, fake.newUsageRequirementArgsForCall[i].arg2, fake.newUsageRequirementArgsForCall[i].arg3
}
func (fake *FakeFactory) NewUsageRequirementReturns(result1 requirements.Requirement) {
fake.NewUsageRequirementStub = nil
fake.newUsageRequirementReturns = struct {
result1 requirements.Requirement
}{result1}
}
func (fake *FakeFactory) NewNumberArguments(arg1 []string, arg2 ...string) requirements.Requirement {
var arg1Copy []string
if arg1 != nil {
arg1Copy = make([]string, len(arg1))
copy(arg1Copy, arg1)
}
fake.newNumberArgumentsMutex.Lock()
fake.newNumberArgumentsArgsForCall = append(fake.newNumberArgumentsArgsForCall, struct {
arg1 []string
arg2 []string
}{arg1Copy, arg2})
fake.newNumberArgumentsMutex.Unlock()
if fake.NewNumberArgumentsStub != nil {
return fake.NewNumberArgumentsStub(arg1, arg2...)
} else {
return fake.newNumberArgumentsReturns.result1
}
}
func (fake *FakeFactory) NewNumberArgumentsCallCount() int {
fake.newNumberArgumentsMutex.RLock()
defer fake.newNumberArgumentsMutex.RUnlock()
return len(fake.newNumberArgumentsArgsForCall)
}
func (fake *FakeFactory) NewNumberArgumentsArgsForCall(i int) ([]string, []string) {
fake.newNumberArgumentsMutex.RLock()
defer fake.newNumberArgumentsMutex.RUnlock()
return fake.newNumberArgumentsArgsForCall[i].arg1, fake.newNumberArgumentsArgsForCall[i].arg2
}
func (fake *FakeFactory) NewNumberArgumentsReturns(result1 requirements.Requirement) {
fake.NewNumberArgumentsStub = nil
fake.newNumberArgumentsReturns = struct {
result1 requirements.Requirement
}{result1}
}
var _ requirements.Factory = new(FakeFactory)