forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
capabilities.go
801 lines (737 loc) · 23.3 KB
/
capabilities.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
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
// Code generated by counterfeiter. DO NOT EDIT.
package mocks
import (
"sync"
)
type Capabilities struct {
ACLsStub func() bool
aCLsMutex sync.RWMutex
aCLsArgsForCall []struct {
}
aCLsReturns struct {
result1 bool
}
aCLsReturnsOnCall map[int]struct {
result1 bool
}
CollectionUpgradeStub func() bool
collectionUpgradeMutex sync.RWMutex
collectionUpgradeArgsForCall []struct {
}
collectionUpgradeReturns struct {
result1 bool
}
collectionUpgradeReturnsOnCall map[int]struct {
result1 bool
}
ForbidDuplicateTXIdInBlockStub func() bool
forbidDuplicateTXIdInBlockMutex sync.RWMutex
forbidDuplicateTXIdInBlockArgsForCall []struct {
}
forbidDuplicateTXIdInBlockReturns struct {
result1 bool
}
forbidDuplicateTXIdInBlockReturnsOnCall map[int]struct {
result1 bool
}
KeyLevelEndorsementStub func() bool
keyLevelEndorsementMutex sync.RWMutex
keyLevelEndorsementArgsForCall []struct {
}
keyLevelEndorsementReturns struct {
result1 bool
}
keyLevelEndorsementReturnsOnCall map[int]struct {
result1 bool
}
MetadataLifecycleStub func() bool
metadataLifecycleMutex sync.RWMutex
metadataLifecycleArgsForCall []struct {
}
metadataLifecycleReturns struct {
result1 bool
}
metadataLifecycleReturnsOnCall map[int]struct {
result1 bool
}
PrivateChannelDataStub func() bool
privateChannelDataMutex sync.RWMutex
privateChannelDataArgsForCall []struct {
}
privateChannelDataReturns struct {
result1 bool
}
privateChannelDataReturnsOnCall map[int]struct {
result1 bool
}
StorePvtDataOfInvalidTxStub func() bool
storePvtDataOfInvalidTxMutex sync.RWMutex
storePvtDataOfInvalidTxArgsForCall []struct {
}
storePvtDataOfInvalidTxReturns struct {
result1 bool
}
storePvtDataOfInvalidTxReturnsOnCall map[int]struct {
result1 bool
}
SupportedStub func() error
supportedMutex sync.RWMutex
supportedArgsForCall []struct {
}
supportedReturns struct {
result1 error
}
supportedReturnsOnCall map[int]struct {
result1 error
}
V1_1ValidationStub func() bool
v1_1ValidationMutex sync.RWMutex
v1_1ValidationArgsForCall []struct {
}
v1_1ValidationReturns struct {
result1 bool
}
v1_1ValidationReturnsOnCall map[int]struct {
result1 bool
}
V1_2ValidationStub func() bool
v1_2ValidationMutex sync.RWMutex
v1_2ValidationArgsForCall []struct {
}
v1_2ValidationReturns struct {
result1 bool
}
v1_2ValidationReturnsOnCall map[int]struct {
result1 bool
}
V1_3ValidationStub func() bool
v1_3ValidationMutex sync.RWMutex
v1_3ValidationArgsForCall []struct {
}
v1_3ValidationReturns struct {
result1 bool
}
v1_3ValidationReturnsOnCall map[int]struct {
result1 bool
}
V2_0ValidationStub func() bool
v2_0ValidationMutex sync.RWMutex
v2_0ValidationArgsForCall []struct {
}
v2_0ValidationReturns struct {
result1 bool
}
v2_0ValidationReturnsOnCall map[int]struct {
result1 bool
}
invocations map[string][][]interface{}
invocationsMutex sync.RWMutex
}
func (fake *Capabilities) ACLs() bool {
fake.aCLsMutex.Lock()
ret, specificReturn := fake.aCLsReturnsOnCall[len(fake.aCLsArgsForCall)]
fake.aCLsArgsForCall = append(fake.aCLsArgsForCall, struct {
}{})
fake.recordInvocation("ACLs", []interface{}{})
fake.aCLsMutex.Unlock()
if fake.ACLsStub != nil {
return fake.ACLsStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.aCLsReturns
return fakeReturns.result1
}
func (fake *Capabilities) ACLsCallCount() int {
fake.aCLsMutex.RLock()
defer fake.aCLsMutex.RUnlock()
return len(fake.aCLsArgsForCall)
}
func (fake *Capabilities) ACLsCalls(stub func() bool) {
fake.aCLsMutex.Lock()
defer fake.aCLsMutex.Unlock()
fake.ACLsStub = stub
}
func (fake *Capabilities) ACLsReturns(result1 bool) {
fake.aCLsMutex.Lock()
defer fake.aCLsMutex.Unlock()
fake.ACLsStub = nil
fake.aCLsReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) ACLsReturnsOnCall(i int, result1 bool) {
fake.aCLsMutex.Lock()
defer fake.aCLsMutex.Unlock()
fake.ACLsStub = nil
if fake.aCLsReturnsOnCall == nil {
fake.aCLsReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.aCLsReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) CollectionUpgrade() bool {
fake.collectionUpgradeMutex.Lock()
ret, specificReturn := fake.collectionUpgradeReturnsOnCall[len(fake.collectionUpgradeArgsForCall)]
fake.collectionUpgradeArgsForCall = append(fake.collectionUpgradeArgsForCall, struct {
}{})
fake.recordInvocation("CollectionUpgrade", []interface{}{})
fake.collectionUpgradeMutex.Unlock()
if fake.CollectionUpgradeStub != nil {
return fake.CollectionUpgradeStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.collectionUpgradeReturns
return fakeReturns.result1
}
func (fake *Capabilities) CollectionUpgradeCallCount() int {
fake.collectionUpgradeMutex.RLock()
defer fake.collectionUpgradeMutex.RUnlock()
return len(fake.collectionUpgradeArgsForCall)
}
func (fake *Capabilities) CollectionUpgradeCalls(stub func() bool) {
fake.collectionUpgradeMutex.Lock()
defer fake.collectionUpgradeMutex.Unlock()
fake.CollectionUpgradeStub = stub
}
func (fake *Capabilities) CollectionUpgradeReturns(result1 bool) {
fake.collectionUpgradeMutex.Lock()
defer fake.collectionUpgradeMutex.Unlock()
fake.CollectionUpgradeStub = nil
fake.collectionUpgradeReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) CollectionUpgradeReturnsOnCall(i int, result1 bool) {
fake.collectionUpgradeMutex.Lock()
defer fake.collectionUpgradeMutex.Unlock()
fake.CollectionUpgradeStub = nil
if fake.collectionUpgradeReturnsOnCall == nil {
fake.collectionUpgradeReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.collectionUpgradeReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlock() bool {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
ret, specificReturn := fake.forbidDuplicateTXIdInBlockReturnsOnCall[len(fake.forbidDuplicateTXIdInBlockArgsForCall)]
fake.forbidDuplicateTXIdInBlockArgsForCall = append(fake.forbidDuplicateTXIdInBlockArgsForCall, struct {
}{})
fake.recordInvocation("ForbidDuplicateTXIdInBlock", []interface{}{})
fake.forbidDuplicateTXIdInBlockMutex.Unlock()
if fake.ForbidDuplicateTXIdInBlockStub != nil {
return fake.ForbidDuplicateTXIdInBlockStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.forbidDuplicateTXIdInBlockReturns
return fakeReturns.result1
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockCallCount() int {
fake.forbidDuplicateTXIdInBlockMutex.RLock()
defer fake.forbidDuplicateTXIdInBlockMutex.RUnlock()
return len(fake.forbidDuplicateTXIdInBlockArgsForCall)
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockCalls(stub func() bool) {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
fake.ForbidDuplicateTXIdInBlockStub = stub
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturns(result1 bool) {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
fake.ForbidDuplicateTXIdInBlockStub = nil
fake.forbidDuplicateTXIdInBlockReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall(i int, result1 bool) {
fake.forbidDuplicateTXIdInBlockMutex.Lock()
defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
fake.ForbidDuplicateTXIdInBlockStub = nil
if fake.forbidDuplicateTXIdInBlockReturnsOnCall == nil {
fake.forbidDuplicateTXIdInBlockReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.forbidDuplicateTXIdInBlockReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) KeyLevelEndorsement() bool {
fake.keyLevelEndorsementMutex.Lock()
ret, specificReturn := fake.keyLevelEndorsementReturnsOnCall[len(fake.keyLevelEndorsementArgsForCall)]
fake.keyLevelEndorsementArgsForCall = append(fake.keyLevelEndorsementArgsForCall, struct {
}{})
fake.recordInvocation("KeyLevelEndorsement", []interface{}{})
fake.keyLevelEndorsementMutex.Unlock()
if fake.KeyLevelEndorsementStub != nil {
return fake.KeyLevelEndorsementStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.keyLevelEndorsementReturns
return fakeReturns.result1
}
func (fake *Capabilities) KeyLevelEndorsementCallCount() int {
fake.keyLevelEndorsementMutex.RLock()
defer fake.keyLevelEndorsementMutex.RUnlock()
return len(fake.keyLevelEndorsementArgsForCall)
}
func (fake *Capabilities) KeyLevelEndorsementCalls(stub func() bool) {
fake.keyLevelEndorsementMutex.Lock()
defer fake.keyLevelEndorsementMutex.Unlock()
fake.KeyLevelEndorsementStub = stub
}
func (fake *Capabilities) KeyLevelEndorsementReturns(result1 bool) {
fake.keyLevelEndorsementMutex.Lock()
defer fake.keyLevelEndorsementMutex.Unlock()
fake.KeyLevelEndorsementStub = nil
fake.keyLevelEndorsementReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) KeyLevelEndorsementReturnsOnCall(i int, result1 bool) {
fake.keyLevelEndorsementMutex.Lock()
defer fake.keyLevelEndorsementMutex.Unlock()
fake.KeyLevelEndorsementStub = nil
if fake.keyLevelEndorsementReturnsOnCall == nil {
fake.keyLevelEndorsementReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.keyLevelEndorsementReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) MetadataLifecycle() bool {
fake.metadataLifecycleMutex.Lock()
ret, specificReturn := fake.metadataLifecycleReturnsOnCall[len(fake.metadataLifecycleArgsForCall)]
fake.metadataLifecycleArgsForCall = append(fake.metadataLifecycleArgsForCall, struct {
}{})
fake.recordInvocation("MetadataLifecycle", []interface{}{})
fake.metadataLifecycleMutex.Unlock()
if fake.MetadataLifecycleStub != nil {
return fake.MetadataLifecycleStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.metadataLifecycleReturns
return fakeReturns.result1
}
func (fake *Capabilities) MetadataLifecycleCallCount() int {
fake.metadataLifecycleMutex.RLock()
defer fake.metadataLifecycleMutex.RUnlock()
return len(fake.metadataLifecycleArgsForCall)
}
func (fake *Capabilities) MetadataLifecycleCalls(stub func() bool) {
fake.metadataLifecycleMutex.Lock()
defer fake.metadataLifecycleMutex.Unlock()
fake.MetadataLifecycleStub = stub
}
func (fake *Capabilities) MetadataLifecycleReturns(result1 bool) {
fake.metadataLifecycleMutex.Lock()
defer fake.metadataLifecycleMutex.Unlock()
fake.MetadataLifecycleStub = nil
fake.metadataLifecycleReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) MetadataLifecycleReturnsOnCall(i int, result1 bool) {
fake.metadataLifecycleMutex.Lock()
defer fake.metadataLifecycleMutex.Unlock()
fake.MetadataLifecycleStub = nil
if fake.metadataLifecycleReturnsOnCall == nil {
fake.metadataLifecycleReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.metadataLifecycleReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) PrivateChannelData() bool {
fake.privateChannelDataMutex.Lock()
ret, specificReturn := fake.privateChannelDataReturnsOnCall[len(fake.privateChannelDataArgsForCall)]
fake.privateChannelDataArgsForCall = append(fake.privateChannelDataArgsForCall, struct {
}{})
fake.recordInvocation("PrivateChannelData", []interface{}{})
fake.privateChannelDataMutex.Unlock()
if fake.PrivateChannelDataStub != nil {
return fake.PrivateChannelDataStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.privateChannelDataReturns
return fakeReturns.result1
}
func (fake *Capabilities) PrivateChannelDataCallCount() int {
fake.privateChannelDataMutex.RLock()
defer fake.privateChannelDataMutex.RUnlock()
return len(fake.privateChannelDataArgsForCall)
}
func (fake *Capabilities) PrivateChannelDataCalls(stub func() bool) {
fake.privateChannelDataMutex.Lock()
defer fake.privateChannelDataMutex.Unlock()
fake.PrivateChannelDataStub = stub
}
func (fake *Capabilities) PrivateChannelDataReturns(result1 bool) {
fake.privateChannelDataMutex.Lock()
defer fake.privateChannelDataMutex.Unlock()
fake.PrivateChannelDataStub = nil
fake.privateChannelDataReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) PrivateChannelDataReturnsOnCall(i int, result1 bool) {
fake.privateChannelDataMutex.Lock()
defer fake.privateChannelDataMutex.Unlock()
fake.PrivateChannelDataStub = nil
if fake.privateChannelDataReturnsOnCall == nil {
fake.privateChannelDataReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.privateChannelDataReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) StorePvtDataOfInvalidTx() bool {
fake.storePvtDataOfInvalidTxMutex.Lock()
ret, specificReturn := fake.storePvtDataOfInvalidTxReturnsOnCall[len(fake.storePvtDataOfInvalidTxArgsForCall)]
fake.storePvtDataOfInvalidTxArgsForCall = append(fake.storePvtDataOfInvalidTxArgsForCall, struct {
}{})
fake.recordInvocation("StorePvtDataOfInvalidTx", []interface{}{})
fake.storePvtDataOfInvalidTxMutex.Unlock()
if fake.StorePvtDataOfInvalidTxStub != nil {
return fake.StorePvtDataOfInvalidTxStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.storePvtDataOfInvalidTxReturns
return fakeReturns.result1
}
func (fake *Capabilities) StorePvtDataOfInvalidTxCallCount() int {
fake.storePvtDataOfInvalidTxMutex.RLock()
defer fake.storePvtDataOfInvalidTxMutex.RUnlock()
return len(fake.storePvtDataOfInvalidTxArgsForCall)
}
func (fake *Capabilities) StorePvtDataOfInvalidTxCalls(stub func() bool) {
fake.storePvtDataOfInvalidTxMutex.Lock()
defer fake.storePvtDataOfInvalidTxMutex.Unlock()
fake.StorePvtDataOfInvalidTxStub = stub
}
func (fake *Capabilities) StorePvtDataOfInvalidTxReturns(result1 bool) {
fake.storePvtDataOfInvalidTxMutex.Lock()
defer fake.storePvtDataOfInvalidTxMutex.Unlock()
fake.StorePvtDataOfInvalidTxStub = nil
fake.storePvtDataOfInvalidTxReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) StorePvtDataOfInvalidTxReturnsOnCall(i int, result1 bool) {
fake.storePvtDataOfInvalidTxMutex.Lock()
defer fake.storePvtDataOfInvalidTxMutex.Unlock()
fake.StorePvtDataOfInvalidTxStub = nil
if fake.storePvtDataOfInvalidTxReturnsOnCall == nil {
fake.storePvtDataOfInvalidTxReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.storePvtDataOfInvalidTxReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) Supported() error {
fake.supportedMutex.Lock()
ret, specificReturn := fake.supportedReturnsOnCall[len(fake.supportedArgsForCall)]
fake.supportedArgsForCall = append(fake.supportedArgsForCall, struct {
}{})
fake.recordInvocation("Supported", []interface{}{})
fake.supportedMutex.Unlock()
if fake.SupportedStub != nil {
return fake.SupportedStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.supportedReturns
return fakeReturns.result1
}
func (fake *Capabilities) SupportedCallCount() int {
fake.supportedMutex.RLock()
defer fake.supportedMutex.RUnlock()
return len(fake.supportedArgsForCall)
}
func (fake *Capabilities) SupportedCalls(stub func() error) {
fake.supportedMutex.Lock()
defer fake.supportedMutex.Unlock()
fake.SupportedStub = stub
}
func (fake *Capabilities) SupportedReturns(result1 error) {
fake.supportedMutex.Lock()
defer fake.supportedMutex.Unlock()
fake.SupportedStub = nil
fake.supportedReturns = struct {
result1 error
}{result1}
}
func (fake *Capabilities) SupportedReturnsOnCall(i int, result1 error) {
fake.supportedMutex.Lock()
defer fake.supportedMutex.Unlock()
fake.SupportedStub = nil
if fake.supportedReturnsOnCall == nil {
fake.supportedReturnsOnCall = make(map[int]struct {
result1 error
})
}
fake.supportedReturnsOnCall[i] = struct {
result1 error
}{result1}
}
func (fake *Capabilities) V1_1Validation() bool {
fake.v1_1ValidationMutex.Lock()
ret, specificReturn := fake.v1_1ValidationReturnsOnCall[len(fake.v1_1ValidationArgsForCall)]
fake.v1_1ValidationArgsForCall = append(fake.v1_1ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V1_1Validation", []interface{}{})
fake.v1_1ValidationMutex.Unlock()
if fake.V1_1ValidationStub != nil {
return fake.V1_1ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v1_1ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V1_1ValidationCallCount() int {
fake.v1_1ValidationMutex.RLock()
defer fake.v1_1ValidationMutex.RUnlock()
return len(fake.v1_1ValidationArgsForCall)
}
func (fake *Capabilities) V1_1ValidationCalls(stub func() bool) {
fake.v1_1ValidationMutex.Lock()
defer fake.v1_1ValidationMutex.Unlock()
fake.V1_1ValidationStub = stub
}
func (fake *Capabilities) V1_1ValidationReturns(result1 bool) {
fake.v1_1ValidationMutex.Lock()
defer fake.v1_1ValidationMutex.Unlock()
fake.V1_1ValidationStub = nil
fake.v1_1ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_1ValidationReturnsOnCall(i int, result1 bool) {
fake.v1_1ValidationMutex.Lock()
defer fake.v1_1ValidationMutex.Unlock()
fake.V1_1ValidationStub = nil
if fake.v1_1ValidationReturnsOnCall == nil {
fake.v1_1ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v1_1ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_2Validation() bool {
fake.v1_2ValidationMutex.Lock()
ret, specificReturn := fake.v1_2ValidationReturnsOnCall[len(fake.v1_2ValidationArgsForCall)]
fake.v1_2ValidationArgsForCall = append(fake.v1_2ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V1_2Validation", []interface{}{})
fake.v1_2ValidationMutex.Unlock()
if fake.V1_2ValidationStub != nil {
return fake.V1_2ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v1_2ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V1_2ValidationCallCount() int {
fake.v1_2ValidationMutex.RLock()
defer fake.v1_2ValidationMutex.RUnlock()
return len(fake.v1_2ValidationArgsForCall)
}
func (fake *Capabilities) V1_2ValidationCalls(stub func() bool) {
fake.v1_2ValidationMutex.Lock()
defer fake.v1_2ValidationMutex.Unlock()
fake.V1_2ValidationStub = stub
}
func (fake *Capabilities) V1_2ValidationReturns(result1 bool) {
fake.v1_2ValidationMutex.Lock()
defer fake.v1_2ValidationMutex.Unlock()
fake.V1_2ValidationStub = nil
fake.v1_2ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_2ValidationReturnsOnCall(i int, result1 bool) {
fake.v1_2ValidationMutex.Lock()
defer fake.v1_2ValidationMutex.Unlock()
fake.V1_2ValidationStub = nil
if fake.v1_2ValidationReturnsOnCall == nil {
fake.v1_2ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v1_2ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_3Validation() bool {
fake.v1_3ValidationMutex.Lock()
ret, specificReturn := fake.v1_3ValidationReturnsOnCall[len(fake.v1_3ValidationArgsForCall)]
fake.v1_3ValidationArgsForCall = append(fake.v1_3ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V1_3Validation", []interface{}{})
fake.v1_3ValidationMutex.Unlock()
if fake.V1_3ValidationStub != nil {
return fake.V1_3ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v1_3ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V1_3ValidationCallCount() int {
fake.v1_3ValidationMutex.RLock()
defer fake.v1_3ValidationMutex.RUnlock()
return len(fake.v1_3ValidationArgsForCall)
}
func (fake *Capabilities) V1_3ValidationCalls(stub func() bool) {
fake.v1_3ValidationMutex.Lock()
defer fake.v1_3ValidationMutex.Unlock()
fake.V1_3ValidationStub = stub
}
func (fake *Capabilities) V1_3ValidationReturns(result1 bool) {
fake.v1_3ValidationMutex.Lock()
defer fake.v1_3ValidationMutex.Unlock()
fake.V1_3ValidationStub = nil
fake.v1_3ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V1_3ValidationReturnsOnCall(i int, result1 bool) {
fake.v1_3ValidationMutex.Lock()
defer fake.v1_3ValidationMutex.Unlock()
fake.V1_3ValidationStub = nil
if fake.v1_3ValidationReturnsOnCall == nil {
fake.v1_3ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v1_3ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V2_0Validation() bool {
fake.v2_0ValidationMutex.Lock()
ret, specificReturn := fake.v2_0ValidationReturnsOnCall[len(fake.v2_0ValidationArgsForCall)]
fake.v2_0ValidationArgsForCall = append(fake.v2_0ValidationArgsForCall, struct {
}{})
fake.recordInvocation("V2_0Validation", []interface{}{})
fake.v2_0ValidationMutex.Unlock()
if fake.V2_0ValidationStub != nil {
return fake.V2_0ValidationStub()
}
if specificReturn {
return ret.result1
}
fakeReturns := fake.v2_0ValidationReturns
return fakeReturns.result1
}
func (fake *Capabilities) V2_0ValidationCallCount() int {
fake.v2_0ValidationMutex.RLock()
defer fake.v2_0ValidationMutex.RUnlock()
return len(fake.v2_0ValidationArgsForCall)
}
func (fake *Capabilities) V2_0ValidationCalls(stub func() bool) {
fake.v2_0ValidationMutex.Lock()
defer fake.v2_0ValidationMutex.Unlock()
fake.V2_0ValidationStub = stub
}
func (fake *Capabilities) V2_0ValidationReturns(result1 bool) {
fake.v2_0ValidationMutex.Lock()
defer fake.v2_0ValidationMutex.Unlock()
fake.V2_0ValidationStub = nil
fake.v2_0ValidationReturns = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) V2_0ValidationReturnsOnCall(i int, result1 bool) {
fake.v2_0ValidationMutex.Lock()
defer fake.v2_0ValidationMutex.Unlock()
fake.V2_0ValidationStub = nil
if fake.v2_0ValidationReturnsOnCall == nil {
fake.v2_0ValidationReturnsOnCall = make(map[int]struct {
result1 bool
})
}
fake.v2_0ValidationReturnsOnCall[i] = struct {
result1 bool
}{result1}
}
func (fake *Capabilities) Invocations() map[string][][]interface{} {
fake.invocationsMutex.RLock()
defer fake.invocationsMutex.RUnlock()
fake.aCLsMutex.RLock()
defer fake.aCLsMutex.RUnlock()
fake.collectionUpgradeMutex.RLock()
defer fake.collectionUpgradeMutex.RUnlock()
fake.forbidDuplicateTXIdInBlockMutex.RLock()
defer fake.forbidDuplicateTXIdInBlockMutex.RUnlock()
fake.keyLevelEndorsementMutex.RLock()
defer fake.keyLevelEndorsementMutex.RUnlock()
fake.metadataLifecycleMutex.RLock()
defer fake.metadataLifecycleMutex.RUnlock()
fake.privateChannelDataMutex.RLock()
defer fake.privateChannelDataMutex.RUnlock()
fake.storePvtDataOfInvalidTxMutex.RLock()
defer fake.storePvtDataOfInvalidTxMutex.RUnlock()
fake.supportedMutex.RLock()
defer fake.supportedMutex.RUnlock()
fake.v1_1ValidationMutex.RLock()
defer fake.v1_1ValidationMutex.RUnlock()
fake.v1_2ValidationMutex.RLock()
defer fake.v1_2ValidationMutex.RUnlock()
fake.v1_3ValidationMutex.RLock()
defer fake.v1_3ValidationMutex.RUnlock()
fake.v2_0ValidationMutex.RLock()
defer fake.v2_0ValidationMutex.RUnlock()
copiedInvocations := map[string][][]interface{}{}
for key, value := range fake.invocations {
copiedInvocations[key] = value
}
return copiedInvocations
}
func (fake *Capabilities) recordInvocation(key string, args []interface{}) {
fake.invocationsMutex.Lock()
defer fake.invocationsMutex.Unlock()
if fake.invocations == nil {
fake.invocations = map[string][][]interface{}{}
}
if fake.invocations[key] == nil {
fake.invocations[key] = [][]interface{}{}
}
fake.invocations[key] = append(fake.invocations[key], args)
}