github.com/orange-cloudfoundry/cli@v7.1.0+incompatible/api/cloudcontroller/ccv3/ccv3fakes/fake_requester.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package ccv3fakes
     3  
     4  import (
     5  	"io"
     6  	"sync"
     7  
     8  	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3"
     9  	"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/internal"
    10  )
    11  
    12  type FakeRequester struct {
    13  	InitializeConnectionStub        func(ccv3.TargetSettings)
    14  	initializeConnectionMutex       sync.RWMutex
    15  	initializeConnectionArgsForCall []struct {
    16  		arg1 ccv3.TargetSettings
    17  	}
    18  	InitializeRouterStub        func(map[string]string)
    19  	initializeRouterMutex       sync.RWMutex
    20  	initializeRouterArgsForCall []struct {
    21  		arg1 map[string]string
    22  	}
    23  	MakeListRequestStub        func(ccv3.RequestParams) (ccv3.IncludedResources, ccv3.Warnings, error)
    24  	makeListRequestMutex       sync.RWMutex
    25  	makeListRequestArgsForCall []struct {
    26  		arg1 ccv3.RequestParams
    27  	}
    28  	makeListRequestReturns struct {
    29  		result1 ccv3.IncludedResources
    30  		result2 ccv3.Warnings
    31  		result3 error
    32  	}
    33  	makeListRequestReturnsOnCall map[int]struct {
    34  		result1 ccv3.IncludedResources
    35  		result2 ccv3.Warnings
    36  		result3 error
    37  	}
    38  	MakeRequestStub        func(ccv3.RequestParams) (ccv3.JobURL, ccv3.Warnings, error)
    39  	makeRequestMutex       sync.RWMutex
    40  	makeRequestArgsForCall []struct {
    41  		arg1 ccv3.RequestParams
    42  	}
    43  	makeRequestReturns struct {
    44  		result1 ccv3.JobURL
    45  		result2 ccv3.Warnings
    46  		result3 error
    47  	}
    48  	makeRequestReturnsOnCall map[int]struct {
    49  		result1 ccv3.JobURL
    50  		result2 ccv3.Warnings
    51  		result3 error
    52  	}
    53  	MakeRequestReceiveRawStub        func(string, internal.Params, string) ([]byte, ccv3.Warnings, error)
    54  	makeRequestReceiveRawMutex       sync.RWMutex
    55  	makeRequestReceiveRawArgsForCall []struct {
    56  		arg1 string
    57  		arg2 internal.Params
    58  		arg3 string
    59  	}
    60  	makeRequestReceiveRawReturns struct {
    61  		result1 []byte
    62  		result2 ccv3.Warnings
    63  		result3 error
    64  	}
    65  	makeRequestReceiveRawReturnsOnCall map[int]struct {
    66  		result1 []byte
    67  		result2 ccv3.Warnings
    68  		result3 error
    69  	}
    70  	MakeRequestSendRawStub        func(string, internal.Params, []byte, string, interface{}) (string, ccv3.Warnings, error)
    71  	makeRequestSendRawMutex       sync.RWMutex
    72  	makeRequestSendRawArgsForCall []struct {
    73  		arg1 string
    74  		arg2 internal.Params
    75  		arg3 []byte
    76  		arg4 string
    77  		arg5 interface{}
    78  	}
    79  	makeRequestSendRawReturns struct {
    80  		result1 string
    81  		result2 ccv3.Warnings
    82  		result3 error
    83  	}
    84  	makeRequestSendRawReturnsOnCall map[int]struct {
    85  		result1 string
    86  		result2 ccv3.Warnings
    87  		result3 error
    88  	}
    89  	MakeRequestUploadAsyncStub        func(string, internal.Params, string, io.ReadSeeker, int64, interface{}, <-chan error) (string, ccv3.Warnings, error)
    90  	makeRequestUploadAsyncMutex       sync.RWMutex
    91  	makeRequestUploadAsyncArgsForCall []struct {
    92  		arg1 string
    93  		arg2 internal.Params
    94  		arg3 string
    95  		arg4 io.ReadSeeker
    96  		arg5 int64
    97  		arg6 interface{}
    98  		arg7 <-chan error
    99  	}
   100  	makeRequestUploadAsyncReturns struct {
   101  		result1 string
   102  		result2 ccv3.Warnings
   103  		result3 error
   104  	}
   105  	makeRequestUploadAsyncReturnsOnCall map[int]struct {
   106  		result1 string
   107  		result2 ccv3.Warnings
   108  		result3 error
   109  	}
   110  	WrapConnectionStub        func(ccv3.ConnectionWrapper)
   111  	wrapConnectionMutex       sync.RWMutex
   112  	wrapConnectionArgsForCall []struct {
   113  		arg1 ccv3.ConnectionWrapper
   114  	}
   115  	invocations      map[string][][]interface{}
   116  	invocationsMutex sync.RWMutex
   117  }
   118  
   119  func (fake *FakeRequester) InitializeConnection(arg1 ccv3.TargetSettings) {
   120  	fake.initializeConnectionMutex.Lock()
   121  	fake.initializeConnectionArgsForCall = append(fake.initializeConnectionArgsForCall, struct {
   122  		arg1 ccv3.TargetSettings
   123  	}{arg1})
   124  	fake.recordInvocation("InitializeConnection", []interface{}{arg1})
   125  	fake.initializeConnectionMutex.Unlock()
   126  	if fake.InitializeConnectionStub != nil {
   127  		fake.InitializeConnectionStub(arg1)
   128  	}
   129  }
   130  
   131  func (fake *FakeRequester) InitializeConnectionCallCount() int {
   132  	fake.initializeConnectionMutex.RLock()
   133  	defer fake.initializeConnectionMutex.RUnlock()
   134  	return len(fake.initializeConnectionArgsForCall)
   135  }
   136  
   137  func (fake *FakeRequester) InitializeConnectionCalls(stub func(ccv3.TargetSettings)) {
   138  	fake.initializeConnectionMutex.Lock()
   139  	defer fake.initializeConnectionMutex.Unlock()
   140  	fake.InitializeConnectionStub = stub
   141  }
   142  
   143  func (fake *FakeRequester) InitializeConnectionArgsForCall(i int) ccv3.TargetSettings {
   144  	fake.initializeConnectionMutex.RLock()
   145  	defer fake.initializeConnectionMutex.RUnlock()
   146  	argsForCall := fake.initializeConnectionArgsForCall[i]
   147  	return argsForCall.arg1
   148  }
   149  
   150  func (fake *FakeRequester) InitializeRouter(arg1 map[string]string) {
   151  	fake.initializeRouterMutex.Lock()
   152  	fake.initializeRouterArgsForCall = append(fake.initializeRouterArgsForCall, struct {
   153  		arg1 map[string]string
   154  	}{arg1})
   155  	fake.recordInvocation("InitializeRouter", []interface{}{arg1})
   156  	fake.initializeRouterMutex.Unlock()
   157  	if fake.InitializeRouterStub != nil {
   158  		fake.InitializeRouterStub(arg1)
   159  	}
   160  }
   161  
   162  func (fake *FakeRequester) InitializeRouterCallCount() int {
   163  	fake.initializeRouterMutex.RLock()
   164  	defer fake.initializeRouterMutex.RUnlock()
   165  	return len(fake.initializeRouterArgsForCall)
   166  }
   167  
   168  func (fake *FakeRequester) InitializeRouterCalls(stub func(map[string]string)) {
   169  	fake.initializeRouterMutex.Lock()
   170  	defer fake.initializeRouterMutex.Unlock()
   171  	fake.InitializeRouterStub = stub
   172  }
   173  
   174  func (fake *FakeRequester) InitializeRouterArgsForCall(i int) map[string]string {
   175  	fake.initializeRouterMutex.RLock()
   176  	defer fake.initializeRouterMutex.RUnlock()
   177  	argsForCall := fake.initializeRouterArgsForCall[i]
   178  	return argsForCall.arg1
   179  }
   180  
   181  func (fake *FakeRequester) MakeListRequest(arg1 ccv3.RequestParams) (ccv3.IncludedResources, ccv3.Warnings, error) {
   182  	fake.makeListRequestMutex.Lock()
   183  	ret, specificReturn := fake.makeListRequestReturnsOnCall[len(fake.makeListRequestArgsForCall)]
   184  	fake.makeListRequestArgsForCall = append(fake.makeListRequestArgsForCall, struct {
   185  		arg1 ccv3.RequestParams
   186  	}{arg1})
   187  	fake.recordInvocation("MakeListRequest", []interface{}{arg1})
   188  	fake.makeListRequestMutex.Unlock()
   189  	if fake.MakeListRequestStub != nil {
   190  		return fake.MakeListRequestStub(arg1)
   191  	}
   192  	if specificReturn {
   193  		return ret.result1, ret.result2, ret.result3
   194  	}
   195  	fakeReturns := fake.makeListRequestReturns
   196  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   197  }
   198  
   199  func (fake *FakeRequester) MakeListRequestCallCount() int {
   200  	fake.makeListRequestMutex.RLock()
   201  	defer fake.makeListRequestMutex.RUnlock()
   202  	return len(fake.makeListRequestArgsForCall)
   203  }
   204  
   205  func (fake *FakeRequester) MakeListRequestCalls(stub func(ccv3.RequestParams) (ccv3.IncludedResources, ccv3.Warnings, error)) {
   206  	fake.makeListRequestMutex.Lock()
   207  	defer fake.makeListRequestMutex.Unlock()
   208  	fake.MakeListRequestStub = stub
   209  }
   210  
   211  func (fake *FakeRequester) MakeListRequestArgsForCall(i int) ccv3.RequestParams {
   212  	fake.makeListRequestMutex.RLock()
   213  	defer fake.makeListRequestMutex.RUnlock()
   214  	argsForCall := fake.makeListRequestArgsForCall[i]
   215  	return argsForCall.arg1
   216  }
   217  
   218  func (fake *FakeRequester) MakeListRequestReturns(result1 ccv3.IncludedResources, result2 ccv3.Warnings, result3 error) {
   219  	fake.makeListRequestMutex.Lock()
   220  	defer fake.makeListRequestMutex.Unlock()
   221  	fake.MakeListRequestStub = nil
   222  	fake.makeListRequestReturns = struct {
   223  		result1 ccv3.IncludedResources
   224  		result2 ccv3.Warnings
   225  		result3 error
   226  	}{result1, result2, result3}
   227  }
   228  
   229  func (fake *FakeRequester) MakeListRequestReturnsOnCall(i int, result1 ccv3.IncludedResources, result2 ccv3.Warnings, result3 error) {
   230  	fake.makeListRequestMutex.Lock()
   231  	defer fake.makeListRequestMutex.Unlock()
   232  	fake.MakeListRequestStub = nil
   233  	if fake.makeListRequestReturnsOnCall == nil {
   234  		fake.makeListRequestReturnsOnCall = make(map[int]struct {
   235  			result1 ccv3.IncludedResources
   236  			result2 ccv3.Warnings
   237  			result3 error
   238  		})
   239  	}
   240  	fake.makeListRequestReturnsOnCall[i] = struct {
   241  		result1 ccv3.IncludedResources
   242  		result2 ccv3.Warnings
   243  		result3 error
   244  	}{result1, result2, result3}
   245  }
   246  
   247  func (fake *FakeRequester) MakeRequest(arg1 ccv3.RequestParams) (ccv3.JobURL, ccv3.Warnings, error) {
   248  	fake.makeRequestMutex.Lock()
   249  	ret, specificReturn := fake.makeRequestReturnsOnCall[len(fake.makeRequestArgsForCall)]
   250  	fake.makeRequestArgsForCall = append(fake.makeRequestArgsForCall, struct {
   251  		arg1 ccv3.RequestParams
   252  	}{arg1})
   253  	fake.recordInvocation("MakeRequest", []interface{}{arg1})
   254  	fake.makeRequestMutex.Unlock()
   255  	if fake.MakeRequestStub != nil {
   256  		return fake.MakeRequestStub(arg1)
   257  	}
   258  	if specificReturn {
   259  		return ret.result1, ret.result2, ret.result3
   260  	}
   261  	fakeReturns := fake.makeRequestReturns
   262  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   263  }
   264  
   265  func (fake *FakeRequester) MakeRequestCallCount() int {
   266  	fake.makeRequestMutex.RLock()
   267  	defer fake.makeRequestMutex.RUnlock()
   268  	return len(fake.makeRequestArgsForCall)
   269  }
   270  
   271  func (fake *FakeRequester) MakeRequestCalls(stub func(ccv3.RequestParams) (ccv3.JobURL, ccv3.Warnings, error)) {
   272  	fake.makeRequestMutex.Lock()
   273  	defer fake.makeRequestMutex.Unlock()
   274  	fake.MakeRequestStub = stub
   275  }
   276  
   277  func (fake *FakeRequester) MakeRequestArgsForCall(i int) ccv3.RequestParams {
   278  	fake.makeRequestMutex.RLock()
   279  	defer fake.makeRequestMutex.RUnlock()
   280  	argsForCall := fake.makeRequestArgsForCall[i]
   281  	return argsForCall.arg1
   282  }
   283  
   284  func (fake *FakeRequester) MakeRequestReturns(result1 ccv3.JobURL, result2 ccv3.Warnings, result3 error) {
   285  	fake.makeRequestMutex.Lock()
   286  	defer fake.makeRequestMutex.Unlock()
   287  	fake.MakeRequestStub = nil
   288  	fake.makeRequestReturns = struct {
   289  		result1 ccv3.JobURL
   290  		result2 ccv3.Warnings
   291  		result3 error
   292  	}{result1, result2, result3}
   293  }
   294  
   295  func (fake *FakeRequester) MakeRequestReturnsOnCall(i int, result1 ccv3.JobURL, result2 ccv3.Warnings, result3 error) {
   296  	fake.makeRequestMutex.Lock()
   297  	defer fake.makeRequestMutex.Unlock()
   298  	fake.MakeRequestStub = nil
   299  	if fake.makeRequestReturnsOnCall == nil {
   300  		fake.makeRequestReturnsOnCall = make(map[int]struct {
   301  			result1 ccv3.JobURL
   302  			result2 ccv3.Warnings
   303  			result3 error
   304  		})
   305  	}
   306  	fake.makeRequestReturnsOnCall[i] = struct {
   307  		result1 ccv3.JobURL
   308  		result2 ccv3.Warnings
   309  		result3 error
   310  	}{result1, result2, result3}
   311  }
   312  
   313  func (fake *FakeRequester) MakeRequestReceiveRaw(arg1 string, arg2 internal.Params, arg3 string) ([]byte, ccv3.Warnings, error) {
   314  	fake.makeRequestReceiveRawMutex.Lock()
   315  	ret, specificReturn := fake.makeRequestReceiveRawReturnsOnCall[len(fake.makeRequestReceiveRawArgsForCall)]
   316  	fake.makeRequestReceiveRawArgsForCall = append(fake.makeRequestReceiveRawArgsForCall, struct {
   317  		arg1 string
   318  		arg2 internal.Params
   319  		arg3 string
   320  	}{arg1, arg2, arg3})
   321  	fake.recordInvocation("MakeRequestReceiveRaw", []interface{}{arg1, arg2, arg3})
   322  	fake.makeRequestReceiveRawMutex.Unlock()
   323  	if fake.MakeRequestReceiveRawStub != nil {
   324  		return fake.MakeRequestReceiveRawStub(arg1, arg2, arg3)
   325  	}
   326  	if specificReturn {
   327  		return ret.result1, ret.result2, ret.result3
   328  	}
   329  	fakeReturns := fake.makeRequestReceiveRawReturns
   330  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   331  }
   332  
   333  func (fake *FakeRequester) MakeRequestReceiveRawCallCount() int {
   334  	fake.makeRequestReceiveRawMutex.RLock()
   335  	defer fake.makeRequestReceiveRawMutex.RUnlock()
   336  	return len(fake.makeRequestReceiveRawArgsForCall)
   337  }
   338  
   339  func (fake *FakeRequester) MakeRequestReceiveRawCalls(stub func(string, internal.Params, string) ([]byte, ccv3.Warnings, error)) {
   340  	fake.makeRequestReceiveRawMutex.Lock()
   341  	defer fake.makeRequestReceiveRawMutex.Unlock()
   342  	fake.MakeRequestReceiveRawStub = stub
   343  }
   344  
   345  func (fake *FakeRequester) MakeRequestReceiveRawArgsForCall(i int) (string, internal.Params, string) {
   346  	fake.makeRequestReceiveRawMutex.RLock()
   347  	defer fake.makeRequestReceiveRawMutex.RUnlock()
   348  	argsForCall := fake.makeRequestReceiveRawArgsForCall[i]
   349  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   350  }
   351  
   352  func (fake *FakeRequester) MakeRequestReceiveRawReturns(result1 []byte, result2 ccv3.Warnings, result3 error) {
   353  	fake.makeRequestReceiveRawMutex.Lock()
   354  	defer fake.makeRequestReceiveRawMutex.Unlock()
   355  	fake.MakeRequestReceiveRawStub = nil
   356  	fake.makeRequestReceiveRawReturns = struct {
   357  		result1 []byte
   358  		result2 ccv3.Warnings
   359  		result3 error
   360  	}{result1, result2, result3}
   361  }
   362  
   363  func (fake *FakeRequester) MakeRequestReceiveRawReturnsOnCall(i int, result1 []byte, result2 ccv3.Warnings, result3 error) {
   364  	fake.makeRequestReceiveRawMutex.Lock()
   365  	defer fake.makeRequestReceiveRawMutex.Unlock()
   366  	fake.MakeRequestReceiveRawStub = nil
   367  	if fake.makeRequestReceiveRawReturnsOnCall == nil {
   368  		fake.makeRequestReceiveRawReturnsOnCall = make(map[int]struct {
   369  			result1 []byte
   370  			result2 ccv3.Warnings
   371  			result3 error
   372  		})
   373  	}
   374  	fake.makeRequestReceiveRawReturnsOnCall[i] = struct {
   375  		result1 []byte
   376  		result2 ccv3.Warnings
   377  		result3 error
   378  	}{result1, result2, result3}
   379  }
   380  
   381  func (fake *FakeRequester) MakeRequestSendRaw(arg1 string, arg2 internal.Params, arg3 []byte, arg4 string, arg5 interface{}) (string, ccv3.Warnings, error) {
   382  	var arg3Copy []byte
   383  	if arg3 != nil {
   384  		arg3Copy = make([]byte, len(arg3))
   385  		copy(arg3Copy, arg3)
   386  	}
   387  	fake.makeRequestSendRawMutex.Lock()
   388  	ret, specificReturn := fake.makeRequestSendRawReturnsOnCall[len(fake.makeRequestSendRawArgsForCall)]
   389  	fake.makeRequestSendRawArgsForCall = append(fake.makeRequestSendRawArgsForCall, struct {
   390  		arg1 string
   391  		arg2 internal.Params
   392  		arg3 []byte
   393  		arg4 string
   394  		arg5 interface{}
   395  	}{arg1, arg2, arg3Copy, arg4, arg5})
   396  	fake.recordInvocation("MakeRequestSendRaw", []interface{}{arg1, arg2, arg3Copy, arg4, arg5})
   397  	fake.makeRequestSendRawMutex.Unlock()
   398  	if fake.MakeRequestSendRawStub != nil {
   399  		return fake.MakeRequestSendRawStub(arg1, arg2, arg3, arg4, arg5)
   400  	}
   401  	if specificReturn {
   402  		return ret.result1, ret.result2, ret.result3
   403  	}
   404  	fakeReturns := fake.makeRequestSendRawReturns
   405  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   406  }
   407  
   408  func (fake *FakeRequester) MakeRequestSendRawCallCount() int {
   409  	fake.makeRequestSendRawMutex.RLock()
   410  	defer fake.makeRequestSendRawMutex.RUnlock()
   411  	return len(fake.makeRequestSendRawArgsForCall)
   412  }
   413  
   414  func (fake *FakeRequester) MakeRequestSendRawCalls(stub func(string, internal.Params, []byte, string, interface{}) (string, ccv3.Warnings, error)) {
   415  	fake.makeRequestSendRawMutex.Lock()
   416  	defer fake.makeRequestSendRawMutex.Unlock()
   417  	fake.MakeRequestSendRawStub = stub
   418  }
   419  
   420  func (fake *FakeRequester) MakeRequestSendRawArgsForCall(i int) (string, internal.Params, []byte, string, interface{}) {
   421  	fake.makeRequestSendRawMutex.RLock()
   422  	defer fake.makeRequestSendRawMutex.RUnlock()
   423  	argsForCall := fake.makeRequestSendRawArgsForCall[i]
   424  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5
   425  }
   426  
   427  func (fake *FakeRequester) MakeRequestSendRawReturns(result1 string, result2 ccv3.Warnings, result3 error) {
   428  	fake.makeRequestSendRawMutex.Lock()
   429  	defer fake.makeRequestSendRawMutex.Unlock()
   430  	fake.MakeRequestSendRawStub = nil
   431  	fake.makeRequestSendRawReturns = struct {
   432  		result1 string
   433  		result2 ccv3.Warnings
   434  		result3 error
   435  	}{result1, result2, result3}
   436  }
   437  
   438  func (fake *FakeRequester) MakeRequestSendRawReturnsOnCall(i int, result1 string, result2 ccv3.Warnings, result3 error) {
   439  	fake.makeRequestSendRawMutex.Lock()
   440  	defer fake.makeRequestSendRawMutex.Unlock()
   441  	fake.MakeRequestSendRawStub = nil
   442  	if fake.makeRequestSendRawReturnsOnCall == nil {
   443  		fake.makeRequestSendRawReturnsOnCall = make(map[int]struct {
   444  			result1 string
   445  			result2 ccv3.Warnings
   446  			result3 error
   447  		})
   448  	}
   449  	fake.makeRequestSendRawReturnsOnCall[i] = struct {
   450  		result1 string
   451  		result2 ccv3.Warnings
   452  		result3 error
   453  	}{result1, result2, result3}
   454  }
   455  
   456  func (fake *FakeRequester) MakeRequestUploadAsync(arg1 string, arg2 internal.Params, arg3 string, arg4 io.ReadSeeker, arg5 int64, arg6 interface{}, arg7 <-chan error) (string, ccv3.Warnings, error) {
   457  	fake.makeRequestUploadAsyncMutex.Lock()
   458  	ret, specificReturn := fake.makeRequestUploadAsyncReturnsOnCall[len(fake.makeRequestUploadAsyncArgsForCall)]
   459  	fake.makeRequestUploadAsyncArgsForCall = append(fake.makeRequestUploadAsyncArgsForCall, struct {
   460  		arg1 string
   461  		arg2 internal.Params
   462  		arg3 string
   463  		arg4 io.ReadSeeker
   464  		arg5 int64
   465  		arg6 interface{}
   466  		arg7 <-chan error
   467  	}{arg1, arg2, arg3, arg4, arg5, arg6, arg7})
   468  	fake.recordInvocation("MakeRequestUploadAsync", []interface{}{arg1, arg2, arg3, arg4, arg5, arg6, arg7})
   469  	fake.makeRequestUploadAsyncMutex.Unlock()
   470  	if fake.MakeRequestUploadAsyncStub != nil {
   471  		return fake.MakeRequestUploadAsyncStub(arg1, arg2, arg3, arg4, arg5, arg6, arg7)
   472  	}
   473  	if specificReturn {
   474  		return ret.result1, ret.result2, ret.result3
   475  	}
   476  	fakeReturns := fake.makeRequestUploadAsyncReturns
   477  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   478  }
   479  
   480  func (fake *FakeRequester) MakeRequestUploadAsyncCallCount() int {
   481  	fake.makeRequestUploadAsyncMutex.RLock()
   482  	defer fake.makeRequestUploadAsyncMutex.RUnlock()
   483  	return len(fake.makeRequestUploadAsyncArgsForCall)
   484  }
   485  
   486  func (fake *FakeRequester) MakeRequestUploadAsyncCalls(stub func(string, internal.Params, string, io.ReadSeeker, int64, interface{}, <-chan error) (string, ccv3.Warnings, error)) {
   487  	fake.makeRequestUploadAsyncMutex.Lock()
   488  	defer fake.makeRequestUploadAsyncMutex.Unlock()
   489  	fake.MakeRequestUploadAsyncStub = stub
   490  }
   491  
   492  func (fake *FakeRequester) MakeRequestUploadAsyncArgsForCall(i int) (string, internal.Params, string, io.ReadSeeker, int64, interface{}, <-chan error) {
   493  	fake.makeRequestUploadAsyncMutex.RLock()
   494  	defer fake.makeRequestUploadAsyncMutex.RUnlock()
   495  	argsForCall := fake.makeRequestUploadAsyncArgsForCall[i]
   496  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5, argsForCall.arg6, argsForCall.arg7
   497  }
   498  
   499  func (fake *FakeRequester) MakeRequestUploadAsyncReturns(result1 string, result2 ccv3.Warnings, result3 error) {
   500  	fake.makeRequestUploadAsyncMutex.Lock()
   501  	defer fake.makeRequestUploadAsyncMutex.Unlock()
   502  	fake.MakeRequestUploadAsyncStub = nil
   503  	fake.makeRequestUploadAsyncReturns = struct {
   504  		result1 string
   505  		result2 ccv3.Warnings
   506  		result3 error
   507  	}{result1, result2, result3}
   508  }
   509  
   510  func (fake *FakeRequester) MakeRequestUploadAsyncReturnsOnCall(i int, result1 string, result2 ccv3.Warnings, result3 error) {
   511  	fake.makeRequestUploadAsyncMutex.Lock()
   512  	defer fake.makeRequestUploadAsyncMutex.Unlock()
   513  	fake.MakeRequestUploadAsyncStub = nil
   514  	if fake.makeRequestUploadAsyncReturnsOnCall == nil {
   515  		fake.makeRequestUploadAsyncReturnsOnCall = make(map[int]struct {
   516  			result1 string
   517  			result2 ccv3.Warnings
   518  			result3 error
   519  		})
   520  	}
   521  	fake.makeRequestUploadAsyncReturnsOnCall[i] = struct {
   522  		result1 string
   523  		result2 ccv3.Warnings
   524  		result3 error
   525  	}{result1, result2, result3}
   526  }
   527  
   528  func (fake *FakeRequester) WrapConnection(arg1 ccv3.ConnectionWrapper) {
   529  	fake.wrapConnectionMutex.Lock()
   530  	fake.wrapConnectionArgsForCall = append(fake.wrapConnectionArgsForCall, struct {
   531  		arg1 ccv3.ConnectionWrapper
   532  	}{arg1})
   533  	fake.recordInvocation("WrapConnection", []interface{}{arg1})
   534  	fake.wrapConnectionMutex.Unlock()
   535  	if fake.WrapConnectionStub != nil {
   536  		fake.WrapConnectionStub(arg1)
   537  	}
   538  }
   539  
   540  func (fake *FakeRequester) WrapConnectionCallCount() int {
   541  	fake.wrapConnectionMutex.RLock()
   542  	defer fake.wrapConnectionMutex.RUnlock()
   543  	return len(fake.wrapConnectionArgsForCall)
   544  }
   545  
   546  func (fake *FakeRequester) WrapConnectionCalls(stub func(ccv3.ConnectionWrapper)) {
   547  	fake.wrapConnectionMutex.Lock()
   548  	defer fake.wrapConnectionMutex.Unlock()
   549  	fake.WrapConnectionStub = stub
   550  }
   551  
   552  func (fake *FakeRequester) WrapConnectionArgsForCall(i int) ccv3.ConnectionWrapper {
   553  	fake.wrapConnectionMutex.RLock()
   554  	defer fake.wrapConnectionMutex.RUnlock()
   555  	argsForCall := fake.wrapConnectionArgsForCall[i]
   556  	return argsForCall.arg1
   557  }
   558  
   559  func (fake *FakeRequester) Invocations() map[string][][]interface{} {
   560  	fake.invocationsMutex.RLock()
   561  	defer fake.invocationsMutex.RUnlock()
   562  	fake.initializeConnectionMutex.RLock()
   563  	defer fake.initializeConnectionMutex.RUnlock()
   564  	fake.initializeRouterMutex.RLock()
   565  	defer fake.initializeRouterMutex.RUnlock()
   566  	fake.makeListRequestMutex.RLock()
   567  	defer fake.makeListRequestMutex.RUnlock()
   568  	fake.makeRequestMutex.RLock()
   569  	defer fake.makeRequestMutex.RUnlock()
   570  	fake.makeRequestReceiveRawMutex.RLock()
   571  	defer fake.makeRequestReceiveRawMutex.RUnlock()
   572  	fake.makeRequestSendRawMutex.RLock()
   573  	defer fake.makeRequestSendRawMutex.RUnlock()
   574  	fake.makeRequestUploadAsyncMutex.RLock()
   575  	defer fake.makeRequestUploadAsyncMutex.RUnlock()
   576  	fake.wrapConnectionMutex.RLock()
   577  	defer fake.wrapConnectionMutex.RUnlock()
   578  	copiedInvocations := map[string][][]interface{}{}
   579  	for key, value := range fake.invocations {
   580  		copiedInvocations[key] = value
   581  	}
   582  	return copiedInvocations
   583  }
   584  
   585  func (fake *FakeRequester) recordInvocation(key string, args []interface{}) {
   586  	fake.invocationsMutex.Lock()
   587  	defer fake.invocationsMutex.Unlock()
   588  	if fake.invocations == nil {
   589  		fake.invocations = map[string][][]interface{}{}
   590  	}
   591  	if fake.invocations[key] == nil {
   592  		fake.invocations[key] = [][]interface{}{}
   593  	}
   594  	fake.invocations[key] = append(fake.invocations[key], args)
   595  }
   596  
   597  var _ ccv3.Requester = new(FakeRequester)