github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/api/uaa/wrapper/wrapperfakes/fake_request_logger_output.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package wrapperfakes
     3  
     4  import (
     5  	"sync"
     6  	"time"
     7  
     8  	"code.cloudfoundry.org/cli/api/uaa/wrapper"
     9  )
    10  
    11  type FakeRequestLoggerOutput struct {
    12  	DisplayBodyStub        func([]byte) error
    13  	displayBodyMutex       sync.RWMutex
    14  	displayBodyArgsForCall []struct {
    15  		arg1 []byte
    16  	}
    17  	displayBodyReturns struct {
    18  		result1 error
    19  	}
    20  	displayBodyReturnsOnCall map[int]struct {
    21  		result1 error
    22  	}
    23  	DisplayHeaderStub        func(string, string) error
    24  	displayHeaderMutex       sync.RWMutex
    25  	displayHeaderArgsForCall []struct {
    26  		arg1 string
    27  		arg2 string
    28  	}
    29  	displayHeaderReturns struct {
    30  		result1 error
    31  	}
    32  	displayHeaderReturnsOnCall map[int]struct {
    33  		result1 error
    34  	}
    35  	DisplayHostStub        func(string) error
    36  	displayHostMutex       sync.RWMutex
    37  	displayHostArgsForCall []struct {
    38  		arg1 string
    39  	}
    40  	displayHostReturns struct {
    41  		result1 error
    42  	}
    43  	displayHostReturnsOnCall map[int]struct {
    44  		result1 error
    45  	}
    46  	DisplayJSONBodyStub        func([]byte) error
    47  	displayJSONBodyMutex       sync.RWMutex
    48  	displayJSONBodyArgsForCall []struct {
    49  		arg1 []byte
    50  	}
    51  	displayJSONBodyReturns struct {
    52  		result1 error
    53  	}
    54  	displayJSONBodyReturnsOnCall map[int]struct {
    55  		result1 error
    56  	}
    57  	DisplayRequestHeaderStub        func(string, string, string) error
    58  	displayRequestHeaderMutex       sync.RWMutex
    59  	displayRequestHeaderArgsForCall []struct {
    60  		arg1 string
    61  		arg2 string
    62  		arg3 string
    63  	}
    64  	displayRequestHeaderReturns struct {
    65  		result1 error
    66  	}
    67  	displayRequestHeaderReturnsOnCall map[int]struct {
    68  		result1 error
    69  	}
    70  	DisplayResponseHeaderStub        func(string, string) error
    71  	displayResponseHeaderMutex       sync.RWMutex
    72  	displayResponseHeaderArgsForCall []struct {
    73  		arg1 string
    74  		arg2 string
    75  	}
    76  	displayResponseHeaderReturns struct {
    77  		result1 error
    78  	}
    79  	displayResponseHeaderReturnsOnCall map[int]struct {
    80  		result1 error
    81  	}
    82  	DisplayTypeStub        func(string, time.Time) error
    83  	displayTypeMutex       sync.RWMutex
    84  	displayTypeArgsForCall []struct {
    85  		arg1 string
    86  		arg2 time.Time
    87  	}
    88  	displayTypeReturns struct {
    89  		result1 error
    90  	}
    91  	displayTypeReturnsOnCall map[int]struct {
    92  		result1 error
    93  	}
    94  	HandleInternalErrorStub        func(error)
    95  	handleInternalErrorMutex       sync.RWMutex
    96  	handleInternalErrorArgsForCall []struct {
    97  		arg1 error
    98  	}
    99  	StartStub        func() error
   100  	startMutex       sync.RWMutex
   101  	startArgsForCall []struct {
   102  	}
   103  	startReturns struct {
   104  		result1 error
   105  	}
   106  	startReturnsOnCall map[int]struct {
   107  		result1 error
   108  	}
   109  	StopStub        func() error
   110  	stopMutex       sync.RWMutex
   111  	stopArgsForCall []struct {
   112  	}
   113  	stopReturns struct {
   114  		result1 error
   115  	}
   116  	stopReturnsOnCall map[int]struct {
   117  		result1 error
   118  	}
   119  	invocations      map[string][][]interface{}
   120  	invocationsMutex sync.RWMutex
   121  }
   122  
   123  func (fake *FakeRequestLoggerOutput) DisplayBody(arg1 []byte) error {
   124  	var arg1Copy []byte
   125  	if arg1 != nil {
   126  		arg1Copy = make([]byte, len(arg1))
   127  		copy(arg1Copy, arg1)
   128  	}
   129  	fake.displayBodyMutex.Lock()
   130  	ret, specificReturn := fake.displayBodyReturnsOnCall[len(fake.displayBodyArgsForCall)]
   131  	fake.displayBodyArgsForCall = append(fake.displayBodyArgsForCall, struct {
   132  		arg1 []byte
   133  	}{arg1Copy})
   134  	fake.recordInvocation("DisplayBody", []interface{}{arg1Copy})
   135  	fake.displayBodyMutex.Unlock()
   136  	if fake.DisplayBodyStub != nil {
   137  		return fake.DisplayBodyStub(arg1)
   138  	}
   139  	if specificReturn {
   140  		return ret.result1
   141  	}
   142  	fakeReturns := fake.displayBodyReturns
   143  	return fakeReturns.result1
   144  }
   145  
   146  func (fake *FakeRequestLoggerOutput) DisplayBodyCallCount() int {
   147  	fake.displayBodyMutex.RLock()
   148  	defer fake.displayBodyMutex.RUnlock()
   149  	return len(fake.displayBodyArgsForCall)
   150  }
   151  
   152  func (fake *FakeRequestLoggerOutput) DisplayBodyCalls(stub func([]byte) error) {
   153  	fake.displayBodyMutex.Lock()
   154  	defer fake.displayBodyMutex.Unlock()
   155  	fake.DisplayBodyStub = stub
   156  }
   157  
   158  func (fake *FakeRequestLoggerOutput) DisplayBodyArgsForCall(i int) []byte {
   159  	fake.displayBodyMutex.RLock()
   160  	defer fake.displayBodyMutex.RUnlock()
   161  	argsForCall := fake.displayBodyArgsForCall[i]
   162  	return argsForCall.arg1
   163  }
   164  
   165  func (fake *FakeRequestLoggerOutput) DisplayBodyReturns(result1 error) {
   166  	fake.displayBodyMutex.Lock()
   167  	defer fake.displayBodyMutex.Unlock()
   168  	fake.DisplayBodyStub = nil
   169  	fake.displayBodyReturns = struct {
   170  		result1 error
   171  	}{result1}
   172  }
   173  
   174  func (fake *FakeRequestLoggerOutput) DisplayBodyReturnsOnCall(i int, result1 error) {
   175  	fake.displayBodyMutex.Lock()
   176  	defer fake.displayBodyMutex.Unlock()
   177  	fake.DisplayBodyStub = nil
   178  	if fake.displayBodyReturnsOnCall == nil {
   179  		fake.displayBodyReturnsOnCall = make(map[int]struct {
   180  			result1 error
   181  		})
   182  	}
   183  	fake.displayBodyReturnsOnCall[i] = struct {
   184  		result1 error
   185  	}{result1}
   186  }
   187  
   188  func (fake *FakeRequestLoggerOutput) DisplayHeader(arg1 string, arg2 string) error {
   189  	fake.displayHeaderMutex.Lock()
   190  	ret, specificReturn := fake.displayHeaderReturnsOnCall[len(fake.displayHeaderArgsForCall)]
   191  	fake.displayHeaderArgsForCall = append(fake.displayHeaderArgsForCall, struct {
   192  		arg1 string
   193  		arg2 string
   194  	}{arg1, arg2})
   195  	fake.recordInvocation("DisplayHeader", []interface{}{arg1, arg2})
   196  	fake.displayHeaderMutex.Unlock()
   197  	if fake.DisplayHeaderStub != nil {
   198  		return fake.DisplayHeaderStub(arg1, arg2)
   199  	}
   200  	if specificReturn {
   201  		return ret.result1
   202  	}
   203  	fakeReturns := fake.displayHeaderReturns
   204  	return fakeReturns.result1
   205  }
   206  
   207  func (fake *FakeRequestLoggerOutput) DisplayHeaderCallCount() int {
   208  	fake.displayHeaderMutex.RLock()
   209  	defer fake.displayHeaderMutex.RUnlock()
   210  	return len(fake.displayHeaderArgsForCall)
   211  }
   212  
   213  func (fake *FakeRequestLoggerOutput) DisplayHeaderCalls(stub func(string, string) error) {
   214  	fake.displayHeaderMutex.Lock()
   215  	defer fake.displayHeaderMutex.Unlock()
   216  	fake.DisplayHeaderStub = stub
   217  }
   218  
   219  func (fake *FakeRequestLoggerOutput) DisplayHeaderArgsForCall(i int) (string, string) {
   220  	fake.displayHeaderMutex.RLock()
   221  	defer fake.displayHeaderMutex.RUnlock()
   222  	argsForCall := fake.displayHeaderArgsForCall[i]
   223  	return argsForCall.arg1, argsForCall.arg2
   224  }
   225  
   226  func (fake *FakeRequestLoggerOutput) DisplayHeaderReturns(result1 error) {
   227  	fake.displayHeaderMutex.Lock()
   228  	defer fake.displayHeaderMutex.Unlock()
   229  	fake.DisplayHeaderStub = nil
   230  	fake.displayHeaderReturns = struct {
   231  		result1 error
   232  	}{result1}
   233  }
   234  
   235  func (fake *FakeRequestLoggerOutput) DisplayHeaderReturnsOnCall(i int, result1 error) {
   236  	fake.displayHeaderMutex.Lock()
   237  	defer fake.displayHeaderMutex.Unlock()
   238  	fake.DisplayHeaderStub = nil
   239  	if fake.displayHeaderReturnsOnCall == nil {
   240  		fake.displayHeaderReturnsOnCall = make(map[int]struct {
   241  			result1 error
   242  		})
   243  	}
   244  	fake.displayHeaderReturnsOnCall[i] = struct {
   245  		result1 error
   246  	}{result1}
   247  }
   248  
   249  func (fake *FakeRequestLoggerOutput) DisplayHost(arg1 string) error {
   250  	fake.displayHostMutex.Lock()
   251  	ret, specificReturn := fake.displayHostReturnsOnCall[len(fake.displayHostArgsForCall)]
   252  	fake.displayHostArgsForCall = append(fake.displayHostArgsForCall, struct {
   253  		arg1 string
   254  	}{arg1})
   255  	fake.recordInvocation("DisplayHost", []interface{}{arg1})
   256  	fake.displayHostMutex.Unlock()
   257  	if fake.DisplayHostStub != nil {
   258  		return fake.DisplayHostStub(arg1)
   259  	}
   260  	if specificReturn {
   261  		return ret.result1
   262  	}
   263  	fakeReturns := fake.displayHostReturns
   264  	return fakeReturns.result1
   265  }
   266  
   267  func (fake *FakeRequestLoggerOutput) DisplayHostCallCount() int {
   268  	fake.displayHostMutex.RLock()
   269  	defer fake.displayHostMutex.RUnlock()
   270  	return len(fake.displayHostArgsForCall)
   271  }
   272  
   273  func (fake *FakeRequestLoggerOutput) DisplayHostCalls(stub func(string) error) {
   274  	fake.displayHostMutex.Lock()
   275  	defer fake.displayHostMutex.Unlock()
   276  	fake.DisplayHostStub = stub
   277  }
   278  
   279  func (fake *FakeRequestLoggerOutput) DisplayHostArgsForCall(i int) string {
   280  	fake.displayHostMutex.RLock()
   281  	defer fake.displayHostMutex.RUnlock()
   282  	argsForCall := fake.displayHostArgsForCall[i]
   283  	return argsForCall.arg1
   284  }
   285  
   286  func (fake *FakeRequestLoggerOutput) DisplayHostReturns(result1 error) {
   287  	fake.displayHostMutex.Lock()
   288  	defer fake.displayHostMutex.Unlock()
   289  	fake.DisplayHostStub = nil
   290  	fake.displayHostReturns = struct {
   291  		result1 error
   292  	}{result1}
   293  }
   294  
   295  func (fake *FakeRequestLoggerOutput) DisplayHostReturnsOnCall(i int, result1 error) {
   296  	fake.displayHostMutex.Lock()
   297  	defer fake.displayHostMutex.Unlock()
   298  	fake.DisplayHostStub = nil
   299  	if fake.displayHostReturnsOnCall == nil {
   300  		fake.displayHostReturnsOnCall = make(map[int]struct {
   301  			result1 error
   302  		})
   303  	}
   304  	fake.displayHostReturnsOnCall[i] = struct {
   305  		result1 error
   306  	}{result1}
   307  }
   308  
   309  func (fake *FakeRequestLoggerOutput) DisplayJSONBody(arg1 []byte) error {
   310  	var arg1Copy []byte
   311  	if arg1 != nil {
   312  		arg1Copy = make([]byte, len(arg1))
   313  		copy(arg1Copy, arg1)
   314  	}
   315  	fake.displayJSONBodyMutex.Lock()
   316  	ret, specificReturn := fake.displayJSONBodyReturnsOnCall[len(fake.displayJSONBodyArgsForCall)]
   317  	fake.displayJSONBodyArgsForCall = append(fake.displayJSONBodyArgsForCall, struct {
   318  		arg1 []byte
   319  	}{arg1Copy})
   320  	fake.recordInvocation("DisplayJSONBody", []interface{}{arg1Copy})
   321  	fake.displayJSONBodyMutex.Unlock()
   322  	if fake.DisplayJSONBodyStub != nil {
   323  		return fake.DisplayJSONBodyStub(arg1)
   324  	}
   325  	if specificReturn {
   326  		return ret.result1
   327  	}
   328  	fakeReturns := fake.displayJSONBodyReturns
   329  	return fakeReturns.result1
   330  }
   331  
   332  func (fake *FakeRequestLoggerOutput) DisplayJSONBodyCallCount() int {
   333  	fake.displayJSONBodyMutex.RLock()
   334  	defer fake.displayJSONBodyMutex.RUnlock()
   335  	return len(fake.displayJSONBodyArgsForCall)
   336  }
   337  
   338  func (fake *FakeRequestLoggerOutput) DisplayJSONBodyCalls(stub func([]byte) error) {
   339  	fake.displayJSONBodyMutex.Lock()
   340  	defer fake.displayJSONBodyMutex.Unlock()
   341  	fake.DisplayJSONBodyStub = stub
   342  }
   343  
   344  func (fake *FakeRequestLoggerOutput) DisplayJSONBodyArgsForCall(i int) []byte {
   345  	fake.displayJSONBodyMutex.RLock()
   346  	defer fake.displayJSONBodyMutex.RUnlock()
   347  	argsForCall := fake.displayJSONBodyArgsForCall[i]
   348  	return argsForCall.arg1
   349  }
   350  
   351  func (fake *FakeRequestLoggerOutput) DisplayJSONBodyReturns(result1 error) {
   352  	fake.displayJSONBodyMutex.Lock()
   353  	defer fake.displayJSONBodyMutex.Unlock()
   354  	fake.DisplayJSONBodyStub = nil
   355  	fake.displayJSONBodyReturns = struct {
   356  		result1 error
   357  	}{result1}
   358  }
   359  
   360  func (fake *FakeRequestLoggerOutput) DisplayJSONBodyReturnsOnCall(i int, result1 error) {
   361  	fake.displayJSONBodyMutex.Lock()
   362  	defer fake.displayJSONBodyMutex.Unlock()
   363  	fake.DisplayJSONBodyStub = nil
   364  	if fake.displayJSONBodyReturnsOnCall == nil {
   365  		fake.displayJSONBodyReturnsOnCall = make(map[int]struct {
   366  			result1 error
   367  		})
   368  	}
   369  	fake.displayJSONBodyReturnsOnCall[i] = struct {
   370  		result1 error
   371  	}{result1}
   372  }
   373  
   374  func (fake *FakeRequestLoggerOutput) DisplayRequestHeader(arg1 string, arg2 string, arg3 string) error {
   375  	fake.displayRequestHeaderMutex.Lock()
   376  	ret, specificReturn := fake.displayRequestHeaderReturnsOnCall[len(fake.displayRequestHeaderArgsForCall)]
   377  	fake.displayRequestHeaderArgsForCall = append(fake.displayRequestHeaderArgsForCall, struct {
   378  		arg1 string
   379  		arg2 string
   380  		arg3 string
   381  	}{arg1, arg2, arg3})
   382  	fake.recordInvocation("DisplayRequestHeader", []interface{}{arg1, arg2, arg3})
   383  	fake.displayRequestHeaderMutex.Unlock()
   384  	if fake.DisplayRequestHeaderStub != nil {
   385  		return fake.DisplayRequestHeaderStub(arg1, arg2, arg3)
   386  	}
   387  	if specificReturn {
   388  		return ret.result1
   389  	}
   390  	fakeReturns := fake.displayRequestHeaderReturns
   391  	return fakeReturns.result1
   392  }
   393  
   394  func (fake *FakeRequestLoggerOutput) DisplayRequestHeaderCallCount() int {
   395  	fake.displayRequestHeaderMutex.RLock()
   396  	defer fake.displayRequestHeaderMutex.RUnlock()
   397  	return len(fake.displayRequestHeaderArgsForCall)
   398  }
   399  
   400  func (fake *FakeRequestLoggerOutput) DisplayRequestHeaderCalls(stub func(string, string, string) error) {
   401  	fake.displayRequestHeaderMutex.Lock()
   402  	defer fake.displayRequestHeaderMutex.Unlock()
   403  	fake.DisplayRequestHeaderStub = stub
   404  }
   405  
   406  func (fake *FakeRequestLoggerOutput) DisplayRequestHeaderArgsForCall(i int) (string, string, string) {
   407  	fake.displayRequestHeaderMutex.RLock()
   408  	defer fake.displayRequestHeaderMutex.RUnlock()
   409  	argsForCall := fake.displayRequestHeaderArgsForCall[i]
   410  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   411  }
   412  
   413  func (fake *FakeRequestLoggerOutput) DisplayRequestHeaderReturns(result1 error) {
   414  	fake.displayRequestHeaderMutex.Lock()
   415  	defer fake.displayRequestHeaderMutex.Unlock()
   416  	fake.DisplayRequestHeaderStub = nil
   417  	fake.displayRequestHeaderReturns = struct {
   418  		result1 error
   419  	}{result1}
   420  }
   421  
   422  func (fake *FakeRequestLoggerOutput) DisplayRequestHeaderReturnsOnCall(i int, result1 error) {
   423  	fake.displayRequestHeaderMutex.Lock()
   424  	defer fake.displayRequestHeaderMutex.Unlock()
   425  	fake.DisplayRequestHeaderStub = nil
   426  	if fake.displayRequestHeaderReturnsOnCall == nil {
   427  		fake.displayRequestHeaderReturnsOnCall = make(map[int]struct {
   428  			result1 error
   429  		})
   430  	}
   431  	fake.displayRequestHeaderReturnsOnCall[i] = struct {
   432  		result1 error
   433  	}{result1}
   434  }
   435  
   436  func (fake *FakeRequestLoggerOutput) DisplayResponseHeader(arg1 string, arg2 string) error {
   437  	fake.displayResponseHeaderMutex.Lock()
   438  	ret, specificReturn := fake.displayResponseHeaderReturnsOnCall[len(fake.displayResponseHeaderArgsForCall)]
   439  	fake.displayResponseHeaderArgsForCall = append(fake.displayResponseHeaderArgsForCall, struct {
   440  		arg1 string
   441  		arg2 string
   442  	}{arg1, arg2})
   443  	fake.recordInvocation("DisplayResponseHeader", []interface{}{arg1, arg2})
   444  	fake.displayResponseHeaderMutex.Unlock()
   445  	if fake.DisplayResponseHeaderStub != nil {
   446  		return fake.DisplayResponseHeaderStub(arg1, arg2)
   447  	}
   448  	if specificReturn {
   449  		return ret.result1
   450  	}
   451  	fakeReturns := fake.displayResponseHeaderReturns
   452  	return fakeReturns.result1
   453  }
   454  
   455  func (fake *FakeRequestLoggerOutput) DisplayResponseHeaderCallCount() int {
   456  	fake.displayResponseHeaderMutex.RLock()
   457  	defer fake.displayResponseHeaderMutex.RUnlock()
   458  	return len(fake.displayResponseHeaderArgsForCall)
   459  }
   460  
   461  func (fake *FakeRequestLoggerOutput) DisplayResponseHeaderCalls(stub func(string, string) error) {
   462  	fake.displayResponseHeaderMutex.Lock()
   463  	defer fake.displayResponseHeaderMutex.Unlock()
   464  	fake.DisplayResponseHeaderStub = stub
   465  }
   466  
   467  func (fake *FakeRequestLoggerOutput) DisplayResponseHeaderArgsForCall(i int) (string, string) {
   468  	fake.displayResponseHeaderMutex.RLock()
   469  	defer fake.displayResponseHeaderMutex.RUnlock()
   470  	argsForCall := fake.displayResponseHeaderArgsForCall[i]
   471  	return argsForCall.arg1, argsForCall.arg2
   472  }
   473  
   474  func (fake *FakeRequestLoggerOutput) DisplayResponseHeaderReturns(result1 error) {
   475  	fake.displayResponseHeaderMutex.Lock()
   476  	defer fake.displayResponseHeaderMutex.Unlock()
   477  	fake.DisplayResponseHeaderStub = nil
   478  	fake.displayResponseHeaderReturns = struct {
   479  		result1 error
   480  	}{result1}
   481  }
   482  
   483  func (fake *FakeRequestLoggerOutput) DisplayResponseHeaderReturnsOnCall(i int, result1 error) {
   484  	fake.displayResponseHeaderMutex.Lock()
   485  	defer fake.displayResponseHeaderMutex.Unlock()
   486  	fake.DisplayResponseHeaderStub = nil
   487  	if fake.displayResponseHeaderReturnsOnCall == nil {
   488  		fake.displayResponseHeaderReturnsOnCall = make(map[int]struct {
   489  			result1 error
   490  		})
   491  	}
   492  	fake.displayResponseHeaderReturnsOnCall[i] = struct {
   493  		result1 error
   494  	}{result1}
   495  }
   496  
   497  func (fake *FakeRequestLoggerOutput) DisplayType(arg1 string, arg2 time.Time) error {
   498  	fake.displayTypeMutex.Lock()
   499  	ret, specificReturn := fake.displayTypeReturnsOnCall[len(fake.displayTypeArgsForCall)]
   500  	fake.displayTypeArgsForCall = append(fake.displayTypeArgsForCall, struct {
   501  		arg1 string
   502  		arg2 time.Time
   503  	}{arg1, arg2})
   504  	fake.recordInvocation("DisplayType", []interface{}{arg1, arg2})
   505  	fake.displayTypeMutex.Unlock()
   506  	if fake.DisplayTypeStub != nil {
   507  		return fake.DisplayTypeStub(arg1, arg2)
   508  	}
   509  	if specificReturn {
   510  		return ret.result1
   511  	}
   512  	fakeReturns := fake.displayTypeReturns
   513  	return fakeReturns.result1
   514  }
   515  
   516  func (fake *FakeRequestLoggerOutput) DisplayTypeCallCount() int {
   517  	fake.displayTypeMutex.RLock()
   518  	defer fake.displayTypeMutex.RUnlock()
   519  	return len(fake.displayTypeArgsForCall)
   520  }
   521  
   522  func (fake *FakeRequestLoggerOutput) DisplayTypeCalls(stub func(string, time.Time) error) {
   523  	fake.displayTypeMutex.Lock()
   524  	defer fake.displayTypeMutex.Unlock()
   525  	fake.DisplayTypeStub = stub
   526  }
   527  
   528  func (fake *FakeRequestLoggerOutput) DisplayTypeArgsForCall(i int) (string, time.Time) {
   529  	fake.displayTypeMutex.RLock()
   530  	defer fake.displayTypeMutex.RUnlock()
   531  	argsForCall := fake.displayTypeArgsForCall[i]
   532  	return argsForCall.arg1, argsForCall.arg2
   533  }
   534  
   535  func (fake *FakeRequestLoggerOutput) DisplayTypeReturns(result1 error) {
   536  	fake.displayTypeMutex.Lock()
   537  	defer fake.displayTypeMutex.Unlock()
   538  	fake.DisplayTypeStub = nil
   539  	fake.displayTypeReturns = struct {
   540  		result1 error
   541  	}{result1}
   542  }
   543  
   544  func (fake *FakeRequestLoggerOutput) DisplayTypeReturnsOnCall(i int, result1 error) {
   545  	fake.displayTypeMutex.Lock()
   546  	defer fake.displayTypeMutex.Unlock()
   547  	fake.DisplayTypeStub = nil
   548  	if fake.displayTypeReturnsOnCall == nil {
   549  		fake.displayTypeReturnsOnCall = make(map[int]struct {
   550  			result1 error
   551  		})
   552  	}
   553  	fake.displayTypeReturnsOnCall[i] = struct {
   554  		result1 error
   555  	}{result1}
   556  }
   557  
   558  func (fake *FakeRequestLoggerOutput) HandleInternalError(arg1 error) {
   559  	fake.handleInternalErrorMutex.Lock()
   560  	fake.handleInternalErrorArgsForCall = append(fake.handleInternalErrorArgsForCall, struct {
   561  		arg1 error
   562  	}{arg1})
   563  	fake.recordInvocation("HandleInternalError", []interface{}{arg1})
   564  	fake.handleInternalErrorMutex.Unlock()
   565  	if fake.HandleInternalErrorStub != nil {
   566  		fake.HandleInternalErrorStub(arg1)
   567  	}
   568  }
   569  
   570  func (fake *FakeRequestLoggerOutput) HandleInternalErrorCallCount() int {
   571  	fake.handleInternalErrorMutex.RLock()
   572  	defer fake.handleInternalErrorMutex.RUnlock()
   573  	return len(fake.handleInternalErrorArgsForCall)
   574  }
   575  
   576  func (fake *FakeRequestLoggerOutput) HandleInternalErrorCalls(stub func(error)) {
   577  	fake.handleInternalErrorMutex.Lock()
   578  	defer fake.handleInternalErrorMutex.Unlock()
   579  	fake.HandleInternalErrorStub = stub
   580  }
   581  
   582  func (fake *FakeRequestLoggerOutput) HandleInternalErrorArgsForCall(i int) error {
   583  	fake.handleInternalErrorMutex.RLock()
   584  	defer fake.handleInternalErrorMutex.RUnlock()
   585  	argsForCall := fake.handleInternalErrorArgsForCall[i]
   586  	return argsForCall.arg1
   587  }
   588  
   589  func (fake *FakeRequestLoggerOutput) Start() error {
   590  	fake.startMutex.Lock()
   591  	ret, specificReturn := fake.startReturnsOnCall[len(fake.startArgsForCall)]
   592  	fake.startArgsForCall = append(fake.startArgsForCall, struct {
   593  	}{})
   594  	fake.recordInvocation("Start", []interface{}{})
   595  	fake.startMutex.Unlock()
   596  	if fake.StartStub != nil {
   597  		return fake.StartStub()
   598  	}
   599  	if specificReturn {
   600  		return ret.result1
   601  	}
   602  	fakeReturns := fake.startReturns
   603  	return fakeReturns.result1
   604  }
   605  
   606  func (fake *FakeRequestLoggerOutput) StartCallCount() int {
   607  	fake.startMutex.RLock()
   608  	defer fake.startMutex.RUnlock()
   609  	return len(fake.startArgsForCall)
   610  }
   611  
   612  func (fake *FakeRequestLoggerOutput) StartCalls(stub func() error) {
   613  	fake.startMutex.Lock()
   614  	defer fake.startMutex.Unlock()
   615  	fake.StartStub = stub
   616  }
   617  
   618  func (fake *FakeRequestLoggerOutput) StartReturns(result1 error) {
   619  	fake.startMutex.Lock()
   620  	defer fake.startMutex.Unlock()
   621  	fake.StartStub = nil
   622  	fake.startReturns = struct {
   623  		result1 error
   624  	}{result1}
   625  }
   626  
   627  func (fake *FakeRequestLoggerOutput) StartReturnsOnCall(i int, result1 error) {
   628  	fake.startMutex.Lock()
   629  	defer fake.startMutex.Unlock()
   630  	fake.StartStub = nil
   631  	if fake.startReturnsOnCall == nil {
   632  		fake.startReturnsOnCall = make(map[int]struct {
   633  			result1 error
   634  		})
   635  	}
   636  	fake.startReturnsOnCall[i] = struct {
   637  		result1 error
   638  	}{result1}
   639  }
   640  
   641  func (fake *FakeRequestLoggerOutput) Stop() error {
   642  	fake.stopMutex.Lock()
   643  	ret, specificReturn := fake.stopReturnsOnCall[len(fake.stopArgsForCall)]
   644  	fake.stopArgsForCall = append(fake.stopArgsForCall, struct {
   645  	}{})
   646  	fake.recordInvocation("Stop", []interface{}{})
   647  	fake.stopMutex.Unlock()
   648  	if fake.StopStub != nil {
   649  		return fake.StopStub()
   650  	}
   651  	if specificReturn {
   652  		return ret.result1
   653  	}
   654  	fakeReturns := fake.stopReturns
   655  	return fakeReturns.result1
   656  }
   657  
   658  func (fake *FakeRequestLoggerOutput) StopCallCount() int {
   659  	fake.stopMutex.RLock()
   660  	defer fake.stopMutex.RUnlock()
   661  	return len(fake.stopArgsForCall)
   662  }
   663  
   664  func (fake *FakeRequestLoggerOutput) StopCalls(stub func() error) {
   665  	fake.stopMutex.Lock()
   666  	defer fake.stopMutex.Unlock()
   667  	fake.StopStub = stub
   668  }
   669  
   670  func (fake *FakeRequestLoggerOutput) StopReturns(result1 error) {
   671  	fake.stopMutex.Lock()
   672  	defer fake.stopMutex.Unlock()
   673  	fake.StopStub = nil
   674  	fake.stopReturns = struct {
   675  		result1 error
   676  	}{result1}
   677  }
   678  
   679  func (fake *FakeRequestLoggerOutput) StopReturnsOnCall(i int, result1 error) {
   680  	fake.stopMutex.Lock()
   681  	defer fake.stopMutex.Unlock()
   682  	fake.StopStub = nil
   683  	if fake.stopReturnsOnCall == nil {
   684  		fake.stopReturnsOnCall = make(map[int]struct {
   685  			result1 error
   686  		})
   687  	}
   688  	fake.stopReturnsOnCall[i] = struct {
   689  		result1 error
   690  	}{result1}
   691  }
   692  
   693  func (fake *FakeRequestLoggerOutput) Invocations() map[string][][]interface{} {
   694  	fake.invocationsMutex.RLock()
   695  	defer fake.invocationsMutex.RUnlock()
   696  	fake.displayBodyMutex.RLock()
   697  	defer fake.displayBodyMutex.RUnlock()
   698  	fake.displayHeaderMutex.RLock()
   699  	defer fake.displayHeaderMutex.RUnlock()
   700  	fake.displayHostMutex.RLock()
   701  	defer fake.displayHostMutex.RUnlock()
   702  	fake.displayJSONBodyMutex.RLock()
   703  	defer fake.displayJSONBodyMutex.RUnlock()
   704  	fake.displayRequestHeaderMutex.RLock()
   705  	defer fake.displayRequestHeaderMutex.RUnlock()
   706  	fake.displayResponseHeaderMutex.RLock()
   707  	defer fake.displayResponseHeaderMutex.RUnlock()
   708  	fake.displayTypeMutex.RLock()
   709  	defer fake.displayTypeMutex.RUnlock()
   710  	fake.handleInternalErrorMutex.RLock()
   711  	defer fake.handleInternalErrorMutex.RUnlock()
   712  	fake.startMutex.RLock()
   713  	defer fake.startMutex.RUnlock()
   714  	fake.stopMutex.RLock()
   715  	defer fake.stopMutex.RUnlock()
   716  	copiedInvocations := map[string][][]interface{}{}
   717  	for key, value := range fake.invocations {
   718  		copiedInvocations[key] = value
   719  	}
   720  	return copiedInvocations
   721  }
   722  
   723  func (fake *FakeRequestLoggerOutput) recordInvocation(key string, args []interface{}) {
   724  	fake.invocationsMutex.Lock()
   725  	defer fake.invocationsMutex.Unlock()
   726  	if fake.invocations == nil {
   727  		fake.invocations = map[string][][]interface{}{}
   728  	}
   729  	if fake.invocations[key] == nil {
   730  		fake.invocations[key] = [][]interface{}{}
   731  	}
   732  	fake.invocations[key] = append(fake.invocations[key], args)
   733  }
   734  
   735  var _ wrapper.RequestLoggerOutput = new(FakeRequestLoggerOutput)