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