github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/api/cloudcontroller/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/cloudcontroller/wrapper" 9 ) 10 11 type FakeRequestLoggerOutput struct { 12 DisplayHeaderStub func(string, string) error 13 displayHeaderMutex sync.RWMutex 14 displayHeaderArgsForCall []struct { 15 arg1 string 16 arg2 string 17 } 18 displayHeaderReturns struct { 19 result1 error 20 } 21 displayHeaderReturnsOnCall map[int]struct { 22 result1 error 23 } 24 DisplayHostStub func(string) error 25 displayHostMutex sync.RWMutex 26 displayHostArgsForCall []struct { 27 arg1 string 28 } 29 displayHostReturns struct { 30 result1 error 31 } 32 displayHostReturnsOnCall map[int]struct { 33 result1 error 34 } 35 DisplayJSONBodyStub func([]byte) error 36 displayJSONBodyMutex sync.RWMutex 37 displayJSONBodyArgsForCall []struct { 38 arg1 []byte 39 } 40 displayJSONBodyReturns struct { 41 result1 error 42 } 43 displayJSONBodyReturnsOnCall map[int]struct { 44 result1 error 45 } 46 DisplayMessageStub func(string) error 47 displayMessageMutex sync.RWMutex 48 displayMessageArgsForCall []struct { 49 arg1 string 50 } 51 displayMessageReturns struct { 52 result1 error 53 } 54 displayMessageReturnsOnCall 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) DisplayHeader(arg1 string, arg2 string) error { 124 fake.displayHeaderMutex.Lock() 125 ret, specificReturn := fake.displayHeaderReturnsOnCall[len(fake.displayHeaderArgsForCall)] 126 fake.displayHeaderArgsForCall = append(fake.displayHeaderArgsForCall, struct { 127 arg1 string 128 arg2 string 129 }{arg1, arg2}) 130 fake.recordInvocation("DisplayHeader", []interface{}{arg1, arg2}) 131 fake.displayHeaderMutex.Unlock() 132 if fake.DisplayHeaderStub != nil { 133 return fake.DisplayHeaderStub(arg1, arg2) 134 } 135 if specificReturn { 136 return ret.result1 137 } 138 fakeReturns := fake.displayHeaderReturns 139 return fakeReturns.result1 140 } 141 142 func (fake *FakeRequestLoggerOutput) DisplayHeaderCallCount() int { 143 fake.displayHeaderMutex.RLock() 144 defer fake.displayHeaderMutex.RUnlock() 145 return len(fake.displayHeaderArgsForCall) 146 } 147 148 func (fake *FakeRequestLoggerOutput) DisplayHeaderCalls(stub func(string, string) error) { 149 fake.displayHeaderMutex.Lock() 150 defer fake.displayHeaderMutex.Unlock() 151 fake.DisplayHeaderStub = stub 152 } 153 154 func (fake *FakeRequestLoggerOutput) DisplayHeaderArgsForCall(i int) (string, string) { 155 fake.displayHeaderMutex.RLock() 156 defer fake.displayHeaderMutex.RUnlock() 157 argsForCall := fake.displayHeaderArgsForCall[i] 158 return argsForCall.arg1, argsForCall.arg2 159 } 160 161 func (fake *FakeRequestLoggerOutput) DisplayHeaderReturns(result1 error) { 162 fake.displayHeaderMutex.Lock() 163 defer fake.displayHeaderMutex.Unlock() 164 fake.DisplayHeaderStub = nil 165 fake.displayHeaderReturns = struct { 166 result1 error 167 }{result1} 168 } 169 170 func (fake *FakeRequestLoggerOutput) DisplayHeaderReturnsOnCall(i int, result1 error) { 171 fake.displayHeaderMutex.Lock() 172 defer fake.displayHeaderMutex.Unlock() 173 fake.DisplayHeaderStub = nil 174 if fake.displayHeaderReturnsOnCall == nil { 175 fake.displayHeaderReturnsOnCall = make(map[int]struct { 176 result1 error 177 }) 178 } 179 fake.displayHeaderReturnsOnCall[i] = struct { 180 result1 error 181 }{result1} 182 } 183 184 func (fake *FakeRequestLoggerOutput) DisplayHost(arg1 string) error { 185 fake.displayHostMutex.Lock() 186 ret, specificReturn := fake.displayHostReturnsOnCall[len(fake.displayHostArgsForCall)] 187 fake.displayHostArgsForCall = append(fake.displayHostArgsForCall, struct { 188 arg1 string 189 }{arg1}) 190 fake.recordInvocation("DisplayHost", []interface{}{arg1}) 191 fake.displayHostMutex.Unlock() 192 if fake.DisplayHostStub != nil { 193 return fake.DisplayHostStub(arg1) 194 } 195 if specificReturn { 196 return ret.result1 197 } 198 fakeReturns := fake.displayHostReturns 199 return fakeReturns.result1 200 } 201 202 func (fake *FakeRequestLoggerOutput) DisplayHostCallCount() int { 203 fake.displayHostMutex.RLock() 204 defer fake.displayHostMutex.RUnlock() 205 return len(fake.displayHostArgsForCall) 206 } 207 208 func (fake *FakeRequestLoggerOutput) DisplayHostCalls(stub func(string) error) { 209 fake.displayHostMutex.Lock() 210 defer fake.displayHostMutex.Unlock() 211 fake.DisplayHostStub = stub 212 } 213 214 func (fake *FakeRequestLoggerOutput) DisplayHostArgsForCall(i int) string { 215 fake.displayHostMutex.RLock() 216 defer fake.displayHostMutex.RUnlock() 217 argsForCall := fake.displayHostArgsForCall[i] 218 return argsForCall.arg1 219 } 220 221 func (fake *FakeRequestLoggerOutput) DisplayHostReturns(result1 error) { 222 fake.displayHostMutex.Lock() 223 defer fake.displayHostMutex.Unlock() 224 fake.DisplayHostStub = nil 225 fake.displayHostReturns = struct { 226 result1 error 227 }{result1} 228 } 229 230 func (fake *FakeRequestLoggerOutput) DisplayHostReturnsOnCall(i int, result1 error) { 231 fake.displayHostMutex.Lock() 232 defer fake.displayHostMutex.Unlock() 233 fake.DisplayHostStub = nil 234 if fake.displayHostReturnsOnCall == nil { 235 fake.displayHostReturnsOnCall = make(map[int]struct { 236 result1 error 237 }) 238 } 239 fake.displayHostReturnsOnCall[i] = struct { 240 result1 error 241 }{result1} 242 } 243 244 func (fake *FakeRequestLoggerOutput) DisplayJSONBody(arg1 []byte) error { 245 var arg1Copy []byte 246 if arg1 != nil { 247 arg1Copy = make([]byte, len(arg1)) 248 copy(arg1Copy, arg1) 249 } 250 fake.displayJSONBodyMutex.Lock() 251 ret, specificReturn := fake.displayJSONBodyReturnsOnCall[len(fake.displayJSONBodyArgsForCall)] 252 fake.displayJSONBodyArgsForCall = append(fake.displayJSONBodyArgsForCall, struct { 253 arg1 []byte 254 }{arg1Copy}) 255 fake.recordInvocation("DisplayJSONBody", []interface{}{arg1Copy}) 256 fake.displayJSONBodyMutex.Unlock() 257 if fake.DisplayJSONBodyStub != nil { 258 return fake.DisplayJSONBodyStub(arg1) 259 } 260 if specificReturn { 261 return ret.result1 262 } 263 fakeReturns := fake.displayJSONBodyReturns 264 return fakeReturns.result1 265 } 266 267 func (fake *FakeRequestLoggerOutput) DisplayJSONBodyCallCount() int { 268 fake.displayJSONBodyMutex.RLock() 269 defer fake.displayJSONBodyMutex.RUnlock() 270 return len(fake.displayJSONBodyArgsForCall) 271 } 272 273 func (fake *FakeRequestLoggerOutput) DisplayJSONBodyCalls(stub func([]byte) error) { 274 fake.displayJSONBodyMutex.Lock() 275 defer fake.displayJSONBodyMutex.Unlock() 276 fake.DisplayJSONBodyStub = stub 277 } 278 279 func (fake *FakeRequestLoggerOutput) DisplayJSONBodyArgsForCall(i int) []byte { 280 fake.displayJSONBodyMutex.RLock() 281 defer fake.displayJSONBodyMutex.RUnlock() 282 argsForCall := fake.displayJSONBodyArgsForCall[i] 283 return argsForCall.arg1 284 } 285 286 func (fake *FakeRequestLoggerOutput) DisplayJSONBodyReturns(result1 error) { 287 fake.displayJSONBodyMutex.Lock() 288 defer fake.displayJSONBodyMutex.Unlock() 289 fake.DisplayJSONBodyStub = nil 290 fake.displayJSONBodyReturns = struct { 291 result1 error 292 }{result1} 293 } 294 295 func (fake *FakeRequestLoggerOutput) DisplayJSONBodyReturnsOnCall(i int, result1 error) { 296 fake.displayJSONBodyMutex.Lock() 297 defer fake.displayJSONBodyMutex.Unlock() 298 fake.DisplayJSONBodyStub = nil 299 if fake.displayJSONBodyReturnsOnCall == nil { 300 fake.displayJSONBodyReturnsOnCall = make(map[int]struct { 301 result1 error 302 }) 303 } 304 fake.displayJSONBodyReturnsOnCall[i] = struct { 305 result1 error 306 }{result1} 307 } 308 309 func (fake *FakeRequestLoggerOutput) DisplayMessage(arg1 string) error { 310 fake.displayMessageMutex.Lock() 311 ret, specificReturn := fake.displayMessageReturnsOnCall[len(fake.displayMessageArgsForCall)] 312 fake.displayMessageArgsForCall = append(fake.displayMessageArgsForCall, struct { 313 arg1 string 314 }{arg1}) 315 fake.recordInvocation("DisplayMessage", []interface{}{arg1}) 316 fake.displayMessageMutex.Unlock() 317 if fake.DisplayMessageStub != nil { 318 return fake.DisplayMessageStub(arg1) 319 } 320 if specificReturn { 321 return ret.result1 322 } 323 fakeReturns := fake.displayMessageReturns 324 return fakeReturns.result1 325 } 326 327 func (fake *FakeRequestLoggerOutput) DisplayMessageCallCount() int { 328 fake.displayMessageMutex.RLock() 329 defer fake.displayMessageMutex.RUnlock() 330 return len(fake.displayMessageArgsForCall) 331 } 332 333 func (fake *FakeRequestLoggerOutput) DisplayMessageCalls(stub func(string) error) { 334 fake.displayMessageMutex.Lock() 335 defer fake.displayMessageMutex.Unlock() 336 fake.DisplayMessageStub = stub 337 } 338 339 func (fake *FakeRequestLoggerOutput) DisplayMessageArgsForCall(i int) string { 340 fake.displayMessageMutex.RLock() 341 defer fake.displayMessageMutex.RUnlock() 342 argsForCall := fake.displayMessageArgsForCall[i] 343 return argsForCall.arg1 344 } 345 346 func (fake *FakeRequestLoggerOutput) DisplayMessageReturns(result1 error) { 347 fake.displayMessageMutex.Lock() 348 defer fake.displayMessageMutex.Unlock() 349 fake.DisplayMessageStub = nil 350 fake.displayMessageReturns = struct { 351 result1 error 352 }{result1} 353 } 354 355 func (fake *FakeRequestLoggerOutput) DisplayMessageReturnsOnCall(i int, result1 error) { 356 fake.displayMessageMutex.Lock() 357 defer fake.displayMessageMutex.Unlock() 358 fake.DisplayMessageStub = nil 359 if fake.displayMessageReturnsOnCall == nil { 360 fake.displayMessageReturnsOnCall = make(map[int]struct { 361 result1 error 362 }) 363 } 364 fake.displayMessageReturnsOnCall[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.displayHeaderMutex.RLock() 692 defer fake.displayHeaderMutex.RUnlock() 693 fake.displayHostMutex.RLock() 694 defer fake.displayHostMutex.RUnlock() 695 fake.displayJSONBodyMutex.RLock() 696 defer fake.displayJSONBodyMutex.RUnlock() 697 fake.displayMessageMutex.RLock() 698 defer fake.displayMessageMutex.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)