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

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package mock
     3  
     4  import (
     5  	"sync"
     6  
     7  	"github.com/hyperledger/fabric-protos-go/ledger/rwset/kvrwset"
     8  	"github.com/hyperledger/fabric-protos-go/peer"
     9  	"github.com/hyperledger/fabric/core/chaincode/lifecycle"
    10  	"github.com/hyperledger/fabric/core/ledger"
    11  )
    12  
    13  type LegacyDeployedCCInfoProvider struct {
    14  	AllCollectionsConfigPkgStub        func(string, string, ledger.SimpleQueryExecutor) (*peer.CollectionConfigPackage, error)
    15  	allCollectionsConfigPkgMutex       sync.RWMutex
    16  	allCollectionsConfigPkgArgsForCall []struct {
    17  		arg1 string
    18  		arg2 string
    19  		arg3 ledger.SimpleQueryExecutor
    20  	}
    21  	allCollectionsConfigPkgReturns struct {
    22  		result1 *peer.CollectionConfigPackage
    23  		result2 error
    24  	}
    25  	allCollectionsConfigPkgReturnsOnCall map[int]struct {
    26  		result1 *peer.CollectionConfigPackage
    27  		result2 error
    28  	}
    29  	ChaincodeInfoStub        func(string, string, ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)
    30  	chaincodeInfoMutex       sync.RWMutex
    31  	chaincodeInfoArgsForCall []struct {
    32  		arg1 string
    33  		arg2 string
    34  		arg3 ledger.SimpleQueryExecutor
    35  	}
    36  	chaincodeInfoReturns struct {
    37  		result1 *ledger.DeployedChaincodeInfo
    38  		result2 error
    39  	}
    40  	chaincodeInfoReturnsOnCall map[int]struct {
    41  		result1 *ledger.DeployedChaincodeInfo
    42  		result2 error
    43  	}
    44  	CollectionInfoStub        func(string, string, string, ledger.SimpleQueryExecutor) (*peer.StaticCollectionConfig, error)
    45  	collectionInfoMutex       sync.RWMutex
    46  	collectionInfoArgsForCall []struct {
    47  		arg1 string
    48  		arg2 string
    49  		arg3 string
    50  		arg4 ledger.SimpleQueryExecutor
    51  	}
    52  	collectionInfoReturns struct {
    53  		result1 *peer.StaticCollectionConfig
    54  		result2 error
    55  	}
    56  	collectionInfoReturnsOnCall map[int]struct {
    57  		result1 *peer.StaticCollectionConfig
    58  		result2 error
    59  	}
    60  	ImplicitCollectionsStub        func(string, string, ledger.SimpleQueryExecutor) ([]*peer.StaticCollectionConfig, error)
    61  	implicitCollectionsMutex       sync.RWMutex
    62  	implicitCollectionsArgsForCall []struct {
    63  		arg1 string
    64  		arg2 string
    65  		arg3 ledger.SimpleQueryExecutor
    66  	}
    67  	implicitCollectionsReturns struct {
    68  		result1 []*peer.StaticCollectionConfig
    69  		result2 error
    70  	}
    71  	implicitCollectionsReturnsOnCall map[int]struct {
    72  		result1 []*peer.StaticCollectionConfig
    73  		result2 error
    74  	}
    75  	NamespacesStub        func() []string
    76  	namespacesMutex       sync.RWMutex
    77  	namespacesArgsForCall []struct {
    78  	}
    79  	namespacesReturns struct {
    80  		result1 []string
    81  	}
    82  	namespacesReturnsOnCall map[int]struct {
    83  		result1 []string
    84  	}
    85  	UpdatedChaincodesStub        func(map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error)
    86  	updatedChaincodesMutex       sync.RWMutex
    87  	updatedChaincodesArgsForCall []struct {
    88  		arg1 map[string][]*kvrwset.KVWrite
    89  	}
    90  	updatedChaincodesReturns struct {
    91  		result1 []*ledger.ChaincodeLifecycleInfo
    92  		result2 error
    93  	}
    94  	updatedChaincodesReturnsOnCall map[int]struct {
    95  		result1 []*ledger.ChaincodeLifecycleInfo
    96  		result2 error
    97  	}
    98  	invocations      map[string][][]interface{}
    99  	invocationsMutex sync.RWMutex
   100  }
   101  
   102  func (fake *LegacyDeployedCCInfoProvider) AllCollectionsConfigPkg(arg1 string, arg2 string, arg3 ledger.SimpleQueryExecutor) (*peer.CollectionConfigPackage, error) {
   103  	fake.allCollectionsConfigPkgMutex.Lock()
   104  	ret, specificReturn := fake.allCollectionsConfigPkgReturnsOnCall[len(fake.allCollectionsConfigPkgArgsForCall)]
   105  	fake.allCollectionsConfigPkgArgsForCall = append(fake.allCollectionsConfigPkgArgsForCall, struct {
   106  		arg1 string
   107  		arg2 string
   108  		arg3 ledger.SimpleQueryExecutor
   109  	}{arg1, arg2, arg3})
   110  	fake.recordInvocation("AllCollectionsConfigPkg", []interface{}{arg1, arg2, arg3})
   111  	fake.allCollectionsConfigPkgMutex.Unlock()
   112  	if fake.AllCollectionsConfigPkgStub != nil {
   113  		return fake.AllCollectionsConfigPkgStub(arg1, arg2, arg3)
   114  	}
   115  	if specificReturn {
   116  		return ret.result1, ret.result2
   117  	}
   118  	fakeReturns := fake.allCollectionsConfigPkgReturns
   119  	return fakeReturns.result1, fakeReturns.result2
   120  }
   121  
   122  func (fake *LegacyDeployedCCInfoProvider) AllCollectionsConfigPkgCallCount() int {
   123  	fake.allCollectionsConfigPkgMutex.RLock()
   124  	defer fake.allCollectionsConfigPkgMutex.RUnlock()
   125  	return len(fake.allCollectionsConfigPkgArgsForCall)
   126  }
   127  
   128  func (fake *LegacyDeployedCCInfoProvider) AllCollectionsConfigPkgCalls(stub func(string, string, ledger.SimpleQueryExecutor) (*peer.CollectionConfigPackage, error)) {
   129  	fake.allCollectionsConfigPkgMutex.Lock()
   130  	defer fake.allCollectionsConfigPkgMutex.Unlock()
   131  	fake.AllCollectionsConfigPkgStub = stub
   132  }
   133  
   134  func (fake *LegacyDeployedCCInfoProvider) AllCollectionsConfigPkgArgsForCall(i int) (string, string, ledger.SimpleQueryExecutor) {
   135  	fake.allCollectionsConfigPkgMutex.RLock()
   136  	defer fake.allCollectionsConfigPkgMutex.RUnlock()
   137  	argsForCall := fake.allCollectionsConfigPkgArgsForCall[i]
   138  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   139  }
   140  
   141  func (fake *LegacyDeployedCCInfoProvider) AllCollectionsConfigPkgReturns(result1 *peer.CollectionConfigPackage, result2 error) {
   142  	fake.allCollectionsConfigPkgMutex.Lock()
   143  	defer fake.allCollectionsConfigPkgMutex.Unlock()
   144  	fake.AllCollectionsConfigPkgStub = nil
   145  	fake.allCollectionsConfigPkgReturns = struct {
   146  		result1 *peer.CollectionConfigPackage
   147  		result2 error
   148  	}{result1, result2}
   149  }
   150  
   151  func (fake *LegacyDeployedCCInfoProvider) AllCollectionsConfigPkgReturnsOnCall(i int, result1 *peer.CollectionConfigPackage, result2 error) {
   152  	fake.allCollectionsConfigPkgMutex.Lock()
   153  	defer fake.allCollectionsConfigPkgMutex.Unlock()
   154  	fake.AllCollectionsConfigPkgStub = nil
   155  	if fake.allCollectionsConfigPkgReturnsOnCall == nil {
   156  		fake.allCollectionsConfigPkgReturnsOnCall = make(map[int]struct {
   157  			result1 *peer.CollectionConfigPackage
   158  			result2 error
   159  		})
   160  	}
   161  	fake.allCollectionsConfigPkgReturnsOnCall[i] = struct {
   162  		result1 *peer.CollectionConfigPackage
   163  		result2 error
   164  	}{result1, result2}
   165  }
   166  
   167  func (fake *LegacyDeployedCCInfoProvider) ChaincodeInfo(arg1 string, arg2 string, arg3 ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error) {
   168  	fake.chaincodeInfoMutex.Lock()
   169  	ret, specificReturn := fake.chaincodeInfoReturnsOnCall[len(fake.chaincodeInfoArgsForCall)]
   170  	fake.chaincodeInfoArgsForCall = append(fake.chaincodeInfoArgsForCall, struct {
   171  		arg1 string
   172  		arg2 string
   173  		arg3 ledger.SimpleQueryExecutor
   174  	}{arg1, arg2, arg3})
   175  	fake.recordInvocation("ChaincodeInfo", []interface{}{arg1, arg2, arg3})
   176  	fake.chaincodeInfoMutex.Unlock()
   177  	if fake.ChaincodeInfoStub != nil {
   178  		return fake.ChaincodeInfoStub(arg1, arg2, arg3)
   179  	}
   180  	if specificReturn {
   181  		return ret.result1, ret.result2
   182  	}
   183  	fakeReturns := fake.chaincodeInfoReturns
   184  	return fakeReturns.result1, fakeReturns.result2
   185  }
   186  
   187  func (fake *LegacyDeployedCCInfoProvider) ChaincodeInfoCallCount() int {
   188  	fake.chaincodeInfoMutex.RLock()
   189  	defer fake.chaincodeInfoMutex.RUnlock()
   190  	return len(fake.chaincodeInfoArgsForCall)
   191  }
   192  
   193  func (fake *LegacyDeployedCCInfoProvider) ChaincodeInfoCalls(stub func(string, string, ledger.SimpleQueryExecutor) (*ledger.DeployedChaincodeInfo, error)) {
   194  	fake.chaincodeInfoMutex.Lock()
   195  	defer fake.chaincodeInfoMutex.Unlock()
   196  	fake.ChaincodeInfoStub = stub
   197  }
   198  
   199  func (fake *LegacyDeployedCCInfoProvider) ChaincodeInfoArgsForCall(i int) (string, string, ledger.SimpleQueryExecutor) {
   200  	fake.chaincodeInfoMutex.RLock()
   201  	defer fake.chaincodeInfoMutex.RUnlock()
   202  	argsForCall := fake.chaincodeInfoArgsForCall[i]
   203  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   204  }
   205  
   206  func (fake *LegacyDeployedCCInfoProvider) ChaincodeInfoReturns(result1 *ledger.DeployedChaincodeInfo, result2 error) {
   207  	fake.chaincodeInfoMutex.Lock()
   208  	defer fake.chaincodeInfoMutex.Unlock()
   209  	fake.ChaincodeInfoStub = nil
   210  	fake.chaincodeInfoReturns = struct {
   211  		result1 *ledger.DeployedChaincodeInfo
   212  		result2 error
   213  	}{result1, result2}
   214  }
   215  
   216  func (fake *LegacyDeployedCCInfoProvider) ChaincodeInfoReturnsOnCall(i int, result1 *ledger.DeployedChaincodeInfo, result2 error) {
   217  	fake.chaincodeInfoMutex.Lock()
   218  	defer fake.chaincodeInfoMutex.Unlock()
   219  	fake.ChaincodeInfoStub = nil
   220  	if fake.chaincodeInfoReturnsOnCall == nil {
   221  		fake.chaincodeInfoReturnsOnCall = make(map[int]struct {
   222  			result1 *ledger.DeployedChaincodeInfo
   223  			result2 error
   224  		})
   225  	}
   226  	fake.chaincodeInfoReturnsOnCall[i] = struct {
   227  		result1 *ledger.DeployedChaincodeInfo
   228  		result2 error
   229  	}{result1, result2}
   230  }
   231  
   232  func (fake *LegacyDeployedCCInfoProvider) CollectionInfo(arg1 string, arg2 string, arg3 string, arg4 ledger.SimpleQueryExecutor) (*peer.StaticCollectionConfig, error) {
   233  	fake.collectionInfoMutex.Lock()
   234  	ret, specificReturn := fake.collectionInfoReturnsOnCall[len(fake.collectionInfoArgsForCall)]
   235  	fake.collectionInfoArgsForCall = append(fake.collectionInfoArgsForCall, struct {
   236  		arg1 string
   237  		arg2 string
   238  		arg3 string
   239  		arg4 ledger.SimpleQueryExecutor
   240  	}{arg1, arg2, arg3, arg4})
   241  	fake.recordInvocation("CollectionInfo", []interface{}{arg1, arg2, arg3, arg4})
   242  	fake.collectionInfoMutex.Unlock()
   243  	if fake.CollectionInfoStub != nil {
   244  		return fake.CollectionInfoStub(arg1, arg2, arg3, arg4)
   245  	}
   246  	if specificReturn {
   247  		return ret.result1, ret.result2
   248  	}
   249  	fakeReturns := fake.collectionInfoReturns
   250  	return fakeReturns.result1, fakeReturns.result2
   251  }
   252  
   253  func (fake *LegacyDeployedCCInfoProvider) CollectionInfoCallCount() int {
   254  	fake.collectionInfoMutex.RLock()
   255  	defer fake.collectionInfoMutex.RUnlock()
   256  	return len(fake.collectionInfoArgsForCall)
   257  }
   258  
   259  func (fake *LegacyDeployedCCInfoProvider) CollectionInfoCalls(stub func(string, string, string, ledger.SimpleQueryExecutor) (*peer.StaticCollectionConfig, error)) {
   260  	fake.collectionInfoMutex.Lock()
   261  	defer fake.collectionInfoMutex.Unlock()
   262  	fake.CollectionInfoStub = stub
   263  }
   264  
   265  func (fake *LegacyDeployedCCInfoProvider) CollectionInfoArgsForCall(i int) (string, string, string, ledger.SimpleQueryExecutor) {
   266  	fake.collectionInfoMutex.RLock()
   267  	defer fake.collectionInfoMutex.RUnlock()
   268  	argsForCall := fake.collectionInfoArgsForCall[i]
   269  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4
   270  }
   271  
   272  func (fake *LegacyDeployedCCInfoProvider) CollectionInfoReturns(result1 *peer.StaticCollectionConfig, result2 error) {
   273  	fake.collectionInfoMutex.Lock()
   274  	defer fake.collectionInfoMutex.Unlock()
   275  	fake.CollectionInfoStub = nil
   276  	fake.collectionInfoReturns = struct {
   277  		result1 *peer.StaticCollectionConfig
   278  		result2 error
   279  	}{result1, result2}
   280  }
   281  
   282  func (fake *LegacyDeployedCCInfoProvider) CollectionInfoReturnsOnCall(i int, result1 *peer.StaticCollectionConfig, result2 error) {
   283  	fake.collectionInfoMutex.Lock()
   284  	defer fake.collectionInfoMutex.Unlock()
   285  	fake.CollectionInfoStub = nil
   286  	if fake.collectionInfoReturnsOnCall == nil {
   287  		fake.collectionInfoReturnsOnCall = make(map[int]struct {
   288  			result1 *peer.StaticCollectionConfig
   289  			result2 error
   290  		})
   291  	}
   292  	fake.collectionInfoReturnsOnCall[i] = struct {
   293  		result1 *peer.StaticCollectionConfig
   294  		result2 error
   295  	}{result1, result2}
   296  }
   297  
   298  func (fake *LegacyDeployedCCInfoProvider) ImplicitCollections(arg1 string, arg2 string, arg3 ledger.SimpleQueryExecutor) ([]*peer.StaticCollectionConfig, error) {
   299  	fake.implicitCollectionsMutex.Lock()
   300  	ret, specificReturn := fake.implicitCollectionsReturnsOnCall[len(fake.implicitCollectionsArgsForCall)]
   301  	fake.implicitCollectionsArgsForCall = append(fake.implicitCollectionsArgsForCall, struct {
   302  		arg1 string
   303  		arg2 string
   304  		arg3 ledger.SimpleQueryExecutor
   305  	}{arg1, arg2, arg3})
   306  	fake.recordInvocation("ImplicitCollections", []interface{}{arg1, arg2, arg3})
   307  	fake.implicitCollectionsMutex.Unlock()
   308  	if fake.ImplicitCollectionsStub != nil {
   309  		return fake.ImplicitCollectionsStub(arg1, arg2, arg3)
   310  	}
   311  	if specificReturn {
   312  		return ret.result1, ret.result2
   313  	}
   314  	fakeReturns := fake.implicitCollectionsReturns
   315  	return fakeReturns.result1, fakeReturns.result2
   316  }
   317  
   318  func (fake *LegacyDeployedCCInfoProvider) ImplicitCollectionsCallCount() int {
   319  	fake.implicitCollectionsMutex.RLock()
   320  	defer fake.implicitCollectionsMutex.RUnlock()
   321  	return len(fake.implicitCollectionsArgsForCall)
   322  }
   323  
   324  func (fake *LegacyDeployedCCInfoProvider) ImplicitCollectionsCalls(stub func(string, string, ledger.SimpleQueryExecutor) ([]*peer.StaticCollectionConfig, error)) {
   325  	fake.implicitCollectionsMutex.Lock()
   326  	defer fake.implicitCollectionsMutex.Unlock()
   327  	fake.ImplicitCollectionsStub = stub
   328  }
   329  
   330  func (fake *LegacyDeployedCCInfoProvider) ImplicitCollectionsArgsForCall(i int) (string, string, ledger.SimpleQueryExecutor) {
   331  	fake.implicitCollectionsMutex.RLock()
   332  	defer fake.implicitCollectionsMutex.RUnlock()
   333  	argsForCall := fake.implicitCollectionsArgsForCall[i]
   334  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   335  }
   336  
   337  func (fake *LegacyDeployedCCInfoProvider) ImplicitCollectionsReturns(result1 []*peer.StaticCollectionConfig, result2 error) {
   338  	fake.implicitCollectionsMutex.Lock()
   339  	defer fake.implicitCollectionsMutex.Unlock()
   340  	fake.ImplicitCollectionsStub = nil
   341  	fake.implicitCollectionsReturns = struct {
   342  		result1 []*peer.StaticCollectionConfig
   343  		result2 error
   344  	}{result1, result2}
   345  }
   346  
   347  func (fake *LegacyDeployedCCInfoProvider) ImplicitCollectionsReturnsOnCall(i int, result1 []*peer.StaticCollectionConfig, result2 error) {
   348  	fake.implicitCollectionsMutex.Lock()
   349  	defer fake.implicitCollectionsMutex.Unlock()
   350  	fake.ImplicitCollectionsStub = nil
   351  	if fake.implicitCollectionsReturnsOnCall == nil {
   352  		fake.implicitCollectionsReturnsOnCall = make(map[int]struct {
   353  			result1 []*peer.StaticCollectionConfig
   354  			result2 error
   355  		})
   356  	}
   357  	fake.implicitCollectionsReturnsOnCall[i] = struct {
   358  		result1 []*peer.StaticCollectionConfig
   359  		result2 error
   360  	}{result1, result2}
   361  }
   362  
   363  func (fake *LegacyDeployedCCInfoProvider) Namespaces() []string {
   364  	fake.namespacesMutex.Lock()
   365  	ret, specificReturn := fake.namespacesReturnsOnCall[len(fake.namespacesArgsForCall)]
   366  	fake.namespacesArgsForCall = append(fake.namespacesArgsForCall, struct {
   367  	}{})
   368  	fake.recordInvocation("Namespaces", []interface{}{})
   369  	fake.namespacesMutex.Unlock()
   370  	if fake.NamespacesStub != nil {
   371  		return fake.NamespacesStub()
   372  	}
   373  	if specificReturn {
   374  		return ret.result1
   375  	}
   376  	fakeReturns := fake.namespacesReturns
   377  	return fakeReturns.result1
   378  }
   379  
   380  func (fake *LegacyDeployedCCInfoProvider) NamespacesCallCount() int {
   381  	fake.namespacesMutex.RLock()
   382  	defer fake.namespacesMutex.RUnlock()
   383  	return len(fake.namespacesArgsForCall)
   384  }
   385  
   386  func (fake *LegacyDeployedCCInfoProvider) NamespacesCalls(stub func() []string) {
   387  	fake.namespacesMutex.Lock()
   388  	defer fake.namespacesMutex.Unlock()
   389  	fake.NamespacesStub = stub
   390  }
   391  
   392  func (fake *LegacyDeployedCCInfoProvider) NamespacesReturns(result1 []string) {
   393  	fake.namespacesMutex.Lock()
   394  	defer fake.namespacesMutex.Unlock()
   395  	fake.NamespacesStub = nil
   396  	fake.namespacesReturns = struct {
   397  		result1 []string
   398  	}{result1}
   399  }
   400  
   401  func (fake *LegacyDeployedCCInfoProvider) NamespacesReturnsOnCall(i int, result1 []string) {
   402  	fake.namespacesMutex.Lock()
   403  	defer fake.namespacesMutex.Unlock()
   404  	fake.NamespacesStub = nil
   405  	if fake.namespacesReturnsOnCall == nil {
   406  		fake.namespacesReturnsOnCall = make(map[int]struct {
   407  			result1 []string
   408  		})
   409  	}
   410  	fake.namespacesReturnsOnCall[i] = struct {
   411  		result1 []string
   412  	}{result1}
   413  }
   414  
   415  func (fake *LegacyDeployedCCInfoProvider) UpdatedChaincodes(arg1 map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error) {
   416  	fake.updatedChaincodesMutex.Lock()
   417  	ret, specificReturn := fake.updatedChaincodesReturnsOnCall[len(fake.updatedChaincodesArgsForCall)]
   418  	fake.updatedChaincodesArgsForCall = append(fake.updatedChaincodesArgsForCall, struct {
   419  		arg1 map[string][]*kvrwset.KVWrite
   420  	}{arg1})
   421  	fake.recordInvocation("UpdatedChaincodes", []interface{}{arg1})
   422  	fake.updatedChaincodesMutex.Unlock()
   423  	if fake.UpdatedChaincodesStub != nil {
   424  		return fake.UpdatedChaincodesStub(arg1)
   425  	}
   426  	if specificReturn {
   427  		return ret.result1, ret.result2
   428  	}
   429  	fakeReturns := fake.updatedChaincodesReturns
   430  	return fakeReturns.result1, fakeReturns.result2
   431  }
   432  
   433  func (fake *LegacyDeployedCCInfoProvider) UpdatedChaincodesCallCount() int {
   434  	fake.updatedChaincodesMutex.RLock()
   435  	defer fake.updatedChaincodesMutex.RUnlock()
   436  	return len(fake.updatedChaincodesArgsForCall)
   437  }
   438  
   439  func (fake *LegacyDeployedCCInfoProvider) UpdatedChaincodesCalls(stub func(map[string][]*kvrwset.KVWrite) ([]*ledger.ChaincodeLifecycleInfo, error)) {
   440  	fake.updatedChaincodesMutex.Lock()
   441  	defer fake.updatedChaincodesMutex.Unlock()
   442  	fake.UpdatedChaincodesStub = stub
   443  }
   444  
   445  func (fake *LegacyDeployedCCInfoProvider) UpdatedChaincodesArgsForCall(i int) map[string][]*kvrwset.KVWrite {
   446  	fake.updatedChaincodesMutex.RLock()
   447  	defer fake.updatedChaincodesMutex.RUnlock()
   448  	argsForCall := fake.updatedChaincodesArgsForCall[i]
   449  	return argsForCall.arg1
   450  }
   451  
   452  func (fake *LegacyDeployedCCInfoProvider) UpdatedChaincodesReturns(result1 []*ledger.ChaincodeLifecycleInfo, result2 error) {
   453  	fake.updatedChaincodesMutex.Lock()
   454  	defer fake.updatedChaincodesMutex.Unlock()
   455  	fake.UpdatedChaincodesStub = nil
   456  	fake.updatedChaincodesReturns = struct {
   457  		result1 []*ledger.ChaincodeLifecycleInfo
   458  		result2 error
   459  	}{result1, result2}
   460  }
   461  
   462  func (fake *LegacyDeployedCCInfoProvider) UpdatedChaincodesReturnsOnCall(i int, result1 []*ledger.ChaincodeLifecycleInfo, result2 error) {
   463  	fake.updatedChaincodesMutex.Lock()
   464  	defer fake.updatedChaincodesMutex.Unlock()
   465  	fake.UpdatedChaincodesStub = nil
   466  	if fake.updatedChaincodesReturnsOnCall == nil {
   467  		fake.updatedChaincodesReturnsOnCall = make(map[int]struct {
   468  			result1 []*ledger.ChaincodeLifecycleInfo
   469  			result2 error
   470  		})
   471  	}
   472  	fake.updatedChaincodesReturnsOnCall[i] = struct {
   473  		result1 []*ledger.ChaincodeLifecycleInfo
   474  		result2 error
   475  	}{result1, result2}
   476  }
   477  
   478  func (fake *LegacyDeployedCCInfoProvider) Invocations() map[string][][]interface{} {
   479  	fake.invocationsMutex.RLock()
   480  	defer fake.invocationsMutex.RUnlock()
   481  	fake.allCollectionsConfigPkgMutex.RLock()
   482  	defer fake.allCollectionsConfigPkgMutex.RUnlock()
   483  	fake.chaincodeInfoMutex.RLock()
   484  	defer fake.chaincodeInfoMutex.RUnlock()
   485  	fake.collectionInfoMutex.RLock()
   486  	defer fake.collectionInfoMutex.RUnlock()
   487  	fake.implicitCollectionsMutex.RLock()
   488  	defer fake.implicitCollectionsMutex.RUnlock()
   489  	fake.namespacesMutex.RLock()
   490  	defer fake.namespacesMutex.RUnlock()
   491  	fake.updatedChaincodesMutex.RLock()
   492  	defer fake.updatedChaincodesMutex.RUnlock()
   493  	copiedInvocations := map[string][][]interface{}{}
   494  	for key, value := range fake.invocations {
   495  		copiedInvocations[key] = value
   496  	}
   497  	return copiedInvocations
   498  }
   499  
   500  func (fake *LegacyDeployedCCInfoProvider) recordInvocation(key string, args []interface{}) {
   501  	fake.invocationsMutex.Lock()
   502  	defer fake.invocationsMutex.Unlock()
   503  	if fake.invocations == nil {
   504  		fake.invocations = map[string][][]interface{}{}
   505  	}
   506  	if fake.invocations[key] == nil {
   507  		fake.invocations[key] = [][]interface{}{}
   508  	}
   509  	fake.invocations[key] = append(fake.invocations[key], args)
   510  }
   511  
   512  var _ lifecycle.LegacyDeployedCCInfoProvider = new(LegacyDeployedCCInfoProvider)