github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/actors/actorsfakes/fake_route_actor.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package actorsfakes 3 4 import ( 5 "sync" 6 7 "code.cloudfoundry.org/cli/cf/actors" 8 "code.cloudfoundry.org/cli/cf/models" 9 ) 10 11 type FakeRouteActor struct { 12 BindRouteStub func(models.Application, models.Route) error 13 bindRouteMutex sync.RWMutex 14 bindRouteArgsForCall []struct { 15 arg1 models.Application 16 arg2 models.Route 17 } 18 bindRouteReturns struct { 19 result1 error 20 } 21 bindRouteReturnsOnCall map[int]struct { 22 result1 error 23 } 24 CreateRandomTCPRouteStub func(models.DomainFields) (models.Route, error) 25 createRandomTCPRouteMutex sync.RWMutex 26 createRandomTCPRouteArgsForCall []struct { 27 arg1 models.DomainFields 28 } 29 createRandomTCPRouteReturns struct { 30 result1 models.Route 31 result2 error 32 } 33 createRandomTCPRouteReturnsOnCall map[int]struct { 34 result1 models.Route 35 result2 error 36 } 37 FindAndBindRouteStub func(string, models.Application, models.AppParams) error 38 findAndBindRouteMutex sync.RWMutex 39 findAndBindRouteArgsForCall []struct { 40 arg1 string 41 arg2 models.Application 42 arg3 models.AppParams 43 } 44 findAndBindRouteReturns struct { 45 result1 error 46 } 47 findAndBindRouteReturnsOnCall map[int]struct { 48 result1 error 49 } 50 FindDomainStub func(string) (string, models.DomainFields, error) 51 findDomainMutex sync.RWMutex 52 findDomainArgsForCall []struct { 53 arg1 string 54 } 55 findDomainReturns struct { 56 result1 string 57 result2 models.DomainFields 58 result3 error 59 } 60 findDomainReturnsOnCall map[int]struct { 61 result1 string 62 result2 models.DomainFields 63 result3 error 64 } 65 FindOrCreateRouteStub func(string, models.DomainFields, string, int, bool) (models.Route, error) 66 findOrCreateRouteMutex sync.RWMutex 67 findOrCreateRouteArgsForCall []struct { 68 arg1 string 69 arg2 models.DomainFields 70 arg3 string 71 arg4 int 72 arg5 bool 73 } 74 findOrCreateRouteReturns struct { 75 result1 models.Route 76 result2 error 77 } 78 findOrCreateRouteReturnsOnCall map[int]struct { 79 result1 models.Route 80 result2 error 81 } 82 FindPathStub func(string) (string, string) 83 findPathMutex sync.RWMutex 84 findPathArgsForCall []struct { 85 arg1 string 86 } 87 findPathReturns struct { 88 result1 string 89 result2 string 90 } 91 findPathReturnsOnCall map[int]struct { 92 result1 string 93 result2 string 94 } 95 FindPortStub func(string) (string, int, error) 96 findPortMutex sync.RWMutex 97 findPortArgsForCall []struct { 98 arg1 string 99 } 100 findPortReturns struct { 101 result1 string 102 result2 int 103 result3 error 104 } 105 findPortReturnsOnCall map[int]struct { 106 result1 string 107 result2 int 108 result3 error 109 } 110 UnbindAllStub func(models.Application) error 111 unbindAllMutex sync.RWMutex 112 unbindAllArgsForCall []struct { 113 arg1 models.Application 114 } 115 unbindAllReturns struct { 116 result1 error 117 } 118 unbindAllReturnsOnCall map[int]struct { 119 result1 error 120 } 121 invocations map[string][][]interface{} 122 invocationsMutex sync.RWMutex 123 } 124 125 func (fake *FakeRouteActor) BindRoute(arg1 models.Application, arg2 models.Route) error { 126 fake.bindRouteMutex.Lock() 127 ret, specificReturn := fake.bindRouteReturnsOnCall[len(fake.bindRouteArgsForCall)] 128 fake.bindRouteArgsForCall = append(fake.bindRouteArgsForCall, struct { 129 arg1 models.Application 130 arg2 models.Route 131 }{arg1, arg2}) 132 fake.recordInvocation("BindRoute", []interface{}{arg1, arg2}) 133 fake.bindRouteMutex.Unlock() 134 if fake.BindRouteStub != nil { 135 return fake.BindRouteStub(arg1, arg2) 136 } 137 if specificReturn { 138 return ret.result1 139 } 140 fakeReturns := fake.bindRouteReturns 141 return fakeReturns.result1 142 } 143 144 func (fake *FakeRouteActor) BindRouteCallCount() int { 145 fake.bindRouteMutex.RLock() 146 defer fake.bindRouteMutex.RUnlock() 147 return len(fake.bindRouteArgsForCall) 148 } 149 150 func (fake *FakeRouteActor) BindRouteCalls(stub func(models.Application, models.Route) error) { 151 fake.bindRouteMutex.Lock() 152 defer fake.bindRouteMutex.Unlock() 153 fake.BindRouteStub = stub 154 } 155 156 func (fake *FakeRouteActor) BindRouteArgsForCall(i int) (models.Application, models.Route) { 157 fake.bindRouteMutex.RLock() 158 defer fake.bindRouteMutex.RUnlock() 159 argsForCall := fake.bindRouteArgsForCall[i] 160 return argsForCall.arg1, argsForCall.arg2 161 } 162 163 func (fake *FakeRouteActor) BindRouteReturns(result1 error) { 164 fake.bindRouteMutex.Lock() 165 defer fake.bindRouteMutex.Unlock() 166 fake.BindRouteStub = nil 167 fake.bindRouteReturns = struct { 168 result1 error 169 }{result1} 170 } 171 172 func (fake *FakeRouteActor) BindRouteReturnsOnCall(i int, result1 error) { 173 fake.bindRouteMutex.Lock() 174 defer fake.bindRouteMutex.Unlock() 175 fake.BindRouteStub = nil 176 if fake.bindRouteReturnsOnCall == nil { 177 fake.bindRouteReturnsOnCall = make(map[int]struct { 178 result1 error 179 }) 180 } 181 fake.bindRouteReturnsOnCall[i] = struct { 182 result1 error 183 }{result1} 184 } 185 186 func (fake *FakeRouteActor) CreateRandomTCPRoute(arg1 models.DomainFields) (models.Route, error) { 187 fake.createRandomTCPRouteMutex.Lock() 188 ret, specificReturn := fake.createRandomTCPRouteReturnsOnCall[len(fake.createRandomTCPRouteArgsForCall)] 189 fake.createRandomTCPRouteArgsForCall = append(fake.createRandomTCPRouteArgsForCall, struct { 190 arg1 models.DomainFields 191 }{arg1}) 192 fake.recordInvocation("CreateRandomTCPRoute", []interface{}{arg1}) 193 fake.createRandomTCPRouteMutex.Unlock() 194 if fake.CreateRandomTCPRouteStub != nil { 195 return fake.CreateRandomTCPRouteStub(arg1) 196 } 197 if specificReturn { 198 return ret.result1, ret.result2 199 } 200 fakeReturns := fake.createRandomTCPRouteReturns 201 return fakeReturns.result1, fakeReturns.result2 202 } 203 204 func (fake *FakeRouteActor) CreateRandomTCPRouteCallCount() int { 205 fake.createRandomTCPRouteMutex.RLock() 206 defer fake.createRandomTCPRouteMutex.RUnlock() 207 return len(fake.createRandomTCPRouteArgsForCall) 208 } 209 210 func (fake *FakeRouteActor) CreateRandomTCPRouteCalls(stub func(models.DomainFields) (models.Route, error)) { 211 fake.createRandomTCPRouteMutex.Lock() 212 defer fake.createRandomTCPRouteMutex.Unlock() 213 fake.CreateRandomTCPRouteStub = stub 214 } 215 216 func (fake *FakeRouteActor) CreateRandomTCPRouteArgsForCall(i int) models.DomainFields { 217 fake.createRandomTCPRouteMutex.RLock() 218 defer fake.createRandomTCPRouteMutex.RUnlock() 219 argsForCall := fake.createRandomTCPRouteArgsForCall[i] 220 return argsForCall.arg1 221 } 222 223 func (fake *FakeRouteActor) CreateRandomTCPRouteReturns(result1 models.Route, result2 error) { 224 fake.createRandomTCPRouteMutex.Lock() 225 defer fake.createRandomTCPRouteMutex.Unlock() 226 fake.CreateRandomTCPRouteStub = nil 227 fake.createRandomTCPRouteReturns = struct { 228 result1 models.Route 229 result2 error 230 }{result1, result2} 231 } 232 233 func (fake *FakeRouteActor) CreateRandomTCPRouteReturnsOnCall(i int, result1 models.Route, result2 error) { 234 fake.createRandomTCPRouteMutex.Lock() 235 defer fake.createRandomTCPRouteMutex.Unlock() 236 fake.CreateRandomTCPRouteStub = nil 237 if fake.createRandomTCPRouteReturnsOnCall == nil { 238 fake.createRandomTCPRouteReturnsOnCall = make(map[int]struct { 239 result1 models.Route 240 result2 error 241 }) 242 } 243 fake.createRandomTCPRouteReturnsOnCall[i] = struct { 244 result1 models.Route 245 result2 error 246 }{result1, result2} 247 } 248 249 func (fake *FakeRouteActor) FindAndBindRoute(arg1 string, arg2 models.Application, arg3 models.AppParams) error { 250 fake.findAndBindRouteMutex.Lock() 251 ret, specificReturn := fake.findAndBindRouteReturnsOnCall[len(fake.findAndBindRouteArgsForCall)] 252 fake.findAndBindRouteArgsForCall = append(fake.findAndBindRouteArgsForCall, struct { 253 arg1 string 254 arg2 models.Application 255 arg3 models.AppParams 256 }{arg1, arg2, arg3}) 257 fake.recordInvocation("FindAndBindRoute", []interface{}{arg1, arg2, arg3}) 258 fake.findAndBindRouteMutex.Unlock() 259 if fake.FindAndBindRouteStub != nil { 260 return fake.FindAndBindRouteStub(arg1, arg2, arg3) 261 } 262 if specificReturn { 263 return ret.result1 264 } 265 fakeReturns := fake.findAndBindRouteReturns 266 return fakeReturns.result1 267 } 268 269 func (fake *FakeRouteActor) FindAndBindRouteCallCount() int { 270 fake.findAndBindRouteMutex.RLock() 271 defer fake.findAndBindRouteMutex.RUnlock() 272 return len(fake.findAndBindRouteArgsForCall) 273 } 274 275 func (fake *FakeRouteActor) FindAndBindRouteCalls(stub func(string, models.Application, models.AppParams) error) { 276 fake.findAndBindRouteMutex.Lock() 277 defer fake.findAndBindRouteMutex.Unlock() 278 fake.FindAndBindRouteStub = stub 279 } 280 281 func (fake *FakeRouteActor) FindAndBindRouteArgsForCall(i int) (string, models.Application, models.AppParams) { 282 fake.findAndBindRouteMutex.RLock() 283 defer fake.findAndBindRouteMutex.RUnlock() 284 argsForCall := fake.findAndBindRouteArgsForCall[i] 285 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 286 } 287 288 func (fake *FakeRouteActor) FindAndBindRouteReturns(result1 error) { 289 fake.findAndBindRouteMutex.Lock() 290 defer fake.findAndBindRouteMutex.Unlock() 291 fake.FindAndBindRouteStub = nil 292 fake.findAndBindRouteReturns = struct { 293 result1 error 294 }{result1} 295 } 296 297 func (fake *FakeRouteActor) FindAndBindRouteReturnsOnCall(i int, result1 error) { 298 fake.findAndBindRouteMutex.Lock() 299 defer fake.findAndBindRouteMutex.Unlock() 300 fake.FindAndBindRouteStub = nil 301 if fake.findAndBindRouteReturnsOnCall == nil { 302 fake.findAndBindRouteReturnsOnCall = make(map[int]struct { 303 result1 error 304 }) 305 } 306 fake.findAndBindRouteReturnsOnCall[i] = struct { 307 result1 error 308 }{result1} 309 } 310 311 func (fake *FakeRouteActor) FindDomain(arg1 string) (string, models.DomainFields, error) { 312 fake.findDomainMutex.Lock() 313 ret, specificReturn := fake.findDomainReturnsOnCall[len(fake.findDomainArgsForCall)] 314 fake.findDomainArgsForCall = append(fake.findDomainArgsForCall, struct { 315 arg1 string 316 }{arg1}) 317 fake.recordInvocation("FindDomain", []interface{}{arg1}) 318 fake.findDomainMutex.Unlock() 319 if fake.FindDomainStub != nil { 320 return fake.FindDomainStub(arg1) 321 } 322 if specificReturn { 323 return ret.result1, ret.result2, ret.result3 324 } 325 fakeReturns := fake.findDomainReturns 326 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 327 } 328 329 func (fake *FakeRouteActor) FindDomainCallCount() int { 330 fake.findDomainMutex.RLock() 331 defer fake.findDomainMutex.RUnlock() 332 return len(fake.findDomainArgsForCall) 333 } 334 335 func (fake *FakeRouteActor) FindDomainCalls(stub func(string) (string, models.DomainFields, error)) { 336 fake.findDomainMutex.Lock() 337 defer fake.findDomainMutex.Unlock() 338 fake.FindDomainStub = stub 339 } 340 341 func (fake *FakeRouteActor) FindDomainArgsForCall(i int) string { 342 fake.findDomainMutex.RLock() 343 defer fake.findDomainMutex.RUnlock() 344 argsForCall := fake.findDomainArgsForCall[i] 345 return argsForCall.arg1 346 } 347 348 func (fake *FakeRouteActor) FindDomainReturns(result1 string, result2 models.DomainFields, result3 error) { 349 fake.findDomainMutex.Lock() 350 defer fake.findDomainMutex.Unlock() 351 fake.FindDomainStub = nil 352 fake.findDomainReturns = struct { 353 result1 string 354 result2 models.DomainFields 355 result3 error 356 }{result1, result2, result3} 357 } 358 359 func (fake *FakeRouteActor) FindDomainReturnsOnCall(i int, result1 string, result2 models.DomainFields, result3 error) { 360 fake.findDomainMutex.Lock() 361 defer fake.findDomainMutex.Unlock() 362 fake.FindDomainStub = nil 363 if fake.findDomainReturnsOnCall == nil { 364 fake.findDomainReturnsOnCall = make(map[int]struct { 365 result1 string 366 result2 models.DomainFields 367 result3 error 368 }) 369 } 370 fake.findDomainReturnsOnCall[i] = struct { 371 result1 string 372 result2 models.DomainFields 373 result3 error 374 }{result1, result2, result3} 375 } 376 377 func (fake *FakeRouteActor) FindOrCreateRoute(arg1 string, arg2 models.DomainFields, arg3 string, arg4 int, arg5 bool) (models.Route, error) { 378 fake.findOrCreateRouteMutex.Lock() 379 ret, specificReturn := fake.findOrCreateRouteReturnsOnCall[len(fake.findOrCreateRouteArgsForCall)] 380 fake.findOrCreateRouteArgsForCall = append(fake.findOrCreateRouteArgsForCall, struct { 381 arg1 string 382 arg2 models.DomainFields 383 arg3 string 384 arg4 int 385 arg5 bool 386 }{arg1, arg2, arg3, arg4, arg5}) 387 fake.recordInvocation("FindOrCreateRoute", []interface{}{arg1, arg2, arg3, arg4, arg5}) 388 fake.findOrCreateRouteMutex.Unlock() 389 if fake.FindOrCreateRouteStub != nil { 390 return fake.FindOrCreateRouteStub(arg1, arg2, arg3, arg4, arg5) 391 } 392 if specificReturn { 393 return ret.result1, ret.result2 394 } 395 fakeReturns := fake.findOrCreateRouteReturns 396 return fakeReturns.result1, fakeReturns.result2 397 } 398 399 func (fake *FakeRouteActor) FindOrCreateRouteCallCount() int { 400 fake.findOrCreateRouteMutex.RLock() 401 defer fake.findOrCreateRouteMutex.RUnlock() 402 return len(fake.findOrCreateRouteArgsForCall) 403 } 404 405 func (fake *FakeRouteActor) FindOrCreateRouteCalls(stub func(string, models.DomainFields, string, int, bool) (models.Route, error)) { 406 fake.findOrCreateRouteMutex.Lock() 407 defer fake.findOrCreateRouteMutex.Unlock() 408 fake.FindOrCreateRouteStub = stub 409 } 410 411 func (fake *FakeRouteActor) FindOrCreateRouteArgsForCall(i int) (string, models.DomainFields, string, int, bool) { 412 fake.findOrCreateRouteMutex.RLock() 413 defer fake.findOrCreateRouteMutex.RUnlock() 414 argsForCall := fake.findOrCreateRouteArgsForCall[i] 415 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5 416 } 417 418 func (fake *FakeRouteActor) FindOrCreateRouteReturns(result1 models.Route, result2 error) { 419 fake.findOrCreateRouteMutex.Lock() 420 defer fake.findOrCreateRouteMutex.Unlock() 421 fake.FindOrCreateRouteStub = nil 422 fake.findOrCreateRouteReturns = struct { 423 result1 models.Route 424 result2 error 425 }{result1, result2} 426 } 427 428 func (fake *FakeRouteActor) FindOrCreateRouteReturnsOnCall(i int, result1 models.Route, result2 error) { 429 fake.findOrCreateRouteMutex.Lock() 430 defer fake.findOrCreateRouteMutex.Unlock() 431 fake.FindOrCreateRouteStub = nil 432 if fake.findOrCreateRouteReturnsOnCall == nil { 433 fake.findOrCreateRouteReturnsOnCall = make(map[int]struct { 434 result1 models.Route 435 result2 error 436 }) 437 } 438 fake.findOrCreateRouteReturnsOnCall[i] = struct { 439 result1 models.Route 440 result2 error 441 }{result1, result2} 442 } 443 444 func (fake *FakeRouteActor) FindPath(arg1 string) (string, string) { 445 fake.findPathMutex.Lock() 446 ret, specificReturn := fake.findPathReturnsOnCall[len(fake.findPathArgsForCall)] 447 fake.findPathArgsForCall = append(fake.findPathArgsForCall, struct { 448 arg1 string 449 }{arg1}) 450 fake.recordInvocation("FindPath", []interface{}{arg1}) 451 fake.findPathMutex.Unlock() 452 if fake.FindPathStub != nil { 453 return fake.FindPathStub(arg1) 454 } 455 if specificReturn { 456 return ret.result1, ret.result2 457 } 458 fakeReturns := fake.findPathReturns 459 return fakeReturns.result1, fakeReturns.result2 460 } 461 462 func (fake *FakeRouteActor) FindPathCallCount() int { 463 fake.findPathMutex.RLock() 464 defer fake.findPathMutex.RUnlock() 465 return len(fake.findPathArgsForCall) 466 } 467 468 func (fake *FakeRouteActor) FindPathCalls(stub func(string) (string, string)) { 469 fake.findPathMutex.Lock() 470 defer fake.findPathMutex.Unlock() 471 fake.FindPathStub = stub 472 } 473 474 func (fake *FakeRouteActor) FindPathArgsForCall(i int) string { 475 fake.findPathMutex.RLock() 476 defer fake.findPathMutex.RUnlock() 477 argsForCall := fake.findPathArgsForCall[i] 478 return argsForCall.arg1 479 } 480 481 func (fake *FakeRouteActor) FindPathReturns(result1 string, result2 string) { 482 fake.findPathMutex.Lock() 483 defer fake.findPathMutex.Unlock() 484 fake.FindPathStub = nil 485 fake.findPathReturns = struct { 486 result1 string 487 result2 string 488 }{result1, result2} 489 } 490 491 func (fake *FakeRouteActor) FindPathReturnsOnCall(i int, result1 string, result2 string) { 492 fake.findPathMutex.Lock() 493 defer fake.findPathMutex.Unlock() 494 fake.FindPathStub = nil 495 if fake.findPathReturnsOnCall == nil { 496 fake.findPathReturnsOnCall = make(map[int]struct { 497 result1 string 498 result2 string 499 }) 500 } 501 fake.findPathReturnsOnCall[i] = struct { 502 result1 string 503 result2 string 504 }{result1, result2} 505 } 506 507 func (fake *FakeRouteActor) FindPort(arg1 string) (string, int, error) { 508 fake.findPortMutex.Lock() 509 ret, specificReturn := fake.findPortReturnsOnCall[len(fake.findPortArgsForCall)] 510 fake.findPortArgsForCall = append(fake.findPortArgsForCall, struct { 511 arg1 string 512 }{arg1}) 513 fake.recordInvocation("FindPort", []interface{}{arg1}) 514 fake.findPortMutex.Unlock() 515 if fake.FindPortStub != nil { 516 return fake.FindPortStub(arg1) 517 } 518 if specificReturn { 519 return ret.result1, ret.result2, ret.result3 520 } 521 fakeReturns := fake.findPortReturns 522 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 523 } 524 525 func (fake *FakeRouteActor) FindPortCallCount() int { 526 fake.findPortMutex.RLock() 527 defer fake.findPortMutex.RUnlock() 528 return len(fake.findPortArgsForCall) 529 } 530 531 func (fake *FakeRouteActor) FindPortCalls(stub func(string) (string, int, error)) { 532 fake.findPortMutex.Lock() 533 defer fake.findPortMutex.Unlock() 534 fake.FindPortStub = stub 535 } 536 537 func (fake *FakeRouteActor) FindPortArgsForCall(i int) string { 538 fake.findPortMutex.RLock() 539 defer fake.findPortMutex.RUnlock() 540 argsForCall := fake.findPortArgsForCall[i] 541 return argsForCall.arg1 542 } 543 544 func (fake *FakeRouteActor) FindPortReturns(result1 string, result2 int, result3 error) { 545 fake.findPortMutex.Lock() 546 defer fake.findPortMutex.Unlock() 547 fake.FindPortStub = nil 548 fake.findPortReturns = struct { 549 result1 string 550 result2 int 551 result3 error 552 }{result1, result2, result3} 553 } 554 555 func (fake *FakeRouteActor) FindPortReturnsOnCall(i int, result1 string, result2 int, result3 error) { 556 fake.findPortMutex.Lock() 557 defer fake.findPortMutex.Unlock() 558 fake.FindPortStub = nil 559 if fake.findPortReturnsOnCall == nil { 560 fake.findPortReturnsOnCall = make(map[int]struct { 561 result1 string 562 result2 int 563 result3 error 564 }) 565 } 566 fake.findPortReturnsOnCall[i] = struct { 567 result1 string 568 result2 int 569 result3 error 570 }{result1, result2, result3} 571 } 572 573 func (fake *FakeRouteActor) UnbindAll(arg1 models.Application) error { 574 fake.unbindAllMutex.Lock() 575 ret, specificReturn := fake.unbindAllReturnsOnCall[len(fake.unbindAllArgsForCall)] 576 fake.unbindAllArgsForCall = append(fake.unbindAllArgsForCall, struct { 577 arg1 models.Application 578 }{arg1}) 579 fake.recordInvocation("UnbindAll", []interface{}{arg1}) 580 fake.unbindAllMutex.Unlock() 581 if fake.UnbindAllStub != nil { 582 return fake.UnbindAllStub(arg1) 583 } 584 if specificReturn { 585 return ret.result1 586 } 587 fakeReturns := fake.unbindAllReturns 588 return fakeReturns.result1 589 } 590 591 func (fake *FakeRouteActor) UnbindAllCallCount() int { 592 fake.unbindAllMutex.RLock() 593 defer fake.unbindAllMutex.RUnlock() 594 return len(fake.unbindAllArgsForCall) 595 } 596 597 func (fake *FakeRouteActor) UnbindAllCalls(stub func(models.Application) error) { 598 fake.unbindAllMutex.Lock() 599 defer fake.unbindAllMutex.Unlock() 600 fake.UnbindAllStub = stub 601 } 602 603 func (fake *FakeRouteActor) UnbindAllArgsForCall(i int) models.Application { 604 fake.unbindAllMutex.RLock() 605 defer fake.unbindAllMutex.RUnlock() 606 argsForCall := fake.unbindAllArgsForCall[i] 607 return argsForCall.arg1 608 } 609 610 func (fake *FakeRouteActor) UnbindAllReturns(result1 error) { 611 fake.unbindAllMutex.Lock() 612 defer fake.unbindAllMutex.Unlock() 613 fake.UnbindAllStub = nil 614 fake.unbindAllReturns = struct { 615 result1 error 616 }{result1} 617 } 618 619 func (fake *FakeRouteActor) UnbindAllReturnsOnCall(i int, result1 error) { 620 fake.unbindAllMutex.Lock() 621 defer fake.unbindAllMutex.Unlock() 622 fake.UnbindAllStub = nil 623 if fake.unbindAllReturnsOnCall == nil { 624 fake.unbindAllReturnsOnCall = make(map[int]struct { 625 result1 error 626 }) 627 } 628 fake.unbindAllReturnsOnCall[i] = struct { 629 result1 error 630 }{result1} 631 } 632 633 func (fake *FakeRouteActor) Invocations() map[string][][]interface{} { 634 fake.invocationsMutex.RLock() 635 defer fake.invocationsMutex.RUnlock() 636 fake.bindRouteMutex.RLock() 637 defer fake.bindRouteMutex.RUnlock() 638 fake.createRandomTCPRouteMutex.RLock() 639 defer fake.createRandomTCPRouteMutex.RUnlock() 640 fake.findAndBindRouteMutex.RLock() 641 defer fake.findAndBindRouteMutex.RUnlock() 642 fake.findDomainMutex.RLock() 643 defer fake.findDomainMutex.RUnlock() 644 fake.findOrCreateRouteMutex.RLock() 645 defer fake.findOrCreateRouteMutex.RUnlock() 646 fake.findPathMutex.RLock() 647 defer fake.findPathMutex.RUnlock() 648 fake.findPortMutex.RLock() 649 defer fake.findPortMutex.RUnlock() 650 fake.unbindAllMutex.RLock() 651 defer fake.unbindAllMutex.RUnlock() 652 copiedInvocations := map[string][][]interface{}{} 653 for key, value := range fake.invocations { 654 copiedInvocations[key] = value 655 } 656 return copiedInvocations 657 } 658 659 func (fake *FakeRouteActor) recordInvocation(key string, args []interface{}) { 660 fake.invocationsMutex.Lock() 661 defer fake.invocationsMutex.Unlock() 662 if fake.invocations == nil { 663 fake.invocations = map[string][][]interface{}{} 664 } 665 if fake.invocations[key] == nil { 666 fake.invocations[key] = [][]interface{}{} 667 } 668 fake.invocations[key] = append(fake.invocations[key], args) 669 } 670 671 var _ actors.RouteActor = new(FakeRouteActor)