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