github.com/loafoe/cli@v7.1.0+incompatible/cf/requirements/requirementsfakes/fake_factory.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package requirementsfakes 3 4 import ( 5 "sync" 6 7 "code.cloudfoundry.org/cli/cf/requirements" 8 "github.com/blang/semver" 9 ) 10 11 type FakeFactory struct { 12 NewAPIEndpointRequirementStub func() requirements.Requirement 13 newAPIEndpointRequirementMutex sync.RWMutex 14 newAPIEndpointRequirementArgsForCall []struct { 15 } 16 newAPIEndpointRequirementReturns struct { 17 result1 requirements.Requirement 18 } 19 newAPIEndpointRequirementReturnsOnCall map[int]struct { 20 result1 requirements.Requirement 21 } 22 NewApplicationRequirementStub func(string) requirements.ApplicationRequirement 23 newApplicationRequirementMutex sync.RWMutex 24 newApplicationRequirementArgsForCall []struct { 25 arg1 string 26 } 27 newApplicationRequirementReturns struct { 28 result1 requirements.ApplicationRequirement 29 } 30 newApplicationRequirementReturnsOnCall map[int]struct { 31 result1 requirements.ApplicationRequirement 32 } 33 NewBuildpackRequirementStub func(string, string) requirements.BuildpackRequirement 34 newBuildpackRequirementMutex sync.RWMutex 35 newBuildpackRequirementArgsForCall []struct { 36 arg1 string 37 arg2 string 38 } 39 newBuildpackRequirementReturns struct { 40 result1 requirements.BuildpackRequirement 41 } 42 newBuildpackRequirementReturnsOnCall map[int]struct { 43 result1 requirements.BuildpackRequirement 44 } 45 NewClientRequirementStub func(string) requirements.UserRequirement 46 newClientRequirementMutex sync.RWMutex 47 newClientRequirementArgsForCall []struct { 48 arg1 string 49 } 50 newClientRequirementReturns struct { 51 result1 requirements.UserRequirement 52 } 53 newClientRequirementReturnsOnCall map[int]struct { 54 result1 requirements.UserRequirement 55 } 56 NewDEAApplicationRequirementStub func(string) requirements.DEAApplicationRequirement 57 newDEAApplicationRequirementMutex sync.RWMutex 58 newDEAApplicationRequirementArgsForCall []struct { 59 arg1 string 60 } 61 newDEAApplicationRequirementReturns struct { 62 result1 requirements.DEAApplicationRequirement 63 } 64 newDEAApplicationRequirementReturnsOnCall map[int]struct { 65 result1 requirements.DEAApplicationRequirement 66 } 67 NewDomainRequirementStub func(string) requirements.DomainRequirement 68 newDomainRequirementMutex sync.RWMutex 69 newDomainRequirementArgsForCall []struct { 70 arg1 string 71 } 72 newDomainRequirementReturns struct { 73 result1 requirements.DomainRequirement 74 } 75 newDomainRequirementReturnsOnCall map[int]struct { 76 result1 requirements.DomainRequirement 77 } 78 NewLoginRequirementStub func() requirements.Requirement 79 newLoginRequirementMutex sync.RWMutex 80 newLoginRequirementArgsForCall []struct { 81 } 82 newLoginRequirementReturns struct { 83 result1 requirements.Requirement 84 } 85 newLoginRequirementReturnsOnCall map[int]struct { 86 result1 requirements.Requirement 87 } 88 NewMaxAPIVersionRequirementStub func(string, semver.Version) requirements.Requirement 89 newMaxAPIVersionRequirementMutex sync.RWMutex 90 newMaxAPIVersionRequirementArgsForCall []struct { 91 arg1 string 92 arg2 semver.Version 93 } 94 newMaxAPIVersionRequirementReturns struct { 95 result1 requirements.Requirement 96 } 97 newMaxAPIVersionRequirementReturnsOnCall map[int]struct { 98 result1 requirements.Requirement 99 } 100 NewMinAPIVersionRequirementStub func(string, semver.Version) requirements.Requirement 101 newMinAPIVersionRequirementMutex sync.RWMutex 102 newMinAPIVersionRequirementArgsForCall []struct { 103 arg1 string 104 arg2 semver.Version 105 } 106 newMinAPIVersionRequirementReturns struct { 107 result1 requirements.Requirement 108 } 109 newMinAPIVersionRequirementReturnsOnCall map[int]struct { 110 result1 requirements.Requirement 111 } 112 NewNumberArgumentsStub func([]string, ...string) requirements.Requirement 113 newNumberArgumentsMutex sync.RWMutex 114 newNumberArgumentsArgsForCall []struct { 115 arg1 []string 116 arg2 []string 117 } 118 newNumberArgumentsReturns struct { 119 result1 requirements.Requirement 120 } 121 newNumberArgumentsReturnsOnCall map[int]struct { 122 result1 requirements.Requirement 123 } 124 NewOrganizationRequirementStub func(string) requirements.OrganizationRequirement 125 newOrganizationRequirementMutex sync.RWMutex 126 newOrganizationRequirementArgsForCall []struct { 127 arg1 string 128 } 129 newOrganizationRequirementReturns struct { 130 result1 requirements.OrganizationRequirement 131 } 132 newOrganizationRequirementReturnsOnCall map[int]struct { 133 result1 requirements.OrganizationRequirement 134 } 135 NewServiceInstanceRequirementStub func(string) requirements.ServiceInstanceRequirement 136 newServiceInstanceRequirementMutex sync.RWMutex 137 newServiceInstanceRequirementArgsForCall []struct { 138 arg1 string 139 } 140 newServiceInstanceRequirementReturns struct { 141 result1 requirements.ServiceInstanceRequirement 142 } 143 newServiceInstanceRequirementReturnsOnCall map[int]struct { 144 result1 requirements.ServiceInstanceRequirement 145 } 146 NewSpaceRequirementStub func(string) requirements.SpaceRequirement 147 newSpaceRequirementMutex sync.RWMutex 148 newSpaceRequirementArgsForCall []struct { 149 arg1 string 150 } 151 newSpaceRequirementReturns struct { 152 result1 requirements.SpaceRequirement 153 } 154 newSpaceRequirementReturnsOnCall map[int]struct { 155 result1 requirements.SpaceRequirement 156 } 157 NewTargetedOrgRequirementStub func() requirements.TargetedOrgRequirement 158 newTargetedOrgRequirementMutex sync.RWMutex 159 newTargetedOrgRequirementArgsForCall []struct { 160 } 161 newTargetedOrgRequirementReturns struct { 162 result1 requirements.TargetedOrgRequirement 163 } 164 newTargetedOrgRequirementReturnsOnCall map[int]struct { 165 result1 requirements.TargetedOrgRequirement 166 } 167 NewTargetedSpaceRequirementStub func() requirements.Requirement 168 newTargetedSpaceRequirementMutex sync.RWMutex 169 newTargetedSpaceRequirementArgsForCall []struct { 170 } 171 newTargetedSpaceRequirementReturns struct { 172 result1 requirements.Requirement 173 } 174 newTargetedSpaceRequirementReturnsOnCall map[int]struct { 175 result1 requirements.Requirement 176 } 177 NewUnsupportedLegacyFlagRequirementStub func(...string) requirements.Requirement 178 newUnsupportedLegacyFlagRequirementMutex sync.RWMutex 179 newUnsupportedLegacyFlagRequirementArgsForCall []struct { 180 arg1 []string 181 } 182 newUnsupportedLegacyFlagRequirementReturns struct { 183 result1 requirements.Requirement 184 } 185 newUnsupportedLegacyFlagRequirementReturnsOnCall map[int]struct { 186 result1 requirements.Requirement 187 } 188 NewUsageRequirementStub func(requirements.Usable, string, func() bool) requirements.Requirement 189 newUsageRequirementMutex sync.RWMutex 190 newUsageRequirementArgsForCall []struct { 191 arg1 requirements.Usable 192 arg2 string 193 arg3 func() bool 194 } 195 newUsageRequirementReturns struct { 196 result1 requirements.Requirement 197 } 198 newUsageRequirementReturnsOnCall map[int]struct { 199 result1 requirements.Requirement 200 } 201 NewUserRequirementStub func(string, bool) requirements.UserRequirement 202 newUserRequirementMutex sync.RWMutex 203 newUserRequirementArgsForCall []struct { 204 arg1 string 205 arg2 bool 206 } 207 newUserRequirementReturns struct { 208 result1 requirements.UserRequirement 209 } 210 newUserRequirementReturnsOnCall map[int]struct { 211 result1 requirements.UserRequirement 212 } 213 invocations map[string][][]interface{} 214 invocationsMutex sync.RWMutex 215 } 216 217 func (fake *FakeFactory) NewAPIEndpointRequirement() requirements.Requirement { 218 fake.newAPIEndpointRequirementMutex.Lock() 219 ret, specificReturn := fake.newAPIEndpointRequirementReturnsOnCall[len(fake.newAPIEndpointRequirementArgsForCall)] 220 fake.newAPIEndpointRequirementArgsForCall = append(fake.newAPIEndpointRequirementArgsForCall, struct { 221 }{}) 222 fake.recordInvocation("NewAPIEndpointRequirement", []interface{}{}) 223 fake.newAPIEndpointRequirementMutex.Unlock() 224 if fake.NewAPIEndpointRequirementStub != nil { 225 return fake.NewAPIEndpointRequirementStub() 226 } 227 if specificReturn { 228 return ret.result1 229 } 230 fakeReturns := fake.newAPIEndpointRequirementReturns 231 return fakeReturns.result1 232 } 233 234 func (fake *FakeFactory) NewAPIEndpointRequirementCallCount() int { 235 fake.newAPIEndpointRequirementMutex.RLock() 236 defer fake.newAPIEndpointRequirementMutex.RUnlock() 237 return len(fake.newAPIEndpointRequirementArgsForCall) 238 } 239 240 func (fake *FakeFactory) NewAPIEndpointRequirementCalls(stub func() requirements.Requirement) { 241 fake.newAPIEndpointRequirementMutex.Lock() 242 defer fake.newAPIEndpointRequirementMutex.Unlock() 243 fake.NewAPIEndpointRequirementStub = stub 244 } 245 246 func (fake *FakeFactory) NewAPIEndpointRequirementReturns(result1 requirements.Requirement) { 247 fake.newAPIEndpointRequirementMutex.Lock() 248 defer fake.newAPIEndpointRequirementMutex.Unlock() 249 fake.NewAPIEndpointRequirementStub = nil 250 fake.newAPIEndpointRequirementReturns = struct { 251 result1 requirements.Requirement 252 }{result1} 253 } 254 255 func (fake *FakeFactory) NewAPIEndpointRequirementReturnsOnCall(i int, result1 requirements.Requirement) { 256 fake.newAPIEndpointRequirementMutex.Lock() 257 defer fake.newAPIEndpointRequirementMutex.Unlock() 258 fake.NewAPIEndpointRequirementStub = nil 259 if fake.newAPIEndpointRequirementReturnsOnCall == nil { 260 fake.newAPIEndpointRequirementReturnsOnCall = make(map[int]struct { 261 result1 requirements.Requirement 262 }) 263 } 264 fake.newAPIEndpointRequirementReturnsOnCall[i] = struct { 265 result1 requirements.Requirement 266 }{result1} 267 } 268 269 func (fake *FakeFactory) NewApplicationRequirement(arg1 string) requirements.ApplicationRequirement { 270 fake.newApplicationRequirementMutex.Lock() 271 ret, specificReturn := fake.newApplicationRequirementReturnsOnCall[len(fake.newApplicationRequirementArgsForCall)] 272 fake.newApplicationRequirementArgsForCall = append(fake.newApplicationRequirementArgsForCall, struct { 273 arg1 string 274 }{arg1}) 275 fake.recordInvocation("NewApplicationRequirement", []interface{}{arg1}) 276 fake.newApplicationRequirementMutex.Unlock() 277 if fake.NewApplicationRequirementStub != nil { 278 return fake.NewApplicationRequirementStub(arg1) 279 } 280 if specificReturn { 281 return ret.result1 282 } 283 fakeReturns := fake.newApplicationRequirementReturns 284 return fakeReturns.result1 285 } 286 287 func (fake *FakeFactory) NewApplicationRequirementCallCount() int { 288 fake.newApplicationRequirementMutex.RLock() 289 defer fake.newApplicationRequirementMutex.RUnlock() 290 return len(fake.newApplicationRequirementArgsForCall) 291 } 292 293 func (fake *FakeFactory) NewApplicationRequirementCalls(stub func(string) requirements.ApplicationRequirement) { 294 fake.newApplicationRequirementMutex.Lock() 295 defer fake.newApplicationRequirementMutex.Unlock() 296 fake.NewApplicationRequirementStub = stub 297 } 298 299 func (fake *FakeFactory) NewApplicationRequirementArgsForCall(i int) string { 300 fake.newApplicationRequirementMutex.RLock() 301 defer fake.newApplicationRequirementMutex.RUnlock() 302 argsForCall := fake.newApplicationRequirementArgsForCall[i] 303 return argsForCall.arg1 304 } 305 306 func (fake *FakeFactory) NewApplicationRequirementReturns(result1 requirements.ApplicationRequirement) { 307 fake.newApplicationRequirementMutex.Lock() 308 defer fake.newApplicationRequirementMutex.Unlock() 309 fake.NewApplicationRequirementStub = nil 310 fake.newApplicationRequirementReturns = struct { 311 result1 requirements.ApplicationRequirement 312 }{result1} 313 } 314 315 func (fake *FakeFactory) NewApplicationRequirementReturnsOnCall(i int, result1 requirements.ApplicationRequirement) { 316 fake.newApplicationRequirementMutex.Lock() 317 defer fake.newApplicationRequirementMutex.Unlock() 318 fake.NewApplicationRequirementStub = nil 319 if fake.newApplicationRequirementReturnsOnCall == nil { 320 fake.newApplicationRequirementReturnsOnCall = make(map[int]struct { 321 result1 requirements.ApplicationRequirement 322 }) 323 } 324 fake.newApplicationRequirementReturnsOnCall[i] = struct { 325 result1 requirements.ApplicationRequirement 326 }{result1} 327 } 328 329 func (fake *FakeFactory) NewBuildpackRequirement(arg1 string, arg2 string) requirements.BuildpackRequirement { 330 fake.newBuildpackRequirementMutex.Lock() 331 ret, specificReturn := fake.newBuildpackRequirementReturnsOnCall[len(fake.newBuildpackRequirementArgsForCall)] 332 fake.newBuildpackRequirementArgsForCall = append(fake.newBuildpackRequirementArgsForCall, struct { 333 arg1 string 334 arg2 string 335 }{arg1, arg2}) 336 fake.recordInvocation("NewBuildpackRequirement", []interface{}{arg1, arg2}) 337 fake.newBuildpackRequirementMutex.Unlock() 338 if fake.NewBuildpackRequirementStub != nil { 339 return fake.NewBuildpackRequirementStub(arg1, arg2) 340 } 341 if specificReturn { 342 return ret.result1 343 } 344 fakeReturns := fake.newBuildpackRequirementReturns 345 return fakeReturns.result1 346 } 347 348 func (fake *FakeFactory) NewBuildpackRequirementCallCount() int { 349 fake.newBuildpackRequirementMutex.RLock() 350 defer fake.newBuildpackRequirementMutex.RUnlock() 351 return len(fake.newBuildpackRequirementArgsForCall) 352 } 353 354 func (fake *FakeFactory) NewBuildpackRequirementCalls(stub func(string, string) requirements.BuildpackRequirement) { 355 fake.newBuildpackRequirementMutex.Lock() 356 defer fake.newBuildpackRequirementMutex.Unlock() 357 fake.NewBuildpackRequirementStub = stub 358 } 359 360 func (fake *FakeFactory) NewBuildpackRequirementArgsForCall(i int) (string, string) { 361 fake.newBuildpackRequirementMutex.RLock() 362 defer fake.newBuildpackRequirementMutex.RUnlock() 363 argsForCall := fake.newBuildpackRequirementArgsForCall[i] 364 return argsForCall.arg1, argsForCall.arg2 365 } 366 367 func (fake *FakeFactory) NewBuildpackRequirementReturns(result1 requirements.BuildpackRequirement) { 368 fake.newBuildpackRequirementMutex.Lock() 369 defer fake.newBuildpackRequirementMutex.Unlock() 370 fake.NewBuildpackRequirementStub = nil 371 fake.newBuildpackRequirementReturns = struct { 372 result1 requirements.BuildpackRequirement 373 }{result1} 374 } 375 376 func (fake *FakeFactory) NewBuildpackRequirementReturnsOnCall(i int, result1 requirements.BuildpackRequirement) { 377 fake.newBuildpackRequirementMutex.Lock() 378 defer fake.newBuildpackRequirementMutex.Unlock() 379 fake.NewBuildpackRequirementStub = nil 380 if fake.newBuildpackRequirementReturnsOnCall == nil { 381 fake.newBuildpackRequirementReturnsOnCall = make(map[int]struct { 382 result1 requirements.BuildpackRequirement 383 }) 384 } 385 fake.newBuildpackRequirementReturnsOnCall[i] = struct { 386 result1 requirements.BuildpackRequirement 387 }{result1} 388 } 389 390 func (fake *FakeFactory) NewClientRequirement(arg1 string) requirements.UserRequirement { 391 fake.newClientRequirementMutex.Lock() 392 ret, specificReturn := fake.newClientRequirementReturnsOnCall[len(fake.newClientRequirementArgsForCall)] 393 fake.newClientRequirementArgsForCall = append(fake.newClientRequirementArgsForCall, struct { 394 arg1 string 395 }{arg1}) 396 fake.recordInvocation("NewClientRequirement", []interface{}{arg1}) 397 fake.newClientRequirementMutex.Unlock() 398 if fake.NewClientRequirementStub != nil { 399 return fake.NewClientRequirementStub(arg1) 400 } 401 if specificReturn { 402 return ret.result1 403 } 404 fakeReturns := fake.newClientRequirementReturns 405 return fakeReturns.result1 406 } 407 408 func (fake *FakeFactory) NewClientRequirementCallCount() int { 409 fake.newClientRequirementMutex.RLock() 410 defer fake.newClientRequirementMutex.RUnlock() 411 return len(fake.newClientRequirementArgsForCall) 412 } 413 414 func (fake *FakeFactory) NewClientRequirementCalls(stub func(string) requirements.UserRequirement) { 415 fake.newClientRequirementMutex.Lock() 416 defer fake.newClientRequirementMutex.Unlock() 417 fake.NewClientRequirementStub = stub 418 } 419 420 func (fake *FakeFactory) NewClientRequirementArgsForCall(i int) string { 421 fake.newClientRequirementMutex.RLock() 422 defer fake.newClientRequirementMutex.RUnlock() 423 argsForCall := fake.newClientRequirementArgsForCall[i] 424 return argsForCall.arg1 425 } 426 427 func (fake *FakeFactory) NewClientRequirementReturns(result1 requirements.UserRequirement) { 428 fake.newClientRequirementMutex.Lock() 429 defer fake.newClientRequirementMutex.Unlock() 430 fake.NewClientRequirementStub = nil 431 fake.newClientRequirementReturns = struct { 432 result1 requirements.UserRequirement 433 }{result1} 434 } 435 436 func (fake *FakeFactory) NewClientRequirementReturnsOnCall(i int, result1 requirements.UserRequirement) { 437 fake.newClientRequirementMutex.Lock() 438 defer fake.newClientRequirementMutex.Unlock() 439 fake.NewClientRequirementStub = nil 440 if fake.newClientRequirementReturnsOnCall == nil { 441 fake.newClientRequirementReturnsOnCall = make(map[int]struct { 442 result1 requirements.UserRequirement 443 }) 444 } 445 fake.newClientRequirementReturnsOnCall[i] = struct { 446 result1 requirements.UserRequirement 447 }{result1} 448 } 449 450 func (fake *FakeFactory) NewDEAApplicationRequirement(arg1 string) requirements.DEAApplicationRequirement { 451 fake.newDEAApplicationRequirementMutex.Lock() 452 ret, specificReturn := fake.newDEAApplicationRequirementReturnsOnCall[len(fake.newDEAApplicationRequirementArgsForCall)] 453 fake.newDEAApplicationRequirementArgsForCall = append(fake.newDEAApplicationRequirementArgsForCall, struct { 454 arg1 string 455 }{arg1}) 456 fake.recordInvocation("NewDEAApplicationRequirement", []interface{}{arg1}) 457 fake.newDEAApplicationRequirementMutex.Unlock() 458 if fake.NewDEAApplicationRequirementStub != nil { 459 return fake.NewDEAApplicationRequirementStub(arg1) 460 } 461 if specificReturn { 462 return ret.result1 463 } 464 fakeReturns := fake.newDEAApplicationRequirementReturns 465 return fakeReturns.result1 466 } 467 468 func (fake *FakeFactory) NewDEAApplicationRequirementCallCount() int { 469 fake.newDEAApplicationRequirementMutex.RLock() 470 defer fake.newDEAApplicationRequirementMutex.RUnlock() 471 return len(fake.newDEAApplicationRequirementArgsForCall) 472 } 473 474 func (fake *FakeFactory) NewDEAApplicationRequirementCalls(stub func(string) requirements.DEAApplicationRequirement) { 475 fake.newDEAApplicationRequirementMutex.Lock() 476 defer fake.newDEAApplicationRequirementMutex.Unlock() 477 fake.NewDEAApplicationRequirementStub = stub 478 } 479 480 func (fake *FakeFactory) NewDEAApplicationRequirementArgsForCall(i int) string { 481 fake.newDEAApplicationRequirementMutex.RLock() 482 defer fake.newDEAApplicationRequirementMutex.RUnlock() 483 argsForCall := fake.newDEAApplicationRequirementArgsForCall[i] 484 return argsForCall.arg1 485 } 486 487 func (fake *FakeFactory) NewDEAApplicationRequirementReturns(result1 requirements.DEAApplicationRequirement) { 488 fake.newDEAApplicationRequirementMutex.Lock() 489 defer fake.newDEAApplicationRequirementMutex.Unlock() 490 fake.NewDEAApplicationRequirementStub = nil 491 fake.newDEAApplicationRequirementReturns = struct { 492 result1 requirements.DEAApplicationRequirement 493 }{result1} 494 } 495 496 func (fake *FakeFactory) NewDEAApplicationRequirementReturnsOnCall(i int, result1 requirements.DEAApplicationRequirement) { 497 fake.newDEAApplicationRequirementMutex.Lock() 498 defer fake.newDEAApplicationRequirementMutex.Unlock() 499 fake.NewDEAApplicationRequirementStub = nil 500 if fake.newDEAApplicationRequirementReturnsOnCall == nil { 501 fake.newDEAApplicationRequirementReturnsOnCall = make(map[int]struct { 502 result1 requirements.DEAApplicationRequirement 503 }) 504 } 505 fake.newDEAApplicationRequirementReturnsOnCall[i] = struct { 506 result1 requirements.DEAApplicationRequirement 507 }{result1} 508 } 509 510 func (fake *FakeFactory) NewDomainRequirement(arg1 string) requirements.DomainRequirement { 511 fake.newDomainRequirementMutex.Lock() 512 ret, specificReturn := fake.newDomainRequirementReturnsOnCall[len(fake.newDomainRequirementArgsForCall)] 513 fake.newDomainRequirementArgsForCall = append(fake.newDomainRequirementArgsForCall, struct { 514 arg1 string 515 }{arg1}) 516 fake.recordInvocation("NewDomainRequirement", []interface{}{arg1}) 517 fake.newDomainRequirementMutex.Unlock() 518 if fake.NewDomainRequirementStub != nil { 519 return fake.NewDomainRequirementStub(arg1) 520 } 521 if specificReturn { 522 return ret.result1 523 } 524 fakeReturns := fake.newDomainRequirementReturns 525 return fakeReturns.result1 526 } 527 528 func (fake *FakeFactory) NewDomainRequirementCallCount() int { 529 fake.newDomainRequirementMutex.RLock() 530 defer fake.newDomainRequirementMutex.RUnlock() 531 return len(fake.newDomainRequirementArgsForCall) 532 } 533 534 func (fake *FakeFactory) NewDomainRequirementCalls(stub func(string) requirements.DomainRequirement) { 535 fake.newDomainRequirementMutex.Lock() 536 defer fake.newDomainRequirementMutex.Unlock() 537 fake.NewDomainRequirementStub = stub 538 } 539 540 func (fake *FakeFactory) NewDomainRequirementArgsForCall(i int) string { 541 fake.newDomainRequirementMutex.RLock() 542 defer fake.newDomainRequirementMutex.RUnlock() 543 argsForCall := fake.newDomainRequirementArgsForCall[i] 544 return argsForCall.arg1 545 } 546 547 func (fake *FakeFactory) NewDomainRequirementReturns(result1 requirements.DomainRequirement) { 548 fake.newDomainRequirementMutex.Lock() 549 defer fake.newDomainRequirementMutex.Unlock() 550 fake.NewDomainRequirementStub = nil 551 fake.newDomainRequirementReturns = struct { 552 result1 requirements.DomainRequirement 553 }{result1} 554 } 555 556 func (fake *FakeFactory) NewDomainRequirementReturnsOnCall(i int, result1 requirements.DomainRequirement) { 557 fake.newDomainRequirementMutex.Lock() 558 defer fake.newDomainRequirementMutex.Unlock() 559 fake.NewDomainRequirementStub = nil 560 if fake.newDomainRequirementReturnsOnCall == nil { 561 fake.newDomainRequirementReturnsOnCall = make(map[int]struct { 562 result1 requirements.DomainRequirement 563 }) 564 } 565 fake.newDomainRequirementReturnsOnCall[i] = struct { 566 result1 requirements.DomainRequirement 567 }{result1} 568 } 569 570 func (fake *FakeFactory) NewLoginRequirement() requirements.Requirement { 571 fake.newLoginRequirementMutex.Lock() 572 ret, specificReturn := fake.newLoginRequirementReturnsOnCall[len(fake.newLoginRequirementArgsForCall)] 573 fake.newLoginRequirementArgsForCall = append(fake.newLoginRequirementArgsForCall, struct { 574 }{}) 575 fake.recordInvocation("NewLoginRequirement", []interface{}{}) 576 fake.newLoginRequirementMutex.Unlock() 577 if fake.NewLoginRequirementStub != nil { 578 return fake.NewLoginRequirementStub() 579 } 580 if specificReturn { 581 return ret.result1 582 } 583 fakeReturns := fake.newLoginRequirementReturns 584 return fakeReturns.result1 585 } 586 587 func (fake *FakeFactory) NewLoginRequirementCallCount() int { 588 fake.newLoginRequirementMutex.RLock() 589 defer fake.newLoginRequirementMutex.RUnlock() 590 return len(fake.newLoginRequirementArgsForCall) 591 } 592 593 func (fake *FakeFactory) NewLoginRequirementCalls(stub func() requirements.Requirement) { 594 fake.newLoginRequirementMutex.Lock() 595 defer fake.newLoginRequirementMutex.Unlock() 596 fake.NewLoginRequirementStub = stub 597 } 598 599 func (fake *FakeFactory) NewLoginRequirementReturns(result1 requirements.Requirement) { 600 fake.newLoginRequirementMutex.Lock() 601 defer fake.newLoginRequirementMutex.Unlock() 602 fake.NewLoginRequirementStub = nil 603 fake.newLoginRequirementReturns = struct { 604 result1 requirements.Requirement 605 }{result1} 606 } 607 608 func (fake *FakeFactory) NewLoginRequirementReturnsOnCall(i int, result1 requirements.Requirement) { 609 fake.newLoginRequirementMutex.Lock() 610 defer fake.newLoginRequirementMutex.Unlock() 611 fake.NewLoginRequirementStub = nil 612 if fake.newLoginRequirementReturnsOnCall == nil { 613 fake.newLoginRequirementReturnsOnCall = make(map[int]struct { 614 result1 requirements.Requirement 615 }) 616 } 617 fake.newLoginRequirementReturnsOnCall[i] = struct { 618 result1 requirements.Requirement 619 }{result1} 620 } 621 622 func (fake *FakeFactory) NewMaxAPIVersionRequirement(arg1 string, arg2 semver.Version) requirements.Requirement { 623 fake.newMaxAPIVersionRequirementMutex.Lock() 624 ret, specificReturn := fake.newMaxAPIVersionRequirementReturnsOnCall[len(fake.newMaxAPIVersionRequirementArgsForCall)] 625 fake.newMaxAPIVersionRequirementArgsForCall = append(fake.newMaxAPIVersionRequirementArgsForCall, struct { 626 arg1 string 627 arg2 semver.Version 628 }{arg1, arg2}) 629 fake.recordInvocation("NewMaxAPIVersionRequirement", []interface{}{arg1, arg2}) 630 fake.newMaxAPIVersionRequirementMutex.Unlock() 631 if fake.NewMaxAPIVersionRequirementStub != nil { 632 return fake.NewMaxAPIVersionRequirementStub(arg1, arg2) 633 } 634 if specificReturn { 635 return ret.result1 636 } 637 fakeReturns := fake.newMaxAPIVersionRequirementReturns 638 return fakeReturns.result1 639 } 640 641 func (fake *FakeFactory) NewMaxAPIVersionRequirementCallCount() int { 642 fake.newMaxAPIVersionRequirementMutex.RLock() 643 defer fake.newMaxAPIVersionRequirementMutex.RUnlock() 644 return len(fake.newMaxAPIVersionRequirementArgsForCall) 645 } 646 647 func (fake *FakeFactory) NewMaxAPIVersionRequirementCalls(stub func(string, semver.Version) requirements.Requirement) { 648 fake.newMaxAPIVersionRequirementMutex.Lock() 649 defer fake.newMaxAPIVersionRequirementMutex.Unlock() 650 fake.NewMaxAPIVersionRequirementStub = stub 651 } 652 653 func (fake *FakeFactory) NewMaxAPIVersionRequirementArgsForCall(i int) (string, semver.Version) { 654 fake.newMaxAPIVersionRequirementMutex.RLock() 655 defer fake.newMaxAPIVersionRequirementMutex.RUnlock() 656 argsForCall := fake.newMaxAPIVersionRequirementArgsForCall[i] 657 return argsForCall.arg1, argsForCall.arg2 658 } 659 660 func (fake *FakeFactory) NewMaxAPIVersionRequirementReturns(result1 requirements.Requirement) { 661 fake.newMaxAPIVersionRequirementMutex.Lock() 662 defer fake.newMaxAPIVersionRequirementMutex.Unlock() 663 fake.NewMaxAPIVersionRequirementStub = nil 664 fake.newMaxAPIVersionRequirementReturns = struct { 665 result1 requirements.Requirement 666 }{result1} 667 } 668 669 func (fake *FakeFactory) NewMaxAPIVersionRequirementReturnsOnCall(i int, result1 requirements.Requirement) { 670 fake.newMaxAPIVersionRequirementMutex.Lock() 671 defer fake.newMaxAPIVersionRequirementMutex.Unlock() 672 fake.NewMaxAPIVersionRequirementStub = nil 673 if fake.newMaxAPIVersionRequirementReturnsOnCall == nil { 674 fake.newMaxAPIVersionRequirementReturnsOnCall = make(map[int]struct { 675 result1 requirements.Requirement 676 }) 677 } 678 fake.newMaxAPIVersionRequirementReturnsOnCall[i] = struct { 679 result1 requirements.Requirement 680 }{result1} 681 } 682 683 func (fake *FakeFactory) NewMinAPIVersionRequirement(arg1 string, arg2 semver.Version) requirements.Requirement { 684 fake.newMinAPIVersionRequirementMutex.Lock() 685 ret, specificReturn := fake.newMinAPIVersionRequirementReturnsOnCall[len(fake.newMinAPIVersionRequirementArgsForCall)] 686 fake.newMinAPIVersionRequirementArgsForCall = append(fake.newMinAPIVersionRequirementArgsForCall, struct { 687 arg1 string 688 arg2 semver.Version 689 }{arg1, arg2}) 690 fake.recordInvocation("NewMinAPIVersionRequirement", []interface{}{arg1, arg2}) 691 fake.newMinAPIVersionRequirementMutex.Unlock() 692 if fake.NewMinAPIVersionRequirementStub != nil { 693 return fake.NewMinAPIVersionRequirementStub(arg1, arg2) 694 } 695 if specificReturn { 696 return ret.result1 697 } 698 fakeReturns := fake.newMinAPIVersionRequirementReturns 699 return fakeReturns.result1 700 } 701 702 func (fake *FakeFactory) NewMinAPIVersionRequirementCallCount() int { 703 fake.newMinAPIVersionRequirementMutex.RLock() 704 defer fake.newMinAPIVersionRequirementMutex.RUnlock() 705 return len(fake.newMinAPIVersionRequirementArgsForCall) 706 } 707 708 func (fake *FakeFactory) NewMinAPIVersionRequirementCalls(stub func(string, semver.Version) requirements.Requirement) { 709 fake.newMinAPIVersionRequirementMutex.Lock() 710 defer fake.newMinAPIVersionRequirementMutex.Unlock() 711 fake.NewMinAPIVersionRequirementStub = stub 712 } 713 714 func (fake *FakeFactory) NewMinAPIVersionRequirementArgsForCall(i int) (string, semver.Version) { 715 fake.newMinAPIVersionRequirementMutex.RLock() 716 defer fake.newMinAPIVersionRequirementMutex.RUnlock() 717 argsForCall := fake.newMinAPIVersionRequirementArgsForCall[i] 718 return argsForCall.arg1, argsForCall.arg2 719 } 720 721 func (fake *FakeFactory) NewMinAPIVersionRequirementReturns(result1 requirements.Requirement) { 722 fake.newMinAPIVersionRequirementMutex.Lock() 723 defer fake.newMinAPIVersionRequirementMutex.Unlock() 724 fake.NewMinAPIVersionRequirementStub = nil 725 fake.newMinAPIVersionRequirementReturns = struct { 726 result1 requirements.Requirement 727 }{result1} 728 } 729 730 func (fake *FakeFactory) NewMinAPIVersionRequirementReturnsOnCall(i int, result1 requirements.Requirement) { 731 fake.newMinAPIVersionRequirementMutex.Lock() 732 defer fake.newMinAPIVersionRequirementMutex.Unlock() 733 fake.NewMinAPIVersionRequirementStub = nil 734 if fake.newMinAPIVersionRequirementReturnsOnCall == nil { 735 fake.newMinAPIVersionRequirementReturnsOnCall = make(map[int]struct { 736 result1 requirements.Requirement 737 }) 738 } 739 fake.newMinAPIVersionRequirementReturnsOnCall[i] = struct { 740 result1 requirements.Requirement 741 }{result1} 742 } 743 744 func (fake *FakeFactory) NewNumberArguments(arg1 []string, arg2 ...string) requirements.Requirement { 745 var arg1Copy []string 746 if arg1 != nil { 747 arg1Copy = make([]string, len(arg1)) 748 copy(arg1Copy, arg1) 749 } 750 fake.newNumberArgumentsMutex.Lock() 751 ret, specificReturn := fake.newNumberArgumentsReturnsOnCall[len(fake.newNumberArgumentsArgsForCall)] 752 fake.newNumberArgumentsArgsForCall = append(fake.newNumberArgumentsArgsForCall, struct { 753 arg1 []string 754 arg2 []string 755 }{arg1Copy, arg2}) 756 fake.recordInvocation("NewNumberArguments", []interface{}{arg1Copy, arg2}) 757 fake.newNumberArgumentsMutex.Unlock() 758 if fake.NewNumberArgumentsStub != nil { 759 return fake.NewNumberArgumentsStub(arg1, arg2...) 760 } 761 if specificReturn { 762 return ret.result1 763 } 764 fakeReturns := fake.newNumberArgumentsReturns 765 return fakeReturns.result1 766 } 767 768 func (fake *FakeFactory) NewNumberArgumentsCallCount() int { 769 fake.newNumberArgumentsMutex.RLock() 770 defer fake.newNumberArgumentsMutex.RUnlock() 771 return len(fake.newNumberArgumentsArgsForCall) 772 } 773 774 func (fake *FakeFactory) NewNumberArgumentsCalls(stub func([]string, ...string) requirements.Requirement) { 775 fake.newNumberArgumentsMutex.Lock() 776 defer fake.newNumberArgumentsMutex.Unlock() 777 fake.NewNumberArgumentsStub = stub 778 } 779 780 func (fake *FakeFactory) NewNumberArgumentsArgsForCall(i int) ([]string, []string) { 781 fake.newNumberArgumentsMutex.RLock() 782 defer fake.newNumberArgumentsMutex.RUnlock() 783 argsForCall := fake.newNumberArgumentsArgsForCall[i] 784 return argsForCall.arg1, argsForCall.arg2 785 } 786 787 func (fake *FakeFactory) NewNumberArgumentsReturns(result1 requirements.Requirement) { 788 fake.newNumberArgumentsMutex.Lock() 789 defer fake.newNumberArgumentsMutex.Unlock() 790 fake.NewNumberArgumentsStub = nil 791 fake.newNumberArgumentsReturns = struct { 792 result1 requirements.Requirement 793 }{result1} 794 } 795 796 func (fake *FakeFactory) NewNumberArgumentsReturnsOnCall(i int, result1 requirements.Requirement) { 797 fake.newNumberArgumentsMutex.Lock() 798 defer fake.newNumberArgumentsMutex.Unlock() 799 fake.NewNumberArgumentsStub = nil 800 if fake.newNumberArgumentsReturnsOnCall == nil { 801 fake.newNumberArgumentsReturnsOnCall = make(map[int]struct { 802 result1 requirements.Requirement 803 }) 804 } 805 fake.newNumberArgumentsReturnsOnCall[i] = struct { 806 result1 requirements.Requirement 807 }{result1} 808 } 809 810 func (fake *FakeFactory) NewOrganizationRequirement(arg1 string) requirements.OrganizationRequirement { 811 fake.newOrganizationRequirementMutex.Lock() 812 ret, specificReturn := fake.newOrganizationRequirementReturnsOnCall[len(fake.newOrganizationRequirementArgsForCall)] 813 fake.newOrganizationRequirementArgsForCall = append(fake.newOrganizationRequirementArgsForCall, struct { 814 arg1 string 815 }{arg1}) 816 fake.recordInvocation("NewOrganizationRequirement", []interface{}{arg1}) 817 fake.newOrganizationRequirementMutex.Unlock() 818 if fake.NewOrganizationRequirementStub != nil { 819 return fake.NewOrganizationRequirementStub(arg1) 820 } 821 if specificReturn { 822 return ret.result1 823 } 824 fakeReturns := fake.newOrganizationRequirementReturns 825 return fakeReturns.result1 826 } 827 828 func (fake *FakeFactory) NewOrganizationRequirementCallCount() int { 829 fake.newOrganizationRequirementMutex.RLock() 830 defer fake.newOrganizationRequirementMutex.RUnlock() 831 return len(fake.newOrganizationRequirementArgsForCall) 832 } 833 834 func (fake *FakeFactory) NewOrganizationRequirementCalls(stub func(string) requirements.OrganizationRequirement) { 835 fake.newOrganizationRequirementMutex.Lock() 836 defer fake.newOrganizationRequirementMutex.Unlock() 837 fake.NewOrganizationRequirementStub = stub 838 } 839 840 func (fake *FakeFactory) NewOrganizationRequirementArgsForCall(i int) string { 841 fake.newOrganizationRequirementMutex.RLock() 842 defer fake.newOrganizationRequirementMutex.RUnlock() 843 argsForCall := fake.newOrganizationRequirementArgsForCall[i] 844 return argsForCall.arg1 845 } 846 847 func (fake *FakeFactory) NewOrganizationRequirementReturns(result1 requirements.OrganizationRequirement) { 848 fake.newOrganizationRequirementMutex.Lock() 849 defer fake.newOrganizationRequirementMutex.Unlock() 850 fake.NewOrganizationRequirementStub = nil 851 fake.newOrganizationRequirementReturns = struct { 852 result1 requirements.OrganizationRequirement 853 }{result1} 854 } 855 856 func (fake *FakeFactory) NewOrganizationRequirementReturnsOnCall(i int, result1 requirements.OrganizationRequirement) { 857 fake.newOrganizationRequirementMutex.Lock() 858 defer fake.newOrganizationRequirementMutex.Unlock() 859 fake.NewOrganizationRequirementStub = nil 860 if fake.newOrganizationRequirementReturnsOnCall == nil { 861 fake.newOrganizationRequirementReturnsOnCall = make(map[int]struct { 862 result1 requirements.OrganizationRequirement 863 }) 864 } 865 fake.newOrganizationRequirementReturnsOnCall[i] = struct { 866 result1 requirements.OrganizationRequirement 867 }{result1} 868 } 869 870 func (fake *FakeFactory) NewServiceInstanceRequirement(arg1 string) requirements.ServiceInstanceRequirement { 871 fake.newServiceInstanceRequirementMutex.Lock() 872 ret, specificReturn := fake.newServiceInstanceRequirementReturnsOnCall[len(fake.newServiceInstanceRequirementArgsForCall)] 873 fake.newServiceInstanceRequirementArgsForCall = append(fake.newServiceInstanceRequirementArgsForCall, struct { 874 arg1 string 875 }{arg1}) 876 fake.recordInvocation("NewServiceInstanceRequirement", []interface{}{arg1}) 877 fake.newServiceInstanceRequirementMutex.Unlock() 878 if fake.NewServiceInstanceRequirementStub != nil { 879 return fake.NewServiceInstanceRequirementStub(arg1) 880 } 881 if specificReturn { 882 return ret.result1 883 } 884 fakeReturns := fake.newServiceInstanceRequirementReturns 885 return fakeReturns.result1 886 } 887 888 func (fake *FakeFactory) NewServiceInstanceRequirementCallCount() int { 889 fake.newServiceInstanceRequirementMutex.RLock() 890 defer fake.newServiceInstanceRequirementMutex.RUnlock() 891 return len(fake.newServiceInstanceRequirementArgsForCall) 892 } 893 894 func (fake *FakeFactory) NewServiceInstanceRequirementCalls(stub func(string) requirements.ServiceInstanceRequirement) { 895 fake.newServiceInstanceRequirementMutex.Lock() 896 defer fake.newServiceInstanceRequirementMutex.Unlock() 897 fake.NewServiceInstanceRequirementStub = stub 898 } 899 900 func (fake *FakeFactory) NewServiceInstanceRequirementArgsForCall(i int) string { 901 fake.newServiceInstanceRequirementMutex.RLock() 902 defer fake.newServiceInstanceRequirementMutex.RUnlock() 903 argsForCall := fake.newServiceInstanceRequirementArgsForCall[i] 904 return argsForCall.arg1 905 } 906 907 func (fake *FakeFactory) NewServiceInstanceRequirementReturns(result1 requirements.ServiceInstanceRequirement) { 908 fake.newServiceInstanceRequirementMutex.Lock() 909 defer fake.newServiceInstanceRequirementMutex.Unlock() 910 fake.NewServiceInstanceRequirementStub = nil 911 fake.newServiceInstanceRequirementReturns = struct { 912 result1 requirements.ServiceInstanceRequirement 913 }{result1} 914 } 915 916 func (fake *FakeFactory) NewServiceInstanceRequirementReturnsOnCall(i int, result1 requirements.ServiceInstanceRequirement) { 917 fake.newServiceInstanceRequirementMutex.Lock() 918 defer fake.newServiceInstanceRequirementMutex.Unlock() 919 fake.NewServiceInstanceRequirementStub = nil 920 if fake.newServiceInstanceRequirementReturnsOnCall == nil { 921 fake.newServiceInstanceRequirementReturnsOnCall = make(map[int]struct { 922 result1 requirements.ServiceInstanceRequirement 923 }) 924 } 925 fake.newServiceInstanceRequirementReturnsOnCall[i] = struct { 926 result1 requirements.ServiceInstanceRequirement 927 }{result1} 928 } 929 930 func (fake *FakeFactory) NewSpaceRequirement(arg1 string) requirements.SpaceRequirement { 931 fake.newSpaceRequirementMutex.Lock() 932 ret, specificReturn := fake.newSpaceRequirementReturnsOnCall[len(fake.newSpaceRequirementArgsForCall)] 933 fake.newSpaceRequirementArgsForCall = append(fake.newSpaceRequirementArgsForCall, struct { 934 arg1 string 935 }{arg1}) 936 fake.recordInvocation("NewSpaceRequirement", []interface{}{arg1}) 937 fake.newSpaceRequirementMutex.Unlock() 938 if fake.NewSpaceRequirementStub != nil { 939 return fake.NewSpaceRequirementStub(arg1) 940 } 941 if specificReturn { 942 return ret.result1 943 } 944 fakeReturns := fake.newSpaceRequirementReturns 945 return fakeReturns.result1 946 } 947 948 func (fake *FakeFactory) NewSpaceRequirementCallCount() int { 949 fake.newSpaceRequirementMutex.RLock() 950 defer fake.newSpaceRequirementMutex.RUnlock() 951 return len(fake.newSpaceRequirementArgsForCall) 952 } 953 954 func (fake *FakeFactory) NewSpaceRequirementCalls(stub func(string) requirements.SpaceRequirement) { 955 fake.newSpaceRequirementMutex.Lock() 956 defer fake.newSpaceRequirementMutex.Unlock() 957 fake.NewSpaceRequirementStub = stub 958 } 959 960 func (fake *FakeFactory) NewSpaceRequirementArgsForCall(i int) string { 961 fake.newSpaceRequirementMutex.RLock() 962 defer fake.newSpaceRequirementMutex.RUnlock() 963 argsForCall := fake.newSpaceRequirementArgsForCall[i] 964 return argsForCall.arg1 965 } 966 967 func (fake *FakeFactory) NewSpaceRequirementReturns(result1 requirements.SpaceRequirement) { 968 fake.newSpaceRequirementMutex.Lock() 969 defer fake.newSpaceRequirementMutex.Unlock() 970 fake.NewSpaceRequirementStub = nil 971 fake.newSpaceRequirementReturns = struct { 972 result1 requirements.SpaceRequirement 973 }{result1} 974 } 975 976 func (fake *FakeFactory) NewSpaceRequirementReturnsOnCall(i int, result1 requirements.SpaceRequirement) { 977 fake.newSpaceRequirementMutex.Lock() 978 defer fake.newSpaceRequirementMutex.Unlock() 979 fake.NewSpaceRequirementStub = nil 980 if fake.newSpaceRequirementReturnsOnCall == nil { 981 fake.newSpaceRequirementReturnsOnCall = make(map[int]struct { 982 result1 requirements.SpaceRequirement 983 }) 984 } 985 fake.newSpaceRequirementReturnsOnCall[i] = struct { 986 result1 requirements.SpaceRequirement 987 }{result1} 988 } 989 990 func (fake *FakeFactory) NewTargetedOrgRequirement() requirements.TargetedOrgRequirement { 991 fake.newTargetedOrgRequirementMutex.Lock() 992 ret, specificReturn := fake.newTargetedOrgRequirementReturnsOnCall[len(fake.newTargetedOrgRequirementArgsForCall)] 993 fake.newTargetedOrgRequirementArgsForCall = append(fake.newTargetedOrgRequirementArgsForCall, struct { 994 }{}) 995 fake.recordInvocation("NewTargetedOrgRequirement", []interface{}{}) 996 fake.newTargetedOrgRequirementMutex.Unlock() 997 if fake.NewTargetedOrgRequirementStub != nil { 998 return fake.NewTargetedOrgRequirementStub() 999 } 1000 if specificReturn { 1001 return ret.result1 1002 } 1003 fakeReturns := fake.newTargetedOrgRequirementReturns 1004 return fakeReturns.result1 1005 } 1006 1007 func (fake *FakeFactory) NewTargetedOrgRequirementCallCount() int { 1008 fake.newTargetedOrgRequirementMutex.RLock() 1009 defer fake.newTargetedOrgRequirementMutex.RUnlock() 1010 return len(fake.newTargetedOrgRequirementArgsForCall) 1011 } 1012 1013 func (fake *FakeFactory) NewTargetedOrgRequirementCalls(stub func() requirements.TargetedOrgRequirement) { 1014 fake.newTargetedOrgRequirementMutex.Lock() 1015 defer fake.newTargetedOrgRequirementMutex.Unlock() 1016 fake.NewTargetedOrgRequirementStub = stub 1017 } 1018 1019 func (fake *FakeFactory) NewTargetedOrgRequirementReturns(result1 requirements.TargetedOrgRequirement) { 1020 fake.newTargetedOrgRequirementMutex.Lock() 1021 defer fake.newTargetedOrgRequirementMutex.Unlock() 1022 fake.NewTargetedOrgRequirementStub = nil 1023 fake.newTargetedOrgRequirementReturns = struct { 1024 result1 requirements.TargetedOrgRequirement 1025 }{result1} 1026 } 1027 1028 func (fake *FakeFactory) NewTargetedOrgRequirementReturnsOnCall(i int, result1 requirements.TargetedOrgRequirement) { 1029 fake.newTargetedOrgRequirementMutex.Lock() 1030 defer fake.newTargetedOrgRequirementMutex.Unlock() 1031 fake.NewTargetedOrgRequirementStub = nil 1032 if fake.newTargetedOrgRequirementReturnsOnCall == nil { 1033 fake.newTargetedOrgRequirementReturnsOnCall = make(map[int]struct { 1034 result1 requirements.TargetedOrgRequirement 1035 }) 1036 } 1037 fake.newTargetedOrgRequirementReturnsOnCall[i] = struct { 1038 result1 requirements.TargetedOrgRequirement 1039 }{result1} 1040 } 1041 1042 func (fake *FakeFactory) NewTargetedSpaceRequirement() requirements.Requirement { 1043 fake.newTargetedSpaceRequirementMutex.Lock() 1044 ret, specificReturn := fake.newTargetedSpaceRequirementReturnsOnCall[len(fake.newTargetedSpaceRequirementArgsForCall)] 1045 fake.newTargetedSpaceRequirementArgsForCall = append(fake.newTargetedSpaceRequirementArgsForCall, struct { 1046 }{}) 1047 fake.recordInvocation("NewTargetedSpaceRequirement", []interface{}{}) 1048 fake.newTargetedSpaceRequirementMutex.Unlock() 1049 if fake.NewTargetedSpaceRequirementStub != nil { 1050 return fake.NewTargetedSpaceRequirementStub() 1051 } 1052 if specificReturn { 1053 return ret.result1 1054 } 1055 fakeReturns := fake.newTargetedSpaceRequirementReturns 1056 return fakeReturns.result1 1057 } 1058 1059 func (fake *FakeFactory) NewTargetedSpaceRequirementCallCount() int { 1060 fake.newTargetedSpaceRequirementMutex.RLock() 1061 defer fake.newTargetedSpaceRequirementMutex.RUnlock() 1062 return len(fake.newTargetedSpaceRequirementArgsForCall) 1063 } 1064 1065 func (fake *FakeFactory) NewTargetedSpaceRequirementCalls(stub func() requirements.Requirement) { 1066 fake.newTargetedSpaceRequirementMutex.Lock() 1067 defer fake.newTargetedSpaceRequirementMutex.Unlock() 1068 fake.NewTargetedSpaceRequirementStub = stub 1069 } 1070 1071 func (fake *FakeFactory) NewTargetedSpaceRequirementReturns(result1 requirements.Requirement) { 1072 fake.newTargetedSpaceRequirementMutex.Lock() 1073 defer fake.newTargetedSpaceRequirementMutex.Unlock() 1074 fake.NewTargetedSpaceRequirementStub = nil 1075 fake.newTargetedSpaceRequirementReturns = struct { 1076 result1 requirements.Requirement 1077 }{result1} 1078 } 1079 1080 func (fake *FakeFactory) NewTargetedSpaceRequirementReturnsOnCall(i int, result1 requirements.Requirement) { 1081 fake.newTargetedSpaceRequirementMutex.Lock() 1082 defer fake.newTargetedSpaceRequirementMutex.Unlock() 1083 fake.NewTargetedSpaceRequirementStub = nil 1084 if fake.newTargetedSpaceRequirementReturnsOnCall == nil { 1085 fake.newTargetedSpaceRequirementReturnsOnCall = make(map[int]struct { 1086 result1 requirements.Requirement 1087 }) 1088 } 1089 fake.newTargetedSpaceRequirementReturnsOnCall[i] = struct { 1090 result1 requirements.Requirement 1091 }{result1} 1092 } 1093 1094 func (fake *FakeFactory) NewUnsupportedLegacyFlagRequirement(arg1 ...string) requirements.Requirement { 1095 fake.newUnsupportedLegacyFlagRequirementMutex.Lock() 1096 ret, specificReturn := fake.newUnsupportedLegacyFlagRequirementReturnsOnCall[len(fake.newUnsupportedLegacyFlagRequirementArgsForCall)] 1097 fake.newUnsupportedLegacyFlagRequirementArgsForCall = append(fake.newUnsupportedLegacyFlagRequirementArgsForCall, struct { 1098 arg1 []string 1099 }{arg1}) 1100 fake.recordInvocation("NewUnsupportedLegacyFlagRequirement", []interface{}{arg1}) 1101 fake.newUnsupportedLegacyFlagRequirementMutex.Unlock() 1102 if fake.NewUnsupportedLegacyFlagRequirementStub != nil { 1103 return fake.NewUnsupportedLegacyFlagRequirementStub(arg1...) 1104 } 1105 if specificReturn { 1106 return ret.result1 1107 } 1108 fakeReturns := fake.newUnsupportedLegacyFlagRequirementReturns 1109 return fakeReturns.result1 1110 } 1111 1112 func (fake *FakeFactory) NewUnsupportedLegacyFlagRequirementCallCount() int { 1113 fake.newUnsupportedLegacyFlagRequirementMutex.RLock() 1114 defer fake.newUnsupportedLegacyFlagRequirementMutex.RUnlock() 1115 return len(fake.newUnsupportedLegacyFlagRequirementArgsForCall) 1116 } 1117 1118 func (fake *FakeFactory) NewUnsupportedLegacyFlagRequirementCalls(stub func(...string) requirements.Requirement) { 1119 fake.newUnsupportedLegacyFlagRequirementMutex.Lock() 1120 defer fake.newUnsupportedLegacyFlagRequirementMutex.Unlock() 1121 fake.NewUnsupportedLegacyFlagRequirementStub = stub 1122 } 1123 1124 func (fake *FakeFactory) NewUnsupportedLegacyFlagRequirementArgsForCall(i int) []string { 1125 fake.newUnsupportedLegacyFlagRequirementMutex.RLock() 1126 defer fake.newUnsupportedLegacyFlagRequirementMutex.RUnlock() 1127 argsForCall := fake.newUnsupportedLegacyFlagRequirementArgsForCall[i] 1128 return argsForCall.arg1 1129 } 1130 1131 func (fake *FakeFactory) NewUnsupportedLegacyFlagRequirementReturns(result1 requirements.Requirement) { 1132 fake.newUnsupportedLegacyFlagRequirementMutex.Lock() 1133 defer fake.newUnsupportedLegacyFlagRequirementMutex.Unlock() 1134 fake.NewUnsupportedLegacyFlagRequirementStub = nil 1135 fake.newUnsupportedLegacyFlagRequirementReturns = struct { 1136 result1 requirements.Requirement 1137 }{result1} 1138 } 1139 1140 func (fake *FakeFactory) NewUnsupportedLegacyFlagRequirementReturnsOnCall(i int, result1 requirements.Requirement) { 1141 fake.newUnsupportedLegacyFlagRequirementMutex.Lock() 1142 defer fake.newUnsupportedLegacyFlagRequirementMutex.Unlock() 1143 fake.NewUnsupportedLegacyFlagRequirementStub = nil 1144 if fake.newUnsupportedLegacyFlagRequirementReturnsOnCall == nil { 1145 fake.newUnsupportedLegacyFlagRequirementReturnsOnCall = make(map[int]struct { 1146 result1 requirements.Requirement 1147 }) 1148 } 1149 fake.newUnsupportedLegacyFlagRequirementReturnsOnCall[i] = struct { 1150 result1 requirements.Requirement 1151 }{result1} 1152 } 1153 1154 func (fake *FakeFactory) NewUsageRequirement(arg1 requirements.Usable, arg2 string, arg3 func() bool) requirements.Requirement { 1155 fake.newUsageRequirementMutex.Lock() 1156 ret, specificReturn := fake.newUsageRequirementReturnsOnCall[len(fake.newUsageRequirementArgsForCall)] 1157 fake.newUsageRequirementArgsForCall = append(fake.newUsageRequirementArgsForCall, struct { 1158 arg1 requirements.Usable 1159 arg2 string 1160 arg3 func() bool 1161 }{arg1, arg2, arg3}) 1162 fake.recordInvocation("NewUsageRequirement", []interface{}{arg1, arg2, arg3}) 1163 fake.newUsageRequirementMutex.Unlock() 1164 if fake.NewUsageRequirementStub != nil { 1165 return fake.NewUsageRequirementStub(arg1, arg2, arg3) 1166 } 1167 if specificReturn { 1168 return ret.result1 1169 } 1170 fakeReturns := fake.newUsageRequirementReturns 1171 return fakeReturns.result1 1172 } 1173 1174 func (fake *FakeFactory) NewUsageRequirementCallCount() int { 1175 fake.newUsageRequirementMutex.RLock() 1176 defer fake.newUsageRequirementMutex.RUnlock() 1177 return len(fake.newUsageRequirementArgsForCall) 1178 } 1179 1180 func (fake *FakeFactory) NewUsageRequirementCalls(stub func(requirements.Usable, string, func() bool) requirements.Requirement) { 1181 fake.newUsageRequirementMutex.Lock() 1182 defer fake.newUsageRequirementMutex.Unlock() 1183 fake.NewUsageRequirementStub = stub 1184 } 1185 1186 func (fake *FakeFactory) NewUsageRequirementArgsForCall(i int) (requirements.Usable, string, func() bool) { 1187 fake.newUsageRequirementMutex.RLock() 1188 defer fake.newUsageRequirementMutex.RUnlock() 1189 argsForCall := fake.newUsageRequirementArgsForCall[i] 1190 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1191 } 1192 1193 func (fake *FakeFactory) NewUsageRequirementReturns(result1 requirements.Requirement) { 1194 fake.newUsageRequirementMutex.Lock() 1195 defer fake.newUsageRequirementMutex.Unlock() 1196 fake.NewUsageRequirementStub = nil 1197 fake.newUsageRequirementReturns = struct { 1198 result1 requirements.Requirement 1199 }{result1} 1200 } 1201 1202 func (fake *FakeFactory) NewUsageRequirementReturnsOnCall(i int, result1 requirements.Requirement) { 1203 fake.newUsageRequirementMutex.Lock() 1204 defer fake.newUsageRequirementMutex.Unlock() 1205 fake.NewUsageRequirementStub = nil 1206 if fake.newUsageRequirementReturnsOnCall == nil { 1207 fake.newUsageRequirementReturnsOnCall = make(map[int]struct { 1208 result1 requirements.Requirement 1209 }) 1210 } 1211 fake.newUsageRequirementReturnsOnCall[i] = struct { 1212 result1 requirements.Requirement 1213 }{result1} 1214 } 1215 1216 func (fake *FakeFactory) NewUserRequirement(arg1 string, arg2 bool) requirements.UserRequirement { 1217 fake.newUserRequirementMutex.Lock() 1218 ret, specificReturn := fake.newUserRequirementReturnsOnCall[len(fake.newUserRequirementArgsForCall)] 1219 fake.newUserRequirementArgsForCall = append(fake.newUserRequirementArgsForCall, struct { 1220 arg1 string 1221 arg2 bool 1222 }{arg1, arg2}) 1223 fake.recordInvocation("NewUserRequirement", []interface{}{arg1, arg2}) 1224 fake.newUserRequirementMutex.Unlock() 1225 if fake.NewUserRequirementStub != nil { 1226 return fake.NewUserRequirementStub(arg1, arg2) 1227 } 1228 if specificReturn { 1229 return ret.result1 1230 } 1231 fakeReturns := fake.newUserRequirementReturns 1232 return fakeReturns.result1 1233 } 1234 1235 func (fake *FakeFactory) NewUserRequirementCallCount() int { 1236 fake.newUserRequirementMutex.RLock() 1237 defer fake.newUserRequirementMutex.RUnlock() 1238 return len(fake.newUserRequirementArgsForCall) 1239 } 1240 1241 func (fake *FakeFactory) NewUserRequirementCalls(stub func(string, bool) requirements.UserRequirement) { 1242 fake.newUserRequirementMutex.Lock() 1243 defer fake.newUserRequirementMutex.Unlock() 1244 fake.NewUserRequirementStub = stub 1245 } 1246 1247 func (fake *FakeFactory) NewUserRequirementArgsForCall(i int) (string, bool) { 1248 fake.newUserRequirementMutex.RLock() 1249 defer fake.newUserRequirementMutex.RUnlock() 1250 argsForCall := fake.newUserRequirementArgsForCall[i] 1251 return argsForCall.arg1, argsForCall.arg2 1252 } 1253 1254 func (fake *FakeFactory) NewUserRequirementReturns(result1 requirements.UserRequirement) { 1255 fake.newUserRequirementMutex.Lock() 1256 defer fake.newUserRequirementMutex.Unlock() 1257 fake.NewUserRequirementStub = nil 1258 fake.newUserRequirementReturns = struct { 1259 result1 requirements.UserRequirement 1260 }{result1} 1261 } 1262 1263 func (fake *FakeFactory) NewUserRequirementReturnsOnCall(i int, result1 requirements.UserRequirement) { 1264 fake.newUserRequirementMutex.Lock() 1265 defer fake.newUserRequirementMutex.Unlock() 1266 fake.NewUserRequirementStub = nil 1267 if fake.newUserRequirementReturnsOnCall == nil { 1268 fake.newUserRequirementReturnsOnCall = make(map[int]struct { 1269 result1 requirements.UserRequirement 1270 }) 1271 } 1272 fake.newUserRequirementReturnsOnCall[i] = struct { 1273 result1 requirements.UserRequirement 1274 }{result1} 1275 } 1276 1277 func (fake *FakeFactory) Invocations() map[string][][]interface{} { 1278 fake.invocationsMutex.RLock() 1279 defer fake.invocationsMutex.RUnlock() 1280 fake.newAPIEndpointRequirementMutex.RLock() 1281 defer fake.newAPIEndpointRequirementMutex.RUnlock() 1282 fake.newApplicationRequirementMutex.RLock() 1283 defer fake.newApplicationRequirementMutex.RUnlock() 1284 fake.newBuildpackRequirementMutex.RLock() 1285 defer fake.newBuildpackRequirementMutex.RUnlock() 1286 fake.newClientRequirementMutex.RLock() 1287 defer fake.newClientRequirementMutex.RUnlock() 1288 fake.newDEAApplicationRequirementMutex.RLock() 1289 defer fake.newDEAApplicationRequirementMutex.RUnlock() 1290 fake.newDomainRequirementMutex.RLock() 1291 defer fake.newDomainRequirementMutex.RUnlock() 1292 fake.newLoginRequirementMutex.RLock() 1293 defer fake.newLoginRequirementMutex.RUnlock() 1294 fake.newMaxAPIVersionRequirementMutex.RLock() 1295 defer fake.newMaxAPIVersionRequirementMutex.RUnlock() 1296 fake.newMinAPIVersionRequirementMutex.RLock() 1297 defer fake.newMinAPIVersionRequirementMutex.RUnlock() 1298 fake.newNumberArgumentsMutex.RLock() 1299 defer fake.newNumberArgumentsMutex.RUnlock() 1300 fake.newOrganizationRequirementMutex.RLock() 1301 defer fake.newOrganizationRequirementMutex.RUnlock() 1302 fake.newServiceInstanceRequirementMutex.RLock() 1303 defer fake.newServiceInstanceRequirementMutex.RUnlock() 1304 fake.newSpaceRequirementMutex.RLock() 1305 defer fake.newSpaceRequirementMutex.RUnlock() 1306 fake.newTargetedOrgRequirementMutex.RLock() 1307 defer fake.newTargetedOrgRequirementMutex.RUnlock() 1308 fake.newTargetedSpaceRequirementMutex.RLock() 1309 defer fake.newTargetedSpaceRequirementMutex.RUnlock() 1310 fake.newUnsupportedLegacyFlagRequirementMutex.RLock() 1311 defer fake.newUnsupportedLegacyFlagRequirementMutex.RUnlock() 1312 fake.newUsageRequirementMutex.RLock() 1313 defer fake.newUsageRequirementMutex.RUnlock() 1314 fake.newUserRequirementMutex.RLock() 1315 defer fake.newUserRequirementMutex.RUnlock() 1316 copiedInvocations := map[string][][]interface{}{} 1317 for key, value := range fake.invocations { 1318 copiedInvocations[key] = value 1319 } 1320 return copiedInvocations 1321 } 1322 1323 func (fake *FakeFactory) recordInvocation(key string, args []interface{}) { 1324 fake.invocationsMutex.Lock() 1325 defer fake.invocationsMutex.Unlock() 1326 if fake.invocations == nil { 1327 fake.invocations = map[string][][]interface{}{} 1328 } 1329 if fake.invocations[key] == nil { 1330 fake.invocations[key] = [][]interface{}{} 1331 } 1332 fake.invocations[key] = append(fake.invocations[key], args) 1333 } 1334 1335 var _ requirements.Factory = new(FakeFactory)