github.com/anjalikarhana/fabric@v2.1.1+incompatible/core/handlers/validation/builtin/v20/mocks/capabilities.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package mocks
     3  
     4  import (
     5  	"sync"
     6  )
     7  
     8  type Capabilities struct {
     9  	ACLsStub        func() bool
    10  	aCLsMutex       sync.RWMutex
    11  	aCLsArgsForCall []struct {
    12  	}
    13  	aCLsReturns struct {
    14  		result1 bool
    15  	}
    16  	aCLsReturnsOnCall map[int]struct {
    17  		result1 bool
    18  	}
    19  	CollectionUpgradeStub        func() bool
    20  	collectionUpgradeMutex       sync.RWMutex
    21  	collectionUpgradeArgsForCall []struct {
    22  	}
    23  	collectionUpgradeReturns struct {
    24  		result1 bool
    25  	}
    26  	collectionUpgradeReturnsOnCall map[int]struct {
    27  		result1 bool
    28  	}
    29  	ForbidDuplicateTXIdInBlockStub        func() bool
    30  	forbidDuplicateTXIdInBlockMutex       sync.RWMutex
    31  	forbidDuplicateTXIdInBlockArgsForCall []struct {
    32  	}
    33  	forbidDuplicateTXIdInBlockReturns struct {
    34  		result1 bool
    35  	}
    36  	forbidDuplicateTXIdInBlockReturnsOnCall map[int]struct {
    37  		result1 bool
    38  	}
    39  	KeyLevelEndorsementStub        func() bool
    40  	keyLevelEndorsementMutex       sync.RWMutex
    41  	keyLevelEndorsementArgsForCall []struct {
    42  	}
    43  	keyLevelEndorsementReturns struct {
    44  		result1 bool
    45  	}
    46  	keyLevelEndorsementReturnsOnCall map[int]struct {
    47  		result1 bool
    48  	}
    49  	MetadataLifecycleStub        func() bool
    50  	metadataLifecycleMutex       sync.RWMutex
    51  	metadataLifecycleArgsForCall []struct {
    52  	}
    53  	metadataLifecycleReturns struct {
    54  		result1 bool
    55  	}
    56  	metadataLifecycleReturnsOnCall map[int]struct {
    57  		result1 bool
    58  	}
    59  	PrivateChannelDataStub        func() bool
    60  	privateChannelDataMutex       sync.RWMutex
    61  	privateChannelDataArgsForCall []struct {
    62  	}
    63  	privateChannelDataReturns struct {
    64  		result1 bool
    65  	}
    66  	privateChannelDataReturnsOnCall map[int]struct {
    67  		result1 bool
    68  	}
    69  	StorePvtDataOfInvalidTxStub        func() bool
    70  	storePvtDataOfInvalidTxMutex       sync.RWMutex
    71  	storePvtDataOfInvalidTxArgsForCall []struct {
    72  	}
    73  	storePvtDataOfInvalidTxReturns struct {
    74  		result1 bool
    75  	}
    76  	storePvtDataOfInvalidTxReturnsOnCall map[int]struct {
    77  		result1 bool
    78  	}
    79  	SupportedStub        func() error
    80  	supportedMutex       sync.RWMutex
    81  	supportedArgsForCall []struct {
    82  	}
    83  	supportedReturns struct {
    84  		result1 error
    85  	}
    86  	supportedReturnsOnCall map[int]struct {
    87  		result1 error
    88  	}
    89  	V1_1ValidationStub        func() bool
    90  	v1_1ValidationMutex       sync.RWMutex
    91  	v1_1ValidationArgsForCall []struct {
    92  	}
    93  	v1_1ValidationReturns struct {
    94  		result1 bool
    95  	}
    96  	v1_1ValidationReturnsOnCall map[int]struct {
    97  		result1 bool
    98  	}
    99  	V1_2ValidationStub        func() bool
   100  	v1_2ValidationMutex       sync.RWMutex
   101  	v1_2ValidationArgsForCall []struct {
   102  	}
   103  	v1_2ValidationReturns struct {
   104  		result1 bool
   105  	}
   106  	v1_2ValidationReturnsOnCall map[int]struct {
   107  		result1 bool
   108  	}
   109  	V1_3ValidationStub        func() bool
   110  	v1_3ValidationMutex       sync.RWMutex
   111  	v1_3ValidationArgsForCall []struct {
   112  	}
   113  	v1_3ValidationReturns struct {
   114  		result1 bool
   115  	}
   116  	v1_3ValidationReturnsOnCall map[int]struct {
   117  		result1 bool
   118  	}
   119  	V2_0ValidationStub        func() bool
   120  	v2_0ValidationMutex       sync.RWMutex
   121  	v2_0ValidationArgsForCall []struct {
   122  	}
   123  	v2_0ValidationReturns struct {
   124  		result1 bool
   125  	}
   126  	v2_0ValidationReturnsOnCall map[int]struct {
   127  		result1 bool
   128  	}
   129  	invocations      map[string][][]interface{}
   130  	invocationsMutex sync.RWMutex
   131  }
   132  
   133  func (fake *Capabilities) ACLs() bool {
   134  	fake.aCLsMutex.Lock()
   135  	ret, specificReturn := fake.aCLsReturnsOnCall[len(fake.aCLsArgsForCall)]
   136  	fake.aCLsArgsForCall = append(fake.aCLsArgsForCall, struct {
   137  	}{})
   138  	fake.recordInvocation("ACLs", []interface{}{})
   139  	fake.aCLsMutex.Unlock()
   140  	if fake.ACLsStub != nil {
   141  		return fake.ACLsStub()
   142  	}
   143  	if specificReturn {
   144  		return ret.result1
   145  	}
   146  	fakeReturns := fake.aCLsReturns
   147  	return fakeReturns.result1
   148  }
   149  
   150  func (fake *Capabilities) ACLsCallCount() int {
   151  	fake.aCLsMutex.RLock()
   152  	defer fake.aCLsMutex.RUnlock()
   153  	return len(fake.aCLsArgsForCall)
   154  }
   155  
   156  func (fake *Capabilities) ACLsCalls(stub func() bool) {
   157  	fake.aCLsMutex.Lock()
   158  	defer fake.aCLsMutex.Unlock()
   159  	fake.ACLsStub = stub
   160  }
   161  
   162  func (fake *Capabilities) ACLsReturns(result1 bool) {
   163  	fake.aCLsMutex.Lock()
   164  	defer fake.aCLsMutex.Unlock()
   165  	fake.ACLsStub = nil
   166  	fake.aCLsReturns = struct {
   167  		result1 bool
   168  	}{result1}
   169  }
   170  
   171  func (fake *Capabilities) ACLsReturnsOnCall(i int, result1 bool) {
   172  	fake.aCLsMutex.Lock()
   173  	defer fake.aCLsMutex.Unlock()
   174  	fake.ACLsStub = nil
   175  	if fake.aCLsReturnsOnCall == nil {
   176  		fake.aCLsReturnsOnCall = make(map[int]struct {
   177  			result1 bool
   178  		})
   179  	}
   180  	fake.aCLsReturnsOnCall[i] = struct {
   181  		result1 bool
   182  	}{result1}
   183  }
   184  
   185  func (fake *Capabilities) CollectionUpgrade() bool {
   186  	fake.collectionUpgradeMutex.Lock()
   187  	ret, specificReturn := fake.collectionUpgradeReturnsOnCall[len(fake.collectionUpgradeArgsForCall)]
   188  	fake.collectionUpgradeArgsForCall = append(fake.collectionUpgradeArgsForCall, struct {
   189  	}{})
   190  	fake.recordInvocation("CollectionUpgrade", []interface{}{})
   191  	fake.collectionUpgradeMutex.Unlock()
   192  	if fake.CollectionUpgradeStub != nil {
   193  		return fake.CollectionUpgradeStub()
   194  	}
   195  	if specificReturn {
   196  		return ret.result1
   197  	}
   198  	fakeReturns := fake.collectionUpgradeReturns
   199  	return fakeReturns.result1
   200  }
   201  
   202  func (fake *Capabilities) CollectionUpgradeCallCount() int {
   203  	fake.collectionUpgradeMutex.RLock()
   204  	defer fake.collectionUpgradeMutex.RUnlock()
   205  	return len(fake.collectionUpgradeArgsForCall)
   206  }
   207  
   208  func (fake *Capabilities) CollectionUpgradeCalls(stub func() bool) {
   209  	fake.collectionUpgradeMutex.Lock()
   210  	defer fake.collectionUpgradeMutex.Unlock()
   211  	fake.CollectionUpgradeStub = stub
   212  }
   213  
   214  func (fake *Capabilities) CollectionUpgradeReturns(result1 bool) {
   215  	fake.collectionUpgradeMutex.Lock()
   216  	defer fake.collectionUpgradeMutex.Unlock()
   217  	fake.CollectionUpgradeStub = nil
   218  	fake.collectionUpgradeReturns = struct {
   219  		result1 bool
   220  	}{result1}
   221  }
   222  
   223  func (fake *Capabilities) CollectionUpgradeReturnsOnCall(i int, result1 bool) {
   224  	fake.collectionUpgradeMutex.Lock()
   225  	defer fake.collectionUpgradeMutex.Unlock()
   226  	fake.CollectionUpgradeStub = nil
   227  	if fake.collectionUpgradeReturnsOnCall == nil {
   228  		fake.collectionUpgradeReturnsOnCall = make(map[int]struct {
   229  			result1 bool
   230  		})
   231  	}
   232  	fake.collectionUpgradeReturnsOnCall[i] = struct {
   233  		result1 bool
   234  	}{result1}
   235  }
   236  
   237  func (fake *Capabilities) ForbidDuplicateTXIdInBlock() bool {
   238  	fake.forbidDuplicateTXIdInBlockMutex.Lock()
   239  	ret, specificReturn := fake.forbidDuplicateTXIdInBlockReturnsOnCall[len(fake.forbidDuplicateTXIdInBlockArgsForCall)]
   240  	fake.forbidDuplicateTXIdInBlockArgsForCall = append(fake.forbidDuplicateTXIdInBlockArgsForCall, struct {
   241  	}{})
   242  	fake.recordInvocation("ForbidDuplicateTXIdInBlock", []interface{}{})
   243  	fake.forbidDuplicateTXIdInBlockMutex.Unlock()
   244  	if fake.ForbidDuplicateTXIdInBlockStub != nil {
   245  		return fake.ForbidDuplicateTXIdInBlockStub()
   246  	}
   247  	if specificReturn {
   248  		return ret.result1
   249  	}
   250  	fakeReturns := fake.forbidDuplicateTXIdInBlockReturns
   251  	return fakeReturns.result1
   252  }
   253  
   254  func (fake *Capabilities) ForbidDuplicateTXIdInBlockCallCount() int {
   255  	fake.forbidDuplicateTXIdInBlockMutex.RLock()
   256  	defer fake.forbidDuplicateTXIdInBlockMutex.RUnlock()
   257  	return len(fake.forbidDuplicateTXIdInBlockArgsForCall)
   258  }
   259  
   260  func (fake *Capabilities) ForbidDuplicateTXIdInBlockCalls(stub func() bool) {
   261  	fake.forbidDuplicateTXIdInBlockMutex.Lock()
   262  	defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
   263  	fake.ForbidDuplicateTXIdInBlockStub = stub
   264  }
   265  
   266  func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturns(result1 bool) {
   267  	fake.forbidDuplicateTXIdInBlockMutex.Lock()
   268  	defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
   269  	fake.ForbidDuplicateTXIdInBlockStub = nil
   270  	fake.forbidDuplicateTXIdInBlockReturns = struct {
   271  		result1 bool
   272  	}{result1}
   273  }
   274  
   275  func (fake *Capabilities) ForbidDuplicateTXIdInBlockReturnsOnCall(i int, result1 bool) {
   276  	fake.forbidDuplicateTXIdInBlockMutex.Lock()
   277  	defer fake.forbidDuplicateTXIdInBlockMutex.Unlock()
   278  	fake.ForbidDuplicateTXIdInBlockStub = nil
   279  	if fake.forbidDuplicateTXIdInBlockReturnsOnCall == nil {
   280  		fake.forbidDuplicateTXIdInBlockReturnsOnCall = make(map[int]struct {
   281  			result1 bool
   282  		})
   283  	}
   284  	fake.forbidDuplicateTXIdInBlockReturnsOnCall[i] = struct {
   285  		result1 bool
   286  	}{result1}
   287  }
   288  
   289  func (fake *Capabilities) KeyLevelEndorsement() bool {
   290  	fake.keyLevelEndorsementMutex.Lock()
   291  	ret, specificReturn := fake.keyLevelEndorsementReturnsOnCall[len(fake.keyLevelEndorsementArgsForCall)]
   292  	fake.keyLevelEndorsementArgsForCall = append(fake.keyLevelEndorsementArgsForCall, struct {
   293  	}{})
   294  	fake.recordInvocation("KeyLevelEndorsement", []interface{}{})
   295  	fake.keyLevelEndorsementMutex.Unlock()
   296  	if fake.KeyLevelEndorsementStub != nil {
   297  		return fake.KeyLevelEndorsementStub()
   298  	}
   299  	if specificReturn {
   300  		return ret.result1
   301  	}
   302  	fakeReturns := fake.keyLevelEndorsementReturns
   303  	return fakeReturns.result1
   304  }
   305  
   306  func (fake *Capabilities) KeyLevelEndorsementCallCount() int {
   307  	fake.keyLevelEndorsementMutex.RLock()
   308  	defer fake.keyLevelEndorsementMutex.RUnlock()
   309  	return len(fake.keyLevelEndorsementArgsForCall)
   310  }
   311  
   312  func (fake *Capabilities) KeyLevelEndorsementCalls(stub func() bool) {
   313  	fake.keyLevelEndorsementMutex.Lock()
   314  	defer fake.keyLevelEndorsementMutex.Unlock()
   315  	fake.KeyLevelEndorsementStub = stub
   316  }
   317  
   318  func (fake *Capabilities) KeyLevelEndorsementReturns(result1 bool) {
   319  	fake.keyLevelEndorsementMutex.Lock()
   320  	defer fake.keyLevelEndorsementMutex.Unlock()
   321  	fake.KeyLevelEndorsementStub = nil
   322  	fake.keyLevelEndorsementReturns = struct {
   323  		result1 bool
   324  	}{result1}
   325  }
   326  
   327  func (fake *Capabilities) KeyLevelEndorsementReturnsOnCall(i int, result1 bool) {
   328  	fake.keyLevelEndorsementMutex.Lock()
   329  	defer fake.keyLevelEndorsementMutex.Unlock()
   330  	fake.KeyLevelEndorsementStub = nil
   331  	if fake.keyLevelEndorsementReturnsOnCall == nil {
   332  		fake.keyLevelEndorsementReturnsOnCall = make(map[int]struct {
   333  			result1 bool
   334  		})
   335  	}
   336  	fake.keyLevelEndorsementReturnsOnCall[i] = struct {
   337  		result1 bool
   338  	}{result1}
   339  }
   340  
   341  func (fake *Capabilities) MetadataLifecycle() bool {
   342  	fake.metadataLifecycleMutex.Lock()
   343  	ret, specificReturn := fake.metadataLifecycleReturnsOnCall[len(fake.metadataLifecycleArgsForCall)]
   344  	fake.metadataLifecycleArgsForCall = append(fake.metadataLifecycleArgsForCall, struct {
   345  	}{})
   346  	fake.recordInvocation("MetadataLifecycle", []interface{}{})
   347  	fake.metadataLifecycleMutex.Unlock()
   348  	if fake.MetadataLifecycleStub != nil {
   349  		return fake.MetadataLifecycleStub()
   350  	}
   351  	if specificReturn {
   352  		return ret.result1
   353  	}
   354  	fakeReturns := fake.metadataLifecycleReturns
   355  	return fakeReturns.result1
   356  }
   357  
   358  func (fake *Capabilities) MetadataLifecycleCallCount() int {
   359  	fake.metadataLifecycleMutex.RLock()
   360  	defer fake.metadataLifecycleMutex.RUnlock()
   361  	return len(fake.metadataLifecycleArgsForCall)
   362  }
   363  
   364  func (fake *Capabilities) MetadataLifecycleCalls(stub func() bool) {
   365  	fake.metadataLifecycleMutex.Lock()
   366  	defer fake.metadataLifecycleMutex.Unlock()
   367  	fake.MetadataLifecycleStub = stub
   368  }
   369  
   370  func (fake *Capabilities) MetadataLifecycleReturns(result1 bool) {
   371  	fake.metadataLifecycleMutex.Lock()
   372  	defer fake.metadataLifecycleMutex.Unlock()
   373  	fake.MetadataLifecycleStub = nil
   374  	fake.metadataLifecycleReturns = struct {
   375  		result1 bool
   376  	}{result1}
   377  }
   378  
   379  func (fake *Capabilities) MetadataLifecycleReturnsOnCall(i int, result1 bool) {
   380  	fake.metadataLifecycleMutex.Lock()
   381  	defer fake.metadataLifecycleMutex.Unlock()
   382  	fake.MetadataLifecycleStub = nil
   383  	if fake.metadataLifecycleReturnsOnCall == nil {
   384  		fake.metadataLifecycleReturnsOnCall = make(map[int]struct {
   385  			result1 bool
   386  		})
   387  	}
   388  	fake.metadataLifecycleReturnsOnCall[i] = struct {
   389  		result1 bool
   390  	}{result1}
   391  }
   392  
   393  func (fake *Capabilities) PrivateChannelData() bool {
   394  	fake.privateChannelDataMutex.Lock()
   395  	ret, specificReturn := fake.privateChannelDataReturnsOnCall[len(fake.privateChannelDataArgsForCall)]
   396  	fake.privateChannelDataArgsForCall = append(fake.privateChannelDataArgsForCall, struct {
   397  	}{})
   398  	fake.recordInvocation("PrivateChannelData", []interface{}{})
   399  	fake.privateChannelDataMutex.Unlock()
   400  	if fake.PrivateChannelDataStub != nil {
   401  		return fake.PrivateChannelDataStub()
   402  	}
   403  	if specificReturn {
   404  		return ret.result1
   405  	}
   406  	fakeReturns := fake.privateChannelDataReturns
   407  	return fakeReturns.result1
   408  }
   409  
   410  func (fake *Capabilities) PrivateChannelDataCallCount() int {
   411  	fake.privateChannelDataMutex.RLock()
   412  	defer fake.privateChannelDataMutex.RUnlock()
   413  	return len(fake.privateChannelDataArgsForCall)
   414  }
   415  
   416  func (fake *Capabilities) PrivateChannelDataCalls(stub func() bool) {
   417  	fake.privateChannelDataMutex.Lock()
   418  	defer fake.privateChannelDataMutex.Unlock()
   419  	fake.PrivateChannelDataStub = stub
   420  }
   421  
   422  func (fake *Capabilities) PrivateChannelDataReturns(result1 bool) {
   423  	fake.privateChannelDataMutex.Lock()
   424  	defer fake.privateChannelDataMutex.Unlock()
   425  	fake.PrivateChannelDataStub = nil
   426  	fake.privateChannelDataReturns = struct {
   427  		result1 bool
   428  	}{result1}
   429  }
   430  
   431  func (fake *Capabilities) PrivateChannelDataReturnsOnCall(i int, result1 bool) {
   432  	fake.privateChannelDataMutex.Lock()
   433  	defer fake.privateChannelDataMutex.Unlock()
   434  	fake.PrivateChannelDataStub = nil
   435  	if fake.privateChannelDataReturnsOnCall == nil {
   436  		fake.privateChannelDataReturnsOnCall = make(map[int]struct {
   437  			result1 bool
   438  		})
   439  	}
   440  	fake.privateChannelDataReturnsOnCall[i] = struct {
   441  		result1 bool
   442  	}{result1}
   443  }
   444  
   445  func (fake *Capabilities) StorePvtDataOfInvalidTx() bool {
   446  	fake.storePvtDataOfInvalidTxMutex.Lock()
   447  	ret, specificReturn := fake.storePvtDataOfInvalidTxReturnsOnCall[len(fake.storePvtDataOfInvalidTxArgsForCall)]
   448  	fake.storePvtDataOfInvalidTxArgsForCall = append(fake.storePvtDataOfInvalidTxArgsForCall, struct {
   449  	}{})
   450  	fake.recordInvocation("StorePvtDataOfInvalidTx", []interface{}{})
   451  	fake.storePvtDataOfInvalidTxMutex.Unlock()
   452  	if fake.StorePvtDataOfInvalidTxStub != nil {
   453  		return fake.StorePvtDataOfInvalidTxStub()
   454  	}
   455  	if specificReturn {
   456  		return ret.result1
   457  	}
   458  	fakeReturns := fake.storePvtDataOfInvalidTxReturns
   459  	return fakeReturns.result1
   460  }
   461  
   462  func (fake *Capabilities) StorePvtDataOfInvalidTxCallCount() int {
   463  	fake.storePvtDataOfInvalidTxMutex.RLock()
   464  	defer fake.storePvtDataOfInvalidTxMutex.RUnlock()
   465  	return len(fake.storePvtDataOfInvalidTxArgsForCall)
   466  }
   467  
   468  func (fake *Capabilities) StorePvtDataOfInvalidTxCalls(stub func() bool) {
   469  	fake.storePvtDataOfInvalidTxMutex.Lock()
   470  	defer fake.storePvtDataOfInvalidTxMutex.Unlock()
   471  	fake.StorePvtDataOfInvalidTxStub = stub
   472  }
   473  
   474  func (fake *Capabilities) StorePvtDataOfInvalidTxReturns(result1 bool) {
   475  	fake.storePvtDataOfInvalidTxMutex.Lock()
   476  	defer fake.storePvtDataOfInvalidTxMutex.Unlock()
   477  	fake.StorePvtDataOfInvalidTxStub = nil
   478  	fake.storePvtDataOfInvalidTxReturns = struct {
   479  		result1 bool
   480  	}{result1}
   481  }
   482  
   483  func (fake *Capabilities) StorePvtDataOfInvalidTxReturnsOnCall(i int, result1 bool) {
   484  	fake.storePvtDataOfInvalidTxMutex.Lock()
   485  	defer fake.storePvtDataOfInvalidTxMutex.Unlock()
   486  	fake.StorePvtDataOfInvalidTxStub = nil
   487  	if fake.storePvtDataOfInvalidTxReturnsOnCall == nil {
   488  		fake.storePvtDataOfInvalidTxReturnsOnCall = make(map[int]struct {
   489  			result1 bool
   490  		})
   491  	}
   492  	fake.storePvtDataOfInvalidTxReturnsOnCall[i] = struct {
   493  		result1 bool
   494  	}{result1}
   495  }
   496  
   497  func (fake *Capabilities) Supported() error {
   498  	fake.supportedMutex.Lock()
   499  	ret, specificReturn := fake.supportedReturnsOnCall[len(fake.supportedArgsForCall)]
   500  	fake.supportedArgsForCall = append(fake.supportedArgsForCall, struct {
   501  	}{})
   502  	fake.recordInvocation("Supported", []interface{}{})
   503  	fake.supportedMutex.Unlock()
   504  	if fake.SupportedStub != nil {
   505  		return fake.SupportedStub()
   506  	}
   507  	if specificReturn {
   508  		return ret.result1
   509  	}
   510  	fakeReturns := fake.supportedReturns
   511  	return fakeReturns.result1
   512  }
   513  
   514  func (fake *Capabilities) SupportedCallCount() int {
   515  	fake.supportedMutex.RLock()
   516  	defer fake.supportedMutex.RUnlock()
   517  	return len(fake.supportedArgsForCall)
   518  }
   519  
   520  func (fake *Capabilities) SupportedCalls(stub func() error) {
   521  	fake.supportedMutex.Lock()
   522  	defer fake.supportedMutex.Unlock()
   523  	fake.SupportedStub = stub
   524  }
   525  
   526  func (fake *Capabilities) SupportedReturns(result1 error) {
   527  	fake.supportedMutex.Lock()
   528  	defer fake.supportedMutex.Unlock()
   529  	fake.SupportedStub = nil
   530  	fake.supportedReturns = struct {
   531  		result1 error
   532  	}{result1}
   533  }
   534  
   535  func (fake *Capabilities) SupportedReturnsOnCall(i int, result1 error) {
   536  	fake.supportedMutex.Lock()
   537  	defer fake.supportedMutex.Unlock()
   538  	fake.SupportedStub = nil
   539  	if fake.supportedReturnsOnCall == nil {
   540  		fake.supportedReturnsOnCall = make(map[int]struct {
   541  			result1 error
   542  		})
   543  	}
   544  	fake.supportedReturnsOnCall[i] = struct {
   545  		result1 error
   546  	}{result1}
   547  }
   548  
   549  func (fake *Capabilities) V1_1Validation() bool {
   550  	fake.v1_1ValidationMutex.Lock()
   551  	ret, specificReturn := fake.v1_1ValidationReturnsOnCall[len(fake.v1_1ValidationArgsForCall)]
   552  	fake.v1_1ValidationArgsForCall = append(fake.v1_1ValidationArgsForCall, struct {
   553  	}{})
   554  	fake.recordInvocation("V1_1Validation", []interface{}{})
   555  	fake.v1_1ValidationMutex.Unlock()
   556  	if fake.V1_1ValidationStub != nil {
   557  		return fake.V1_1ValidationStub()
   558  	}
   559  	if specificReturn {
   560  		return ret.result1
   561  	}
   562  	fakeReturns := fake.v1_1ValidationReturns
   563  	return fakeReturns.result1
   564  }
   565  
   566  func (fake *Capabilities) V1_1ValidationCallCount() int {
   567  	fake.v1_1ValidationMutex.RLock()
   568  	defer fake.v1_1ValidationMutex.RUnlock()
   569  	return len(fake.v1_1ValidationArgsForCall)
   570  }
   571  
   572  func (fake *Capabilities) V1_1ValidationCalls(stub func() bool) {
   573  	fake.v1_1ValidationMutex.Lock()
   574  	defer fake.v1_1ValidationMutex.Unlock()
   575  	fake.V1_1ValidationStub = stub
   576  }
   577  
   578  func (fake *Capabilities) V1_1ValidationReturns(result1 bool) {
   579  	fake.v1_1ValidationMutex.Lock()
   580  	defer fake.v1_1ValidationMutex.Unlock()
   581  	fake.V1_1ValidationStub = nil
   582  	fake.v1_1ValidationReturns = struct {
   583  		result1 bool
   584  	}{result1}
   585  }
   586  
   587  func (fake *Capabilities) V1_1ValidationReturnsOnCall(i int, result1 bool) {
   588  	fake.v1_1ValidationMutex.Lock()
   589  	defer fake.v1_1ValidationMutex.Unlock()
   590  	fake.V1_1ValidationStub = nil
   591  	if fake.v1_1ValidationReturnsOnCall == nil {
   592  		fake.v1_1ValidationReturnsOnCall = make(map[int]struct {
   593  			result1 bool
   594  		})
   595  	}
   596  	fake.v1_1ValidationReturnsOnCall[i] = struct {
   597  		result1 bool
   598  	}{result1}
   599  }
   600  
   601  func (fake *Capabilities) V1_2Validation() bool {
   602  	fake.v1_2ValidationMutex.Lock()
   603  	ret, specificReturn := fake.v1_2ValidationReturnsOnCall[len(fake.v1_2ValidationArgsForCall)]
   604  	fake.v1_2ValidationArgsForCall = append(fake.v1_2ValidationArgsForCall, struct {
   605  	}{})
   606  	fake.recordInvocation("V1_2Validation", []interface{}{})
   607  	fake.v1_2ValidationMutex.Unlock()
   608  	if fake.V1_2ValidationStub != nil {
   609  		return fake.V1_2ValidationStub()
   610  	}
   611  	if specificReturn {
   612  		return ret.result1
   613  	}
   614  	fakeReturns := fake.v1_2ValidationReturns
   615  	return fakeReturns.result1
   616  }
   617  
   618  func (fake *Capabilities) V1_2ValidationCallCount() int {
   619  	fake.v1_2ValidationMutex.RLock()
   620  	defer fake.v1_2ValidationMutex.RUnlock()
   621  	return len(fake.v1_2ValidationArgsForCall)
   622  }
   623  
   624  func (fake *Capabilities) V1_2ValidationCalls(stub func() bool) {
   625  	fake.v1_2ValidationMutex.Lock()
   626  	defer fake.v1_2ValidationMutex.Unlock()
   627  	fake.V1_2ValidationStub = stub
   628  }
   629  
   630  func (fake *Capabilities) V1_2ValidationReturns(result1 bool) {
   631  	fake.v1_2ValidationMutex.Lock()
   632  	defer fake.v1_2ValidationMutex.Unlock()
   633  	fake.V1_2ValidationStub = nil
   634  	fake.v1_2ValidationReturns = struct {
   635  		result1 bool
   636  	}{result1}
   637  }
   638  
   639  func (fake *Capabilities) V1_2ValidationReturnsOnCall(i int, result1 bool) {
   640  	fake.v1_2ValidationMutex.Lock()
   641  	defer fake.v1_2ValidationMutex.Unlock()
   642  	fake.V1_2ValidationStub = nil
   643  	if fake.v1_2ValidationReturnsOnCall == nil {
   644  		fake.v1_2ValidationReturnsOnCall = make(map[int]struct {
   645  			result1 bool
   646  		})
   647  	}
   648  	fake.v1_2ValidationReturnsOnCall[i] = struct {
   649  		result1 bool
   650  	}{result1}
   651  }
   652  
   653  func (fake *Capabilities) V1_3Validation() bool {
   654  	fake.v1_3ValidationMutex.Lock()
   655  	ret, specificReturn := fake.v1_3ValidationReturnsOnCall[len(fake.v1_3ValidationArgsForCall)]
   656  	fake.v1_3ValidationArgsForCall = append(fake.v1_3ValidationArgsForCall, struct {
   657  	}{})
   658  	fake.recordInvocation("V1_3Validation", []interface{}{})
   659  	fake.v1_3ValidationMutex.Unlock()
   660  	if fake.V1_3ValidationStub != nil {
   661  		return fake.V1_3ValidationStub()
   662  	}
   663  	if specificReturn {
   664  		return ret.result1
   665  	}
   666  	fakeReturns := fake.v1_3ValidationReturns
   667  	return fakeReturns.result1
   668  }
   669  
   670  func (fake *Capabilities) V1_3ValidationCallCount() int {
   671  	fake.v1_3ValidationMutex.RLock()
   672  	defer fake.v1_3ValidationMutex.RUnlock()
   673  	return len(fake.v1_3ValidationArgsForCall)
   674  }
   675  
   676  func (fake *Capabilities) V1_3ValidationCalls(stub func() bool) {
   677  	fake.v1_3ValidationMutex.Lock()
   678  	defer fake.v1_3ValidationMutex.Unlock()
   679  	fake.V1_3ValidationStub = stub
   680  }
   681  
   682  func (fake *Capabilities) V1_3ValidationReturns(result1 bool) {
   683  	fake.v1_3ValidationMutex.Lock()
   684  	defer fake.v1_3ValidationMutex.Unlock()
   685  	fake.V1_3ValidationStub = nil
   686  	fake.v1_3ValidationReturns = struct {
   687  		result1 bool
   688  	}{result1}
   689  }
   690  
   691  func (fake *Capabilities) V1_3ValidationReturnsOnCall(i int, result1 bool) {
   692  	fake.v1_3ValidationMutex.Lock()
   693  	defer fake.v1_3ValidationMutex.Unlock()
   694  	fake.V1_3ValidationStub = nil
   695  	if fake.v1_3ValidationReturnsOnCall == nil {
   696  		fake.v1_3ValidationReturnsOnCall = make(map[int]struct {
   697  			result1 bool
   698  		})
   699  	}
   700  	fake.v1_3ValidationReturnsOnCall[i] = struct {
   701  		result1 bool
   702  	}{result1}
   703  }
   704  
   705  func (fake *Capabilities) V2_0Validation() bool {
   706  	fake.v2_0ValidationMutex.Lock()
   707  	ret, specificReturn := fake.v2_0ValidationReturnsOnCall[len(fake.v2_0ValidationArgsForCall)]
   708  	fake.v2_0ValidationArgsForCall = append(fake.v2_0ValidationArgsForCall, struct {
   709  	}{})
   710  	fake.recordInvocation("V2_0Validation", []interface{}{})
   711  	fake.v2_0ValidationMutex.Unlock()
   712  	if fake.V2_0ValidationStub != nil {
   713  		return fake.V2_0ValidationStub()
   714  	}
   715  	if specificReturn {
   716  		return ret.result1
   717  	}
   718  	fakeReturns := fake.v2_0ValidationReturns
   719  	return fakeReturns.result1
   720  }
   721  
   722  func (fake *Capabilities) V2_0ValidationCallCount() int {
   723  	fake.v2_0ValidationMutex.RLock()
   724  	defer fake.v2_0ValidationMutex.RUnlock()
   725  	return len(fake.v2_0ValidationArgsForCall)
   726  }
   727  
   728  func (fake *Capabilities) V2_0ValidationCalls(stub func() bool) {
   729  	fake.v2_0ValidationMutex.Lock()
   730  	defer fake.v2_0ValidationMutex.Unlock()
   731  	fake.V2_0ValidationStub = stub
   732  }
   733  
   734  func (fake *Capabilities) V2_0ValidationReturns(result1 bool) {
   735  	fake.v2_0ValidationMutex.Lock()
   736  	defer fake.v2_0ValidationMutex.Unlock()
   737  	fake.V2_0ValidationStub = nil
   738  	fake.v2_0ValidationReturns = struct {
   739  		result1 bool
   740  	}{result1}
   741  }
   742  
   743  func (fake *Capabilities) V2_0ValidationReturnsOnCall(i int, result1 bool) {
   744  	fake.v2_0ValidationMutex.Lock()
   745  	defer fake.v2_0ValidationMutex.Unlock()
   746  	fake.V2_0ValidationStub = nil
   747  	if fake.v2_0ValidationReturnsOnCall == nil {
   748  		fake.v2_0ValidationReturnsOnCall = make(map[int]struct {
   749  			result1 bool
   750  		})
   751  	}
   752  	fake.v2_0ValidationReturnsOnCall[i] = struct {
   753  		result1 bool
   754  	}{result1}
   755  }
   756  
   757  func (fake *Capabilities) Invocations() map[string][][]interface{} {
   758  	fake.invocationsMutex.RLock()
   759  	defer fake.invocationsMutex.RUnlock()
   760  	fake.aCLsMutex.RLock()
   761  	defer fake.aCLsMutex.RUnlock()
   762  	fake.collectionUpgradeMutex.RLock()
   763  	defer fake.collectionUpgradeMutex.RUnlock()
   764  	fake.forbidDuplicateTXIdInBlockMutex.RLock()
   765  	defer fake.forbidDuplicateTXIdInBlockMutex.RUnlock()
   766  	fake.keyLevelEndorsementMutex.RLock()
   767  	defer fake.keyLevelEndorsementMutex.RUnlock()
   768  	fake.metadataLifecycleMutex.RLock()
   769  	defer fake.metadataLifecycleMutex.RUnlock()
   770  	fake.privateChannelDataMutex.RLock()
   771  	defer fake.privateChannelDataMutex.RUnlock()
   772  	fake.storePvtDataOfInvalidTxMutex.RLock()
   773  	defer fake.storePvtDataOfInvalidTxMutex.RUnlock()
   774  	fake.supportedMutex.RLock()
   775  	defer fake.supportedMutex.RUnlock()
   776  	fake.v1_1ValidationMutex.RLock()
   777  	defer fake.v1_1ValidationMutex.RUnlock()
   778  	fake.v1_2ValidationMutex.RLock()
   779  	defer fake.v1_2ValidationMutex.RUnlock()
   780  	fake.v1_3ValidationMutex.RLock()
   781  	defer fake.v1_3ValidationMutex.RUnlock()
   782  	fake.v2_0ValidationMutex.RLock()
   783  	defer fake.v2_0ValidationMutex.RUnlock()
   784  	copiedInvocations := map[string][][]interface{}{}
   785  	for key, value := range fake.invocations {
   786  		copiedInvocations[key] = value
   787  	}
   788  	return copiedInvocations
   789  }
   790  
   791  func (fake *Capabilities) recordInvocation(key string, args []interface{}) {
   792  	fake.invocationsMutex.Lock()
   793  	defer fake.invocationsMutex.Unlock()
   794  	if fake.invocations == nil {
   795  		fake.invocations = map[string][][]interface{}{}
   796  	}
   797  	if fake.invocations[key] == nil {
   798  		fake.invocations[key] = [][]interface{}{}
   799  	}
   800  	fake.invocations[key] = append(fake.invocations[key], args)
   801  }