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