github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/actor/v2action/v2actionfakes/fake_config.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package v2actionfakes 3 4 import ( 5 "sync" 6 "time" 7 8 "github.com/liamawhite/cli-with-i18n/actor/v2action" 9 ) 10 11 type FakeConfig struct { 12 AccessTokenStub func() string 13 accessTokenMutex sync.RWMutex 14 accessTokenArgsForCall []struct{} 15 accessTokenReturns struct { 16 result1 string 17 } 18 accessTokenReturnsOnCall map[int]struct { 19 result1 string 20 } 21 PollingIntervalStub func() time.Duration 22 pollingIntervalMutex sync.RWMutex 23 pollingIntervalArgsForCall []struct{} 24 pollingIntervalReturns struct { 25 result1 time.Duration 26 } 27 pollingIntervalReturnsOnCall map[int]struct { 28 result1 time.Duration 29 } 30 RefreshTokenStub func() string 31 refreshTokenMutex sync.RWMutex 32 refreshTokenArgsForCall []struct{} 33 refreshTokenReturns struct { 34 result1 string 35 } 36 refreshTokenReturnsOnCall map[int]struct { 37 result1 string 38 } 39 SSHOAuthClientStub func() string 40 sSHOAuthClientMutex sync.RWMutex 41 sSHOAuthClientArgsForCall []struct{} 42 sSHOAuthClientReturns struct { 43 result1 string 44 } 45 sSHOAuthClientReturnsOnCall map[int]struct { 46 result1 string 47 } 48 SetAccessTokenStub func(accessToken string) 49 setAccessTokenMutex sync.RWMutex 50 setAccessTokenArgsForCall []struct { 51 accessToken string 52 } 53 SetRefreshTokenStub func(refreshToken string) 54 setRefreshTokenMutex sync.RWMutex 55 setRefreshTokenArgsForCall []struct { 56 refreshToken string 57 } 58 SetTargetInformationStub func(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool) 59 setTargetInformationMutex sync.RWMutex 60 setTargetInformationArgsForCall []struct { 61 api string 62 apiVersion string 63 auth string 64 minCLIVersion string 65 doppler string 66 routing string 67 skipSSLValidation bool 68 } 69 SetTokenInformationStub func(accessToken string, refreshToken string, sshOAuthClient string) 70 setTokenInformationMutex sync.RWMutex 71 setTokenInformationArgsForCall []struct { 72 accessToken string 73 refreshToken string 74 sshOAuthClient string 75 } 76 SkipSSLValidationStub func() bool 77 skipSSLValidationMutex sync.RWMutex 78 skipSSLValidationArgsForCall []struct{} 79 skipSSLValidationReturns struct { 80 result1 bool 81 } 82 skipSSLValidationReturnsOnCall map[int]struct { 83 result1 bool 84 } 85 StagingTimeoutStub func() time.Duration 86 stagingTimeoutMutex sync.RWMutex 87 stagingTimeoutArgsForCall []struct{} 88 stagingTimeoutReturns struct { 89 result1 time.Duration 90 } 91 stagingTimeoutReturnsOnCall map[int]struct { 92 result1 time.Duration 93 } 94 StartupTimeoutStub func() time.Duration 95 startupTimeoutMutex sync.RWMutex 96 startupTimeoutArgsForCall []struct{} 97 startupTimeoutReturns struct { 98 result1 time.Duration 99 } 100 startupTimeoutReturnsOnCall map[int]struct { 101 result1 time.Duration 102 } 103 TargetStub func() string 104 targetMutex sync.RWMutex 105 targetArgsForCall []struct{} 106 targetReturns struct { 107 result1 string 108 } 109 targetReturnsOnCall map[int]struct { 110 result1 string 111 } 112 UnsetOrganizationInformationStub func() 113 unsetOrganizationInformationMutex sync.RWMutex 114 unsetOrganizationInformationArgsForCall []struct{} 115 UnsetSpaceInformationStub func() 116 unsetSpaceInformationMutex sync.RWMutex 117 unsetSpaceInformationArgsForCall []struct{} 118 VerboseStub func() (bool, []string) 119 verboseMutex sync.RWMutex 120 verboseArgsForCall []struct{} 121 verboseReturns struct { 122 result1 bool 123 result2 []string 124 } 125 verboseReturnsOnCall map[int]struct { 126 result1 bool 127 result2 []string 128 } 129 invocations map[string][][]interface{} 130 invocationsMutex sync.RWMutex 131 } 132 133 func (fake *FakeConfig) AccessToken() string { 134 fake.accessTokenMutex.Lock() 135 ret, specificReturn := fake.accessTokenReturnsOnCall[len(fake.accessTokenArgsForCall)] 136 fake.accessTokenArgsForCall = append(fake.accessTokenArgsForCall, struct{}{}) 137 fake.recordInvocation("AccessToken", []interface{}{}) 138 fake.accessTokenMutex.Unlock() 139 if fake.AccessTokenStub != nil { 140 return fake.AccessTokenStub() 141 } 142 if specificReturn { 143 return ret.result1 144 } 145 return fake.accessTokenReturns.result1 146 } 147 148 func (fake *FakeConfig) AccessTokenCallCount() int { 149 fake.accessTokenMutex.RLock() 150 defer fake.accessTokenMutex.RUnlock() 151 return len(fake.accessTokenArgsForCall) 152 } 153 154 func (fake *FakeConfig) AccessTokenReturns(result1 string) { 155 fake.AccessTokenStub = nil 156 fake.accessTokenReturns = struct { 157 result1 string 158 }{result1} 159 } 160 161 func (fake *FakeConfig) AccessTokenReturnsOnCall(i int, result1 string) { 162 fake.AccessTokenStub = nil 163 if fake.accessTokenReturnsOnCall == nil { 164 fake.accessTokenReturnsOnCall = make(map[int]struct { 165 result1 string 166 }) 167 } 168 fake.accessTokenReturnsOnCall[i] = struct { 169 result1 string 170 }{result1} 171 } 172 173 func (fake *FakeConfig) PollingInterval() time.Duration { 174 fake.pollingIntervalMutex.Lock() 175 ret, specificReturn := fake.pollingIntervalReturnsOnCall[len(fake.pollingIntervalArgsForCall)] 176 fake.pollingIntervalArgsForCall = append(fake.pollingIntervalArgsForCall, struct{}{}) 177 fake.recordInvocation("PollingInterval", []interface{}{}) 178 fake.pollingIntervalMutex.Unlock() 179 if fake.PollingIntervalStub != nil { 180 return fake.PollingIntervalStub() 181 } 182 if specificReturn { 183 return ret.result1 184 } 185 return fake.pollingIntervalReturns.result1 186 } 187 188 func (fake *FakeConfig) PollingIntervalCallCount() int { 189 fake.pollingIntervalMutex.RLock() 190 defer fake.pollingIntervalMutex.RUnlock() 191 return len(fake.pollingIntervalArgsForCall) 192 } 193 194 func (fake *FakeConfig) PollingIntervalReturns(result1 time.Duration) { 195 fake.PollingIntervalStub = nil 196 fake.pollingIntervalReturns = struct { 197 result1 time.Duration 198 }{result1} 199 } 200 201 func (fake *FakeConfig) PollingIntervalReturnsOnCall(i int, result1 time.Duration) { 202 fake.PollingIntervalStub = nil 203 if fake.pollingIntervalReturnsOnCall == nil { 204 fake.pollingIntervalReturnsOnCall = make(map[int]struct { 205 result1 time.Duration 206 }) 207 } 208 fake.pollingIntervalReturnsOnCall[i] = struct { 209 result1 time.Duration 210 }{result1} 211 } 212 213 func (fake *FakeConfig) RefreshToken() string { 214 fake.refreshTokenMutex.Lock() 215 ret, specificReturn := fake.refreshTokenReturnsOnCall[len(fake.refreshTokenArgsForCall)] 216 fake.refreshTokenArgsForCall = append(fake.refreshTokenArgsForCall, struct{}{}) 217 fake.recordInvocation("RefreshToken", []interface{}{}) 218 fake.refreshTokenMutex.Unlock() 219 if fake.RefreshTokenStub != nil { 220 return fake.RefreshTokenStub() 221 } 222 if specificReturn { 223 return ret.result1 224 } 225 return fake.refreshTokenReturns.result1 226 } 227 228 func (fake *FakeConfig) RefreshTokenCallCount() int { 229 fake.refreshTokenMutex.RLock() 230 defer fake.refreshTokenMutex.RUnlock() 231 return len(fake.refreshTokenArgsForCall) 232 } 233 234 func (fake *FakeConfig) RefreshTokenReturns(result1 string) { 235 fake.RefreshTokenStub = nil 236 fake.refreshTokenReturns = struct { 237 result1 string 238 }{result1} 239 } 240 241 func (fake *FakeConfig) RefreshTokenReturnsOnCall(i int, result1 string) { 242 fake.RefreshTokenStub = nil 243 if fake.refreshTokenReturnsOnCall == nil { 244 fake.refreshTokenReturnsOnCall = make(map[int]struct { 245 result1 string 246 }) 247 } 248 fake.refreshTokenReturnsOnCall[i] = struct { 249 result1 string 250 }{result1} 251 } 252 253 func (fake *FakeConfig) SSHOAuthClient() string { 254 fake.sSHOAuthClientMutex.Lock() 255 ret, specificReturn := fake.sSHOAuthClientReturnsOnCall[len(fake.sSHOAuthClientArgsForCall)] 256 fake.sSHOAuthClientArgsForCall = append(fake.sSHOAuthClientArgsForCall, struct{}{}) 257 fake.recordInvocation("SSHOAuthClient", []interface{}{}) 258 fake.sSHOAuthClientMutex.Unlock() 259 if fake.SSHOAuthClientStub != nil { 260 return fake.SSHOAuthClientStub() 261 } 262 if specificReturn { 263 return ret.result1 264 } 265 return fake.sSHOAuthClientReturns.result1 266 } 267 268 func (fake *FakeConfig) SSHOAuthClientCallCount() int { 269 fake.sSHOAuthClientMutex.RLock() 270 defer fake.sSHOAuthClientMutex.RUnlock() 271 return len(fake.sSHOAuthClientArgsForCall) 272 } 273 274 func (fake *FakeConfig) SSHOAuthClientReturns(result1 string) { 275 fake.SSHOAuthClientStub = nil 276 fake.sSHOAuthClientReturns = struct { 277 result1 string 278 }{result1} 279 } 280 281 func (fake *FakeConfig) SSHOAuthClientReturnsOnCall(i int, result1 string) { 282 fake.SSHOAuthClientStub = nil 283 if fake.sSHOAuthClientReturnsOnCall == nil { 284 fake.sSHOAuthClientReturnsOnCall = make(map[int]struct { 285 result1 string 286 }) 287 } 288 fake.sSHOAuthClientReturnsOnCall[i] = struct { 289 result1 string 290 }{result1} 291 } 292 293 func (fake *FakeConfig) SetAccessToken(accessToken string) { 294 fake.setAccessTokenMutex.Lock() 295 fake.setAccessTokenArgsForCall = append(fake.setAccessTokenArgsForCall, struct { 296 accessToken string 297 }{accessToken}) 298 fake.recordInvocation("SetAccessToken", []interface{}{accessToken}) 299 fake.setAccessTokenMutex.Unlock() 300 if fake.SetAccessTokenStub != nil { 301 fake.SetAccessTokenStub(accessToken) 302 } 303 } 304 305 func (fake *FakeConfig) SetAccessTokenCallCount() int { 306 fake.setAccessTokenMutex.RLock() 307 defer fake.setAccessTokenMutex.RUnlock() 308 return len(fake.setAccessTokenArgsForCall) 309 } 310 311 func (fake *FakeConfig) SetAccessTokenArgsForCall(i int) string { 312 fake.setAccessTokenMutex.RLock() 313 defer fake.setAccessTokenMutex.RUnlock() 314 return fake.setAccessTokenArgsForCall[i].accessToken 315 } 316 317 func (fake *FakeConfig) SetRefreshToken(refreshToken string) { 318 fake.setRefreshTokenMutex.Lock() 319 fake.setRefreshTokenArgsForCall = append(fake.setRefreshTokenArgsForCall, struct { 320 refreshToken string 321 }{refreshToken}) 322 fake.recordInvocation("SetRefreshToken", []interface{}{refreshToken}) 323 fake.setRefreshTokenMutex.Unlock() 324 if fake.SetRefreshTokenStub != nil { 325 fake.SetRefreshTokenStub(refreshToken) 326 } 327 } 328 329 func (fake *FakeConfig) SetRefreshTokenCallCount() int { 330 fake.setRefreshTokenMutex.RLock() 331 defer fake.setRefreshTokenMutex.RUnlock() 332 return len(fake.setRefreshTokenArgsForCall) 333 } 334 335 func (fake *FakeConfig) SetRefreshTokenArgsForCall(i int) string { 336 fake.setRefreshTokenMutex.RLock() 337 defer fake.setRefreshTokenMutex.RUnlock() 338 return fake.setRefreshTokenArgsForCall[i].refreshToken 339 } 340 341 func (fake *FakeConfig) SetTargetInformation(api string, apiVersion string, auth string, minCLIVersion string, doppler string, routing string, skipSSLValidation bool) { 342 fake.setTargetInformationMutex.Lock() 343 fake.setTargetInformationArgsForCall = append(fake.setTargetInformationArgsForCall, struct { 344 api string 345 apiVersion string 346 auth string 347 minCLIVersion string 348 doppler string 349 routing string 350 skipSSLValidation bool 351 }{api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation}) 352 fake.recordInvocation("SetTargetInformation", []interface{}{api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation}) 353 fake.setTargetInformationMutex.Unlock() 354 if fake.SetTargetInformationStub != nil { 355 fake.SetTargetInformationStub(api, apiVersion, auth, minCLIVersion, doppler, routing, skipSSLValidation) 356 } 357 } 358 359 func (fake *FakeConfig) SetTargetInformationCallCount() int { 360 fake.setTargetInformationMutex.RLock() 361 defer fake.setTargetInformationMutex.RUnlock() 362 return len(fake.setTargetInformationArgsForCall) 363 } 364 365 func (fake *FakeConfig) SetTargetInformationArgsForCall(i int) (string, string, string, string, string, string, bool) { 366 fake.setTargetInformationMutex.RLock() 367 defer fake.setTargetInformationMutex.RUnlock() 368 return fake.setTargetInformationArgsForCall[i].api, fake.setTargetInformationArgsForCall[i].apiVersion, fake.setTargetInformationArgsForCall[i].auth, fake.setTargetInformationArgsForCall[i].minCLIVersion, fake.setTargetInformationArgsForCall[i].doppler, fake.setTargetInformationArgsForCall[i].routing, fake.setTargetInformationArgsForCall[i].skipSSLValidation 369 } 370 371 func (fake *FakeConfig) SetTokenInformation(accessToken string, refreshToken string, sshOAuthClient string) { 372 fake.setTokenInformationMutex.Lock() 373 fake.setTokenInformationArgsForCall = append(fake.setTokenInformationArgsForCall, struct { 374 accessToken string 375 refreshToken string 376 sshOAuthClient string 377 }{accessToken, refreshToken, sshOAuthClient}) 378 fake.recordInvocation("SetTokenInformation", []interface{}{accessToken, refreshToken, sshOAuthClient}) 379 fake.setTokenInformationMutex.Unlock() 380 if fake.SetTokenInformationStub != nil { 381 fake.SetTokenInformationStub(accessToken, refreshToken, sshOAuthClient) 382 } 383 } 384 385 func (fake *FakeConfig) SetTokenInformationCallCount() int { 386 fake.setTokenInformationMutex.RLock() 387 defer fake.setTokenInformationMutex.RUnlock() 388 return len(fake.setTokenInformationArgsForCall) 389 } 390 391 func (fake *FakeConfig) SetTokenInformationArgsForCall(i int) (string, string, string) { 392 fake.setTokenInformationMutex.RLock() 393 defer fake.setTokenInformationMutex.RUnlock() 394 return fake.setTokenInformationArgsForCall[i].accessToken, fake.setTokenInformationArgsForCall[i].refreshToken, fake.setTokenInformationArgsForCall[i].sshOAuthClient 395 } 396 397 func (fake *FakeConfig) SkipSSLValidation() bool { 398 fake.skipSSLValidationMutex.Lock() 399 ret, specificReturn := fake.skipSSLValidationReturnsOnCall[len(fake.skipSSLValidationArgsForCall)] 400 fake.skipSSLValidationArgsForCall = append(fake.skipSSLValidationArgsForCall, struct{}{}) 401 fake.recordInvocation("SkipSSLValidation", []interface{}{}) 402 fake.skipSSLValidationMutex.Unlock() 403 if fake.SkipSSLValidationStub != nil { 404 return fake.SkipSSLValidationStub() 405 } 406 if specificReturn { 407 return ret.result1 408 } 409 return fake.skipSSLValidationReturns.result1 410 } 411 412 func (fake *FakeConfig) SkipSSLValidationCallCount() int { 413 fake.skipSSLValidationMutex.RLock() 414 defer fake.skipSSLValidationMutex.RUnlock() 415 return len(fake.skipSSLValidationArgsForCall) 416 } 417 418 func (fake *FakeConfig) SkipSSLValidationReturns(result1 bool) { 419 fake.SkipSSLValidationStub = nil 420 fake.skipSSLValidationReturns = struct { 421 result1 bool 422 }{result1} 423 } 424 425 func (fake *FakeConfig) SkipSSLValidationReturnsOnCall(i int, result1 bool) { 426 fake.SkipSSLValidationStub = nil 427 if fake.skipSSLValidationReturnsOnCall == nil { 428 fake.skipSSLValidationReturnsOnCall = make(map[int]struct { 429 result1 bool 430 }) 431 } 432 fake.skipSSLValidationReturnsOnCall[i] = struct { 433 result1 bool 434 }{result1} 435 } 436 437 func (fake *FakeConfig) StagingTimeout() time.Duration { 438 fake.stagingTimeoutMutex.Lock() 439 ret, specificReturn := fake.stagingTimeoutReturnsOnCall[len(fake.stagingTimeoutArgsForCall)] 440 fake.stagingTimeoutArgsForCall = append(fake.stagingTimeoutArgsForCall, struct{}{}) 441 fake.recordInvocation("StagingTimeout", []interface{}{}) 442 fake.stagingTimeoutMutex.Unlock() 443 if fake.StagingTimeoutStub != nil { 444 return fake.StagingTimeoutStub() 445 } 446 if specificReturn { 447 return ret.result1 448 } 449 return fake.stagingTimeoutReturns.result1 450 } 451 452 func (fake *FakeConfig) StagingTimeoutCallCount() int { 453 fake.stagingTimeoutMutex.RLock() 454 defer fake.stagingTimeoutMutex.RUnlock() 455 return len(fake.stagingTimeoutArgsForCall) 456 } 457 458 func (fake *FakeConfig) StagingTimeoutReturns(result1 time.Duration) { 459 fake.StagingTimeoutStub = nil 460 fake.stagingTimeoutReturns = struct { 461 result1 time.Duration 462 }{result1} 463 } 464 465 func (fake *FakeConfig) StagingTimeoutReturnsOnCall(i int, result1 time.Duration) { 466 fake.StagingTimeoutStub = nil 467 if fake.stagingTimeoutReturnsOnCall == nil { 468 fake.stagingTimeoutReturnsOnCall = make(map[int]struct { 469 result1 time.Duration 470 }) 471 } 472 fake.stagingTimeoutReturnsOnCall[i] = struct { 473 result1 time.Duration 474 }{result1} 475 } 476 477 func (fake *FakeConfig) StartupTimeout() time.Duration { 478 fake.startupTimeoutMutex.Lock() 479 ret, specificReturn := fake.startupTimeoutReturnsOnCall[len(fake.startupTimeoutArgsForCall)] 480 fake.startupTimeoutArgsForCall = append(fake.startupTimeoutArgsForCall, struct{}{}) 481 fake.recordInvocation("StartupTimeout", []interface{}{}) 482 fake.startupTimeoutMutex.Unlock() 483 if fake.StartupTimeoutStub != nil { 484 return fake.StartupTimeoutStub() 485 } 486 if specificReturn { 487 return ret.result1 488 } 489 return fake.startupTimeoutReturns.result1 490 } 491 492 func (fake *FakeConfig) StartupTimeoutCallCount() int { 493 fake.startupTimeoutMutex.RLock() 494 defer fake.startupTimeoutMutex.RUnlock() 495 return len(fake.startupTimeoutArgsForCall) 496 } 497 498 func (fake *FakeConfig) StartupTimeoutReturns(result1 time.Duration) { 499 fake.StartupTimeoutStub = nil 500 fake.startupTimeoutReturns = struct { 501 result1 time.Duration 502 }{result1} 503 } 504 505 func (fake *FakeConfig) StartupTimeoutReturnsOnCall(i int, result1 time.Duration) { 506 fake.StartupTimeoutStub = nil 507 if fake.startupTimeoutReturnsOnCall == nil { 508 fake.startupTimeoutReturnsOnCall = make(map[int]struct { 509 result1 time.Duration 510 }) 511 } 512 fake.startupTimeoutReturnsOnCall[i] = struct { 513 result1 time.Duration 514 }{result1} 515 } 516 517 func (fake *FakeConfig) Target() string { 518 fake.targetMutex.Lock() 519 ret, specificReturn := fake.targetReturnsOnCall[len(fake.targetArgsForCall)] 520 fake.targetArgsForCall = append(fake.targetArgsForCall, struct{}{}) 521 fake.recordInvocation("Target", []interface{}{}) 522 fake.targetMutex.Unlock() 523 if fake.TargetStub != nil { 524 return fake.TargetStub() 525 } 526 if specificReturn { 527 return ret.result1 528 } 529 return fake.targetReturns.result1 530 } 531 532 func (fake *FakeConfig) TargetCallCount() int { 533 fake.targetMutex.RLock() 534 defer fake.targetMutex.RUnlock() 535 return len(fake.targetArgsForCall) 536 } 537 538 func (fake *FakeConfig) TargetReturns(result1 string) { 539 fake.TargetStub = nil 540 fake.targetReturns = struct { 541 result1 string 542 }{result1} 543 } 544 545 func (fake *FakeConfig) TargetReturnsOnCall(i int, result1 string) { 546 fake.TargetStub = nil 547 if fake.targetReturnsOnCall == nil { 548 fake.targetReturnsOnCall = make(map[int]struct { 549 result1 string 550 }) 551 } 552 fake.targetReturnsOnCall[i] = struct { 553 result1 string 554 }{result1} 555 } 556 557 func (fake *FakeConfig) UnsetOrganizationInformation() { 558 fake.unsetOrganizationInformationMutex.Lock() 559 fake.unsetOrganizationInformationArgsForCall = append(fake.unsetOrganizationInformationArgsForCall, struct{}{}) 560 fake.recordInvocation("UnsetOrganizationInformation", []interface{}{}) 561 fake.unsetOrganizationInformationMutex.Unlock() 562 if fake.UnsetOrganizationInformationStub != nil { 563 fake.UnsetOrganizationInformationStub() 564 } 565 } 566 567 func (fake *FakeConfig) UnsetOrganizationInformationCallCount() int { 568 fake.unsetOrganizationInformationMutex.RLock() 569 defer fake.unsetOrganizationInformationMutex.RUnlock() 570 return len(fake.unsetOrganizationInformationArgsForCall) 571 } 572 573 func (fake *FakeConfig) UnsetSpaceInformation() { 574 fake.unsetSpaceInformationMutex.Lock() 575 fake.unsetSpaceInformationArgsForCall = append(fake.unsetSpaceInformationArgsForCall, struct{}{}) 576 fake.recordInvocation("UnsetSpaceInformation", []interface{}{}) 577 fake.unsetSpaceInformationMutex.Unlock() 578 if fake.UnsetSpaceInformationStub != nil { 579 fake.UnsetSpaceInformationStub() 580 } 581 } 582 583 func (fake *FakeConfig) UnsetSpaceInformationCallCount() int { 584 fake.unsetSpaceInformationMutex.RLock() 585 defer fake.unsetSpaceInformationMutex.RUnlock() 586 return len(fake.unsetSpaceInformationArgsForCall) 587 } 588 589 func (fake *FakeConfig) Verbose() (bool, []string) { 590 fake.verboseMutex.Lock() 591 ret, specificReturn := fake.verboseReturnsOnCall[len(fake.verboseArgsForCall)] 592 fake.verboseArgsForCall = append(fake.verboseArgsForCall, struct{}{}) 593 fake.recordInvocation("Verbose", []interface{}{}) 594 fake.verboseMutex.Unlock() 595 if fake.VerboseStub != nil { 596 return fake.VerboseStub() 597 } 598 if specificReturn { 599 return ret.result1, ret.result2 600 } 601 return fake.verboseReturns.result1, fake.verboseReturns.result2 602 } 603 604 func (fake *FakeConfig) VerboseCallCount() int { 605 fake.verboseMutex.RLock() 606 defer fake.verboseMutex.RUnlock() 607 return len(fake.verboseArgsForCall) 608 } 609 610 func (fake *FakeConfig) VerboseReturns(result1 bool, result2 []string) { 611 fake.VerboseStub = nil 612 fake.verboseReturns = struct { 613 result1 bool 614 result2 []string 615 }{result1, result2} 616 } 617 618 func (fake *FakeConfig) VerboseReturnsOnCall(i int, result1 bool, result2 []string) { 619 fake.VerboseStub = nil 620 if fake.verboseReturnsOnCall == nil { 621 fake.verboseReturnsOnCall = make(map[int]struct { 622 result1 bool 623 result2 []string 624 }) 625 } 626 fake.verboseReturnsOnCall[i] = struct { 627 result1 bool 628 result2 []string 629 }{result1, result2} 630 } 631 632 func (fake *FakeConfig) Invocations() map[string][][]interface{} { 633 fake.invocationsMutex.RLock() 634 defer fake.invocationsMutex.RUnlock() 635 fake.accessTokenMutex.RLock() 636 defer fake.accessTokenMutex.RUnlock() 637 fake.pollingIntervalMutex.RLock() 638 defer fake.pollingIntervalMutex.RUnlock() 639 fake.refreshTokenMutex.RLock() 640 defer fake.refreshTokenMutex.RUnlock() 641 fake.sSHOAuthClientMutex.RLock() 642 defer fake.sSHOAuthClientMutex.RUnlock() 643 fake.setAccessTokenMutex.RLock() 644 defer fake.setAccessTokenMutex.RUnlock() 645 fake.setRefreshTokenMutex.RLock() 646 defer fake.setRefreshTokenMutex.RUnlock() 647 fake.setTargetInformationMutex.RLock() 648 defer fake.setTargetInformationMutex.RUnlock() 649 fake.setTokenInformationMutex.RLock() 650 defer fake.setTokenInformationMutex.RUnlock() 651 fake.skipSSLValidationMutex.RLock() 652 defer fake.skipSSLValidationMutex.RUnlock() 653 fake.stagingTimeoutMutex.RLock() 654 defer fake.stagingTimeoutMutex.RUnlock() 655 fake.startupTimeoutMutex.RLock() 656 defer fake.startupTimeoutMutex.RUnlock() 657 fake.targetMutex.RLock() 658 defer fake.targetMutex.RUnlock() 659 fake.unsetOrganizationInformationMutex.RLock() 660 defer fake.unsetOrganizationInformationMutex.RUnlock() 661 fake.unsetSpaceInformationMutex.RLock() 662 defer fake.unsetSpaceInformationMutex.RUnlock() 663 fake.verboseMutex.RLock() 664 defer fake.verboseMutex.RUnlock() 665 copiedInvocations := map[string][][]interface{}{} 666 for key, value := range fake.invocations { 667 copiedInvocations[key] = value 668 } 669 return copiedInvocations 670 } 671 672 func (fake *FakeConfig) recordInvocation(key string, args []interface{}) { 673 fake.invocationsMutex.Lock() 674 defer fake.invocationsMutex.Unlock() 675 if fake.invocations == nil { 676 fake.invocations = map[string][][]interface{}{} 677 } 678 if fake.invocations[key] == nil { 679 fake.invocations[key] = [][]interface{}{} 680 } 681 fake.invocations[key] = append(fake.invocations[key], args) 682 } 683 684 var _ v2action.Config = new(FakeConfig)