github.com/hyperledger-labs/bdls@v2.1.1+incompatible/core/chaincode/mock/application_capabilities.go (about)

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