github.com/anjalikarhana/fabric@v2.1.1+incompatible/orderer/common/msgprocessor/mocks/orderer_config.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package mocks
     3  
     4  import (
     5  	"sync"
     6  	"time"
     7  
     8  	"github.com/hyperledger/fabric-protos-go/orderer"
     9  	"github.com/hyperledger/fabric/common/channelconfig"
    10  )
    11  
    12  type OrdererConfig struct {
    13  	BatchSizeStub        func() *orderer.BatchSize
    14  	batchSizeMutex       sync.RWMutex
    15  	batchSizeArgsForCall []struct {
    16  	}
    17  	batchSizeReturns struct {
    18  		result1 *orderer.BatchSize
    19  	}
    20  	batchSizeReturnsOnCall map[int]struct {
    21  		result1 *orderer.BatchSize
    22  	}
    23  	BatchTimeoutStub        func() time.Duration
    24  	batchTimeoutMutex       sync.RWMutex
    25  	batchTimeoutArgsForCall []struct {
    26  	}
    27  	batchTimeoutReturns struct {
    28  		result1 time.Duration
    29  	}
    30  	batchTimeoutReturnsOnCall map[int]struct {
    31  		result1 time.Duration
    32  	}
    33  	CapabilitiesStub        func() channelconfig.OrdererCapabilities
    34  	capabilitiesMutex       sync.RWMutex
    35  	capabilitiesArgsForCall []struct {
    36  	}
    37  	capabilitiesReturns struct {
    38  		result1 channelconfig.OrdererCapabilities
    39  	}
    40  	capabilitiesReturnsOnCall map[int]struct {
    41  		result1 channelconfig.OrdererCapabilities
    42  	}
    43  	ConsensusMetadataStub        func() []byte
    44  	consensusMetadataMutex       sync.RWMutex
    45  	consensusMetadataArgsForCall []struct {
    46  	}
    47  	consensusMetadataReturns struct {
    48  		result1 []byte
    49  	}
    50  	consensusMetadataReturnsOnCall map[int]struct {
    51  		result1 []byte
    52  	}
    53  	ConsensusStateStub        func() orderer.ConsensusType_State
    54  	consensusStateMutex       sync.RWMutex
    55  	consensusStateArgsForCall []struct {
    56  	}
    57  	consensusStateReturns struct {
    58  		result1 orderer.ConsensusType_State
    59  	}
    60  	consensusStateReturnsOnCall map[int]struct {
    61  		result1 orderer.ConsensusType_State
    62  	}
    63  	ConsensusTypeStub        func() string
    64  	consensusTypeMutex       sync.RWMutex
    65  	consensusTypeArgsForCall []struct {
    66  	}
    67  	consensusTypeReturns struct {
    68  		result1 string
    69  	}
    70  	consensusTypeReturnsOnCall map[int]struct {
    71  		result1 string
    72  	}
    73  	KafkaBrokersStub        func() []string
    74  	kafkaBrokersMutex       sync.RWMutex
    75  	kafkaBrokersArgsForCall []struct {
    76  	}
    77  	kafkaBrokersReturns struct {
    78  		result1 []string
    79  	}
    80  	kafkaBrokersReturnsOnCall map[int]struct {
    81  		result1 []string
    82  	}
    83  	MaxChannelsCountStub        func() uint64
    84  	maxChannelsCountMutex       sync.RWMutex
    85  	maxChannelsCountArgsForCall []struct {
    86  	}
    87  	maxChannelsCountReturns struct {
    88  		result1 uint64
    89  	}
    90  	maxChannelsCountReturnsOnCall map[int]struct {
    91  		result1 uint64
    92  	}
    93  	OrganizationsStub        func() map[string]channelconfig.OrdererOrg
    94  	organizationsMutex       sync.RWMutex
    95  	organizationsArgsForCall []struct {
    96  	}
    97  	organizationsReturns struct {
    98  		result1 map[string]channelconfig.OrdererOrg
    99  	}
   100  	organizationsReturnsOnCall map[int]struct {
   101  		result1 map[string]channelconfig.OrdererOrg
   102  	}
   103  	invocations      map[string][][]interface{}
   104  	invocationsMutex sync.RWMutex
   105  }
   106  
   107  func (fake *OrdererConfig) BatchSize() *orderer.BatchSize {
   108  	fake.batchSizeMutex.Lock()
   109  	ret, specificReturn := fake.batchSizeReturnsOnCall[len(fake.batchSizeArgsForCall)]
   110  	fake.batchSizeArgsForCall = append(fake.batchSizeArgsForCall, struct {
   111  	}{})
   112  	fake.recordInvocation("BatchSize", []interface{}{})
   113  	fake.batchSizeMutex.Unlock()
   114  	if fake.BatchSizeStub != nil {
   115  		return fake.BatchSizeStub()
   116  	}
   117  	if specificReturn {
   118  		return ret.result1
   119  	}
   120  	fakeReturns := fake.batchSizeReturns
   121  	return fakeReturns.result1
   122  }
   123  
   124  func (fake *OrdererConfig) BatchSizeCallCount() int {
   125  	fake.batchSizeMutex.RLock()
   126  	defer fake.batchSizeMutex.RUnlock()
   127  	return len(fake.batchSizeArgsForCall)
   128  }
   129  
   130  func (fake *OrdererConfig) BatchSizeCalls(stub func() *orderer.BatchSize) {
   131  	fake.batchSizeMutex.Lock()
   132  	defer fake.batchSizeMutex.Unlock()
   133  	fake.BatchSizeStub = stub
   134  }
   135  
   136  func (fake *OrdererConfig) BatchSizeReturns(result1 *orderer.BatchSize) {
   137  	fake.batchSizeMutex.Lock()
   138  	defer fake.batchSizeMutex.Unlock()
   139  	fake.BatchSizeStub = nil
   140  	fake.batchSizeReturns = struct {
   141  		result1 *orderer.BatchSize
   142  	}{result1}
   143  }
   144  
   145  func (fake *OrdererConfig) BatchSizeReturnsOnCall(i int, result1 *orderer.BatchSize) {
   146  	fake.batchSizeMutex.Lock()
   147  	defer fake.batchSizeMutex.Unlock()
   148  	fake.BatchSizeStub = nil
   149  	if fake.batchSizeReturnsOnCall == nil {
   150  		fake.batchSizeReturnsOnCall = make(map[int]struct {
   151  			result1 *orderer.BatchSize
   152  		})
   153  	}
   154  	fake.batchSizeReturnsOnCall[i] = struct {
   155  		result1 *orderer.BatchSize
   156  	}{result1}
   157  }
   158  
   159  func (fake *OrdererConfig) BatchTimeout() time.Duration {
   160  	fake.batchTimeoutMutex.Lock()
   161  	ret, specificReturn := fake.batchTimeoutReturnsOnCall[len(fake.batchTimeoutArgsForCall)]
   162  	fake.batchTimeoutArgsForCall = append(fake.batchTimeoutArgsForCall, struct {
   163  	}{})
   164  	fake.recordInvocation("BatchTimeout", []interface{}{})
   165  	fake.batchTimeoutMutex.Unlock()
   166  	if fake.BatchTimeoutStub != nil {
   167  		return fake.BatchTimeoutStub()
   168  	}
   169  	if specificReturn {
   170  		return ret.result1
   171  	}
   172  	fakeReturns := fake.batchTimeoutReturns
   173  	return fakeReturns.result1
   174  }
   175  
   176  func (fake *OrdererConfig) BatchTimeoutCallCount() int {
   177  	fake.batchTimeoutMutex.RLock()
   178  	defer fake.batchTimeoutMutex.RUnlock()
   179  	return len(fake.batchTimeoutArgsForCall)
   180  }
   181  
   182  func (fake *OrdererConfig) BatchTimeoutCalls(stub func() time.Duration) {
   183  	fake.batchTimeoutMutex.Lock()
   184  	defer fake.batchTimeoutMutex.Unlock()
   185  	fake.BatchTimeoutStub = stub
   186  }
   187  
   188  func (fake *OrdererConfig) BatchTimeoutReturns(result1 time.Duration) {
   189  	fake.batchTimeoutMutex.Lock()
   190  	defer fake.batchTimeoutMutex.Unlock()
   191  	fake.BatchTimeoutStub = nil
   192  	fake.batchTimeoutReturns = struct {
   193  		result1 time.Duration
   194  	}{result1}
   195  }
   196  
   197  func (fake *OrdererConfig) BatchTimeoutReturnsOnCall(i int, result1 time.Duration) {
   198  	fake.batchTimeoutMutex.Lock()
   199  	defer fake.batchTimeoutMutex.Unlock()
   200  	fake.BatchTimeoutStub = nil
   201  	if fake.batchTimeoutReturnsOnCall == nil {
   202  		fake.batchTimeoutReturnsOnCall = make(map[int]struct {
   203  			result1 time.Duration
   204  		})
   205  	}
   206  	fake.batchTimeoutReturnsOnCall[i] = struct {
   207  		result1 time.Duration
   208  	}{result1}
   209  }
   210  
   211  func (fake *OrdererConfig) Capabilities() channelconfig.OrdererCapabilities {
   212  	fake.capabilitiesMutex.Lock()
   213  	ret, specificReturn := fake.capabilitiesReturnsOnCall[len(fake.capabilitiesArgsForCall)]
   214  	fake.capabilitiesArgsForCall = append(fake.capabilitiesArgsForCall, struct {
   215  	}{})
   216  	fake.recordInvocation("Capabilities", []interface{}{})
   217  	fake.capabilitiesMutex.Unlock()
   218  	if fake.CapabilitiesStub != nil {
   219  		return fake.CapabilitiesStub()
   220  	}
   221  	if specificReturn {
   222  		return ret.result1
   223  	}
   224  	fakeReturns := fake.capabilitiesReturns
   225  	return fakeReturns.result1
   226  }
   227  
   228  func (fake *OrdererConfig) CapabilitiesCallCount() int {
   229  	fake.capabilitiesMutex.RLock()
   230  	defer fake.capabilitiesMutex.RUnlock()
   231  	return len(fake.capabilitiesArgsForCall)
   232  }
   233  
   234  func (fake *OrdererConfig) CapabilitiesCalls(stub func() channelconfig.OrdererCapabilities) {
   235  	fake.capabilitiesMutex.Lock()
   236  	defer fake.capabilitiesMutex.Unlock()
   237  	fake.CapabilitiesStub = stub
   238  }
   239  
   240  func (fake *OrdererConfig) CapabilitiesReturns(result1 channelconfig.OrdererCapabilities) {
   241  	fake.capabilitiesMutex.Lock()
   242  	defer fake.capabilitiesMutex.Unlock()
   243  	fake.CapabilitiesStub = nil
   244  	fake.capabilitiesReturns = struct {
   245  		result1 channelconfig.OrdererCapabilities
   246  	}{result1}
   247  }
   248  
   249  func (fake *OrdererConfig) CapabilitiesReturnsOnCall(i int, result1 channelconfig.OrdererCapabilities) {
   250  	fake.capabilitiesMutex.Lock()
   251  	defer fake.capabilitiesMutex.Unlock()
   252  	fake.CapabilitiesStub = nil
   253  	if fake.capabilitiesReturnsOnCall == nil {
   254  		fake.capabilitiesReturnsOnCall = make(map[int]struct {
   255  			result1 channelconfig.OrdererCapabilities
   256  		})
   257  	}
   258  	fake.capabilitiesReturnsOnCall[i] = struct {
   259  		result1 channelconfig.OrdererCapabilities
   260  	}{result1}
   261  }
   262  
   263  func (fake *OrdererConfig) ConsensusMetadata() []byte {
   264  	fake.consensusMetadataMutex.Lock()
   265  	ret, specificReturn := fake.consensusMetadataReturnsOnCall[len(fake.consensusMetadataArgsForCall)]
   266  	fake.consensusMetadataArgsForCall = append(fake.consensusMetadataArgsForCall, struct {
   267  	}{})
   268  	fake.recordInvocation("ConsensusMetadata", []interface{}{})
   269  	fake.consensusMetadataMutex.Unlock()
   270  	if fake.ConsensusMetadataStub != nil {
   271  		return fake.ConsensusMetadataStub()
   272  	}
   273  	if specificReturn {
   274  		return ret.result1
   275  	}
   276  	fakeReturns := fake.consensusMetadataReturns
   277  	return fakeReturns.result1
   278  }
   279  
   280  func (fake *OrdererConfig) ConsensusMetadataCallCount() int {
   281  	fake.consensusMetadataMutex.RLock()
   282  	defer fake.consensusMetadataMutex.RUnlock()
   283  	return len(fake.consensusMetadataArgsForCall)
   284  }
   285  
   286  func (fake *OrdererConfig) ConsensusMetadataCalls(stub func() []byte) {
   287  	fake.consensusMetadataMutex.Lock()
   288  	defer fake.consensusMetadataMutex.Unlock()
   289  	fake.ConsensusMetadataStub = stub
   290  }
   291  
   292  func (fake *OrdererConfig) ConsensusMetadataReturns(result1 []byte) {
   293  	fake.consensusMetadataMutex.Lock()
   294  	defer fake.consensusMetadataMutex.Unlock()
   295  	fake.ConsensusMetadataStub = nil
   296  	fake.consensusMetadataReturns = struct {
   297  		result1 []byte
   298  	}{result1}
   299  }
   300  
   301  func (fake *OrdererConfig) ConsensusMetadataReturnsOnCall(i int, result1 []byte) {
   302  	fake.consensusMetadataMutex.Lock()
   303  	defer fake.consensusMetadataMutex.Unlock()
   304  	fake.ConsensusMetadataStub = nil
   305  	if fake.consensusMetadataReturnsOnCall == nil {
   306  		fake.consensusMetadataReturnsOnCall = make(map[int]struct {
   307  			result1 []byte
   308  		})
   309  	}
   310  	fake.consensusMetadataReturnsOnCall[i] = struct {
   311  		result1 []byte
   312  	}{result1}
   313  }
   314  
   315  func (fake *OrdererConfig) ConsensusState() orderer.ConsensusType_State {
   316  	fake.consensusStateMutex.Lock()
   317  	ret, specificReturn := fake.consensusStateReturnsOnCall[len(fake.consensusStateArgsForCall)]
   318  	fake.consensusStateArgsForCall = append(fake.consensusStateArgsForCall, struct {
   319  	}{})
   320  	fake.recordInvocation("ConsensusState", []interface{}{})
   321  	fake.consensusStateMutex.Unlock()
   322  	if fake.ConsensusStateStub != nil {
   323  		return fake.ConsensusStateStub()
   324  	}
   325  	if specificReturn {
   326  		return ret.result1
   327  	}
   328  	fakeReturns := fake.consensusStateReturns
   329  	return fakeReturns.result1
   330  }
   331  
   332  func (fake *OrdererConfig) ConsensusStateCallCount() int {
   333  	fake.consensusStateMutex.RLock()
   334  	defer fake.consensusStateMutex.RUnlock()
   335  	return len(fake.consensusStateArgsForCall)
   336  }
   337  
   338  func (fake *OrdererConfig) ConsensusStateCalls(stub func() orderer.ConsensusType_State) {
   339  	fake.consensusStateMutex.Lock()
   340  	defer fake.consensusStateMutex.Unlock()
   341  	fake.ConsensusStateStub = stub
   342  }
   343  
   344  func (fake *OrdererConfig) ConsensusStateReturns(result1 orderer.ConsensusType_State) {
   345  	fake.consensusStateMutex.Lock()
   346  	defer fake.consensusStateMutex.Unlock()
   347  	fake.ConsensusStateStub = nil
   348  	fake.consensusStateReturns = struct {
   349  		result1 orderer.ConsensusType_State
   350  	}{result1}
   351  }
   352  
   353  func (fake *OrdererConfig) ConsensusStateReturnsOnCall(i int, result1 orderer.ConsensusType_State) {
   354  	fake.consensusStateMutex.Lock()
   355  	defer fake.consensusStateMutex.Unlock()
   356  	fake.ConsensusStateStub = nil
   357  	if fake.consensusStateReturnsOnCall == nil {
   358  		fake.consensusStateReturnsOnCall = make(map[int]struct {
   359  			result1 orderer.ConsensusType_State
   360  		})
   361  	}
   362  	fake.consensusStateReturnsOnCall[i] = struct {
   363  		result1 orderer.ConsensusType_State
   364  	}{result1}
   365  }
   366  
   367  func (fake *OrdererConfig) ConsensusType() string {
   368  	fake.consensusTypeMutex.Lock()
   369  	ret, specificReturn := fake.consensusTypeReturnsOnCall[len(fake.consensusTypeArgsForCall)]
   370  	fake.consensusTypeArgsForCall = append(fake.consensusTypeArgsForCall, struct {
   371  	}{})
   372  	fake.recordInvocation("ConsensusType", []interface{}{})
   373  	fake.consensusTypeMutex.Unlock()
   374  	if fake.ConsensusTypeStub != nil {
   375  		return fake.ConsensusTypeStub()
   376  	}
   377  	if specificReturn {
   378  		return ret.result1
   379  	}
   380  	fakeReturns := fake.consensusTypeReturns
   381  	return fakeReturns.result1
   382  }
   383  
   384  func (fake *OrdererConfig) ConsensusTypeCallCount() int {
   385  	fake.consensusTypeMutex.RLock()
   386  	defer fake.consensusTypeMutex.RUnlock()
   387  	return len(fake.consensusTypeArgsForCall)
   388  }
   389  
   390  func (fake *OrdererConfig) ConsensusTypeCalls(stub func() string) {
   391  	fake.consensusTypeMutex.Lock()
   392  	defer fake.consensusTypeMutex.Unlock()
   393  	fake.ConsensusTypeStub = stub
   394  }
   395  
   396  func (fake *OrdererConfig) ConsensusTypeReturns(result1 string) {
   397  	fake.consensusTypeMutex.Lock()
   398  	defer fake.consensusTypeMutex.Unlock()
   399  	fake.ConsensusTypeStub = nil
   400  	fake.consensusTypeReturns = struct {
   401  		result1 string
   402  	}{result1}
   403  }
   404  
   405  func (fake *OrdererConfig) ConsensusTypeReturnsOnCall(i int, result1 string) {
   406  	fake.consensusTypeMutex.Lock()
   407  	defer fake.consensusTypeMutex.Unlock()
   408  	fake.ConsensusTypeStub = nil
   409  	if fake.consensusTypeReturnsOnCall == nil {
   410  		fake.consensusTypeReturnsOnCall = make(map[int]struct {
   411  			result1 string
   412  		})
   413  	}
   414  	fake.consensusTypeReturnsOnCall[i] = struct {
   415  		result1 string
   416  	}{result1}
   417  }
   418  
   419  func (fake *OrdererConfig) KafkaBrokers() []string {
   420  	fake.kafkaBrokersMutex.Lock()
   421  	ret, specificReturn := fake.kafkaBrokersReturnsOnCall[len(fake.kafkaBrokersArgsForCall)]
   422  	fake.kafkaBrokersArgsForCall = append(fake.kafkaBrokersArgsForCall, struct {
   423  	}{})
   424  	fake.recordInvocation("KafkaBrokers", []interface{}{})
   425  	fake.kafkaBrokersMutex.Unlock()
   426  	if fake.KafkaBrokersStub != nil {
   427  		return fake.KafkaBrokersStub()
   428  	}
   429  	if specificReturn {
   430  		return ret.result1
   431  	}
   432  	fakeReturns := fake.kafkaBrokersReturns
   433  	return fakeReturns.result1
   434  }
   435  
   436  func (fake *OrdererConfig) KafkaBrokersCallCount() int {
   437  	fake.kafkaBrokersMutex.RLock()
   438  	defer fake.kafkaBrokersMutex.RUnlock()
   439  	return len(fake.kafkaBrokersArgsForCall)
   440  }
   441  
   442  func (fake *OrdererConfig) KafkaBrokersCalls(stub func() []string) {
   443  	fake.kafkaBrokersMutex.Lock()
   444  	defer fake.kafkaBrokersMutex.Unlock()
   445  	fake.KafkaBrokersStub = stub
   446  }
   447  
   448  func (fake *OrdererConfig) KafkaBrokersReturns(result1 []string) {
   449  	fake.kafkaBrokersMutex.Lock()
   450  	defer fake.kafkaBrokersMutex.Unlock()
   451  	fake.KafkaBrokersStub = nil
   452  	fake.kafkaBrokersReturns = struct {
   453  		result1 []string
   454  	}{result1}
   455  }
   456  
   457  func (fake *OrdererConfig) KafkaBrokersReturnsOnCall(i int, result1 []string) {
   458  	fake.kafkaBrokersMutex.Lock()
   459  	defer fake.kafkaBrokersMutex.Unlock()
   460  	fake.KafkaBrokersStub = nil
   461  	if fake.kafkaBrokersReturnsOnCall == nil {
   462  		fake.kafkaBrokersReturnsOnCall = make(map[int]struct {
   463  			result1 []string
   464  		})
   465  	}
   466  	fake.kafkaBrokersReturnsOnCall[i] = struct {
   467  		result1 []string
   468  	}{result1}
   469  }
   470  
   471  func (fake *OrdererConfig) MaxChannelsCount() uint64 {
   472  	fake.maxChannelsCountMutex.Lock()
   473  	ret, specificReturn := fake.maxChannelsCountReturnsOnCall[len(fake.maxChannelsCountArgsForCall)]
   474  	fake.maxChannelsCountArgsForCall = append(fake.maxChannelsCountArgsForCall, struct {
   475  	}{})
   476  	fake.recordInvocation("MaxChannelsCount", []interface{}{})
   477  	fake.maxChannelsCountMutex.Unlock()
   478  	if fake.MaxChannelsCountStub != nil {
   479  		return fake.MaxChannelsCountStub()
   480  	}
   481  	if specificReturn {
   482  		return ret.result1
   483  	}
   484  	fakeReturns := fake.maxChannelsCountReturns
   485  	return fakeReturns.result1
   486  }
   487  
   488  func (fake *OrdererConfig) MaxChannelsCountCallCount() int {
   489  	fake.maxChannelsCountMutex.RLock()
   490  	defer fake.maxChannelsCountMutex.RUnlock()
   491  	return len(fake.maxChannelsCountArgsForCall)
   492  }
   493  
   494  func (fake *OrdererConfig) MaxChannelsCountCalls(stub func() uint64) {
   495  	fake.maxChannelsCountMutex.Lock()
   496  	defer fake.maxChannelsCountMutex.Unlock()
   497  	fake.MaxChannelsCountStub = stub
   498  }
   499  
   500  func (fake *OrdererConfig) MaxChannelsCountReturns(result1 uint64) {
   501  	fake.maxChannelsCountMutex.Lock()
   502  	defer fake.maxChannelsCountMutex.Unlock()
   503  	fake.MaxChannelsCountStub = nil
   504  	fake.maxChannelsCountReturns = struct {
   505  		result1 uint64
   506  	}{result1}
   507  }
   508  
   509  func (fake *OrdererConfig) MaxChannelsCountReturnsOnCall(i int, result1 uint64) {
   510  	fake.maxChannelsCountMutex.Lock()
   511  	defer fake.maxChannelsCountMutex.Unlock()
   512  	fake.MaxChannelsCountStub = nil
   513  	if fake.maxChannelsCountReturnsOnCall == nil {
   514  		fake.maxChannelsCountReturnsOnCall = make(map[int]struct {
   515  			result1 uint64
   516  		})
   517  	}
   518  	fake.maxChannelsCountReturnsOnCall[i] = struct {
   519  		result1 uint64
   520  	}{result1}
   521  }
   522  
   523  func (fake *OrdererConfig) Organizations() map[string]channelconfig.OrdererOrg {
   524  	fake.organizationsMutex.Lock()
   525  	ret, specificReturn := fake.organizationsReturnsOnCall[len(fake.organizationsArgsForCall)]
   526  	fake.organizationsArgsForCall = append(fake.organizationsArgsForCall, struct {
   527  	}{})
   528  	fake.recordInvocation("Organizations", []interface{}{})
   529  	fake.organizationsMutex.Unlock()
   530  	if fake.OrganizationsStub != nil {
   531  		return fake.OrganizationsStub()
   532  	}
   533  	if specificReturn {
   534  		return ret.result1
   535  	}
   536  	fakeReturns := fake.organizationsReturns
   537  	return fakeReturns.result1
   538  }
   539  
   540  func (fake *OrdererConfig) OrganizationsCallCount() int {
   541  	fake.organizationsMutex.RLock()
   542  	defer fake.organizationsMutex.RUnlock()
   543  	return len(fake.organizationsArgsForCall)
   544  }
   545  
   546  func (fake *OrdererConfig) OrganizationsCalls(stub func() map[string]channelconfig.OrdererOrg) {
   547  	fake.organizationsMutex.Lock()
   548  	defer fake.organizationsMutex.Unlock()
   549  	fake.OrganizationsStub = stub
   550  }
   551  
   552  func (fake *OrdererConfig) OrganizationsReturns(result1 map[string]channelconfig.OrdererOrg) {
   553  	fake.organizationsMutex.Lock()
   554  	defer fake.organizationsMutex.Unlock()
   555  	fake.OrganizationsStub = nil
   556  	fake.organizationsReturns = struct {
   557  		result1 map[string]channelconfig.OrdererOrg
   558  	}{result1}
   559  }
   560  
   561  func (fake *OrdererConfig) OrganizationsReturnsOnCall(i int, result1 map[string]channelconfig.OrdererOrg) {
   562  	fake.organizationsMutex.Lock()
   563  	defer fake.organizationsMutex.Unlock()
   564  	fake.OrganizationsStub = nil
   565  	if fake.organizationsReturnsOnCall == nil {
   566  		fake.organizationsReturnsOnCall = make(map[int]struct {
   567  			result1 map[string]channelconfig.OrdererOrg
   568  		})
   569  	}
   570  	fake.organizationsReturnsOnCall[i] = struct {
   571  		result1 map[string]channelconfig.OrdererOrg
   572  	}{result1}
   573  }
   574  
   575  func (fake *OrdererConfig) Invocations() map[string][][]interface{} {
   576  	fake.invocationsMutex.RLock()
   577  	defer fake.invocationsMutex.RUnlock()
   578  	fake.batchSizeMutex.RLock()
   579  	defer fake.batchSizeMutex.RUnlock()
   580  	fake.batchTimeoutMutex.RLock()
   581  	defer fake.batchTimeoutMutex.RUnlock()
   582  	fake.capabilitiesMutex.RLock()
   583  	defer fake.capabilitiesMutex.RUnlock()
   584  	fake.consensusMetadataMutex.RLock()
   585  	defer fake.consensusMetadataMutex.RUnlock()
   586  	fake.consensusStateMutex.RLock()
   587  	defer fake.consensusStateMutex.RUnlock()
   588  	fake.consensusTypeMutex.RLock()
   589  	defer fake.consensusTypeMutex.RUnlock()
   590  	fake.kafkaBrokersMutex.RLock()
   591  	defer fake.kafkaBrokersMutex.RUnlock()
   592  	fake.maxChannelsCountMutex.RLock()
   593  	defer fake.maxChannelsCountMutex.RUnlock()
   594  	fake.organizationsMutex.RLock()
   595  	defer fake.organizationsMutex.RUnlock()
   596  	copiedInvocations := map[string][][]interface{}{}
   597  	for key, value := range fake.invocations {
   598  		copiedInvocations[key] = value
   599  	}
   600  	return copiedInvocations
   601  }
   602  
   603  func (fake *OrdererConfig) recordInvocation(key string, args []interface{}) {
   604  	fake.invocationsMutex.Lock()
   605  	defer fake.invocationsMutex.Unlock()
   606  	if fake.invocations == nil {
   607  		fake.invocations = map[string][][]interface{}{}
   608  	}
   609  	if fake.invocations[key] == nil {
   610  		fake.invocations[key] = [][]interface{}{}
   611  	}
   612  	fake.invocations[key] = append(fake.invocations[key], args)
   613  }