github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/api/apifakes/fake_user_repository.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package apifakes 3 4 import ( 5 "sync" 6 7 "code.cloudfoundry.org/cli/cf/api" 8 "code.cloudfoundry.org/cli/cf/models" 9 ) 10 11 type FakeUserRepository struct { 12 CreateStub func(string, string) error 13 createMutex sync.RWMutex 14 createArgsForCall []struct { 15 arg1 string 16 arg2 string 17 } 18 createReturns struct { 19 result1 error 20 } 21 createReturnsOnCall map[int]struct { 22 result1 error 23 } 24 DeleteStub func(string) error 25 deleteMutex sync.RWMutex 26 deleteArgsForCall []struct { 27 arg1 string 28 } 29 deleteReturns struct { 30 result1 error 31 } 32 deleteReturnsOnCall map[int]struct { 33 result1 error 34 } 35 FindAllByUsernameStub func(string) ([]models.UserFields, error) 36 findAllByUsernameMutex sync.RWMutex 37 findAllByUsernameArgsForCall []struct { 38 arg1 string 39 } 40 findAllByUsernameReturns struct { 41 result1 []models.UserFields 42 result2 error 43 } 44 findAllByUsernameReturnsOnCall map[int]struct { 45 result1 []models.UserFields 46 result2 error 47 } 48 FindByUsernameStub func(string) (models.UserFields, error) 49 findByUsernameMutex sync.RWMutex 50 findByUsernameArgsForCall []struct { 51 arg1 string 52 } 53 findByUsernameReturns struct { 54 result1 models.UserFields 55 result2 error 56 } 57 findByUsernameReturnsOnCall map[int]struct { 58 result1 models.UserFields 59 result2 error 60 } 61 ListUsersInOrgForRoleWithNoUAAStub func(string, models.Role) ([]models.UserFields, error) 62 listUsersInOrgForRoleWithNoUAAMutex sync.RWMutex 63 listUsersInOrgForRoleWithNoUAAArgsForCall []struct { 64 arg1 string 65 arg2 models.Role 66 } 67 listUsersInOrgForRoleWithNoUAAReturns struct { 68 result1 []models.UserFields 69 result2 error 70 } 71 listUsersInOrgForRoleWithNoUAAReturnsOnCall map[int]struct { 72 result1 []models.UserFields 73 result2 error 74 } 75 ListUsersInSpaceForRoleWithNoUAAStub func(string, models.Role) ([]models.UserFields, error) 76 listUsersInSpaceForRoleWithNoUAAMutex sync.RWMutex 77 listUsersInSpaceForRoleWithNoUAAArgsForCall []struct { 78 arg1 string 79 arg2 models.Role 80 } 81 listUsersInSpaceForRoleWithNoUAAReturns struct { 82 result1 []models.UserFields 83 result2 error 84 } 85 listUsersInSpaceForRoleWithNoUAAReturnsOnCall map[int]struct { 86 result1 []models.UserFields 87 result2 error 88 } 89 SetOrgRoleByGUIDStub func(string, string, models.Role) error 90 setOrgRoleByGUIDMutex sync.RWMutex 91 setOrgRoleByGUIDArgsForCall []struct { 92 arg1 string 93 arg2 string 94 arg3 models.Role 95 } 96 setOrgRoleByGUIDReturns struct { 97 result1 error 98 } 99 setOrgRoleByGUIDReturnsOnCall map[int]struct { 100 result1 error 101 } 102 SetOrgRoleByUsernameStub func(string, string, models.Role) error 103 setOrgRoleByUsernameMutex sync.RWMutex 104 setOrgRoleByUsernameArgsForCall []struct { 105 arg1 string 106 arg2 string 107 arg3 models.Role 108 } 109 setOrgRoleByUsernameReturns struct { 110 result1 error 111 } 112 setOrgRoleByUsernameReturnsOnCall map[int]struct { 113 result1 error 114 } 115 SetSpaceRoleByGUIDStub func(string, string, string, models.Role) error 116 setSpaceRoleByGUIDMutex sync.RWMutex 117 setSpaceRoleByGUIDArgsForCall []struct { 118 arg1 string 119 arg2 string 120 arg3 string 121 arg4 models.Role 122 } 123 setSpaceRoleByGUIDReturns struct { 124 result1 error 125 } 126 setSpaceRoleByGUIDReturnsOnCall map[int]struct { 127 result1 error 128 } 129 SetSpaceRoleByUsernameStub func(string, string, string, models.Role) error 130 setSpaceRoleByUsernameMutex sync.RWMutex 131 setSpaceRoleByUsernameArgsForCall []struct { 132 arg1 string 133 arg2 string 134 arg3 string 135 arg4 models.Role 136 } 137 setSpaceRoleByUsernameReturns struct { 138 result1 error 139 } 140 setSpaceRoleByUsernameReturnsOnCall map[int]struct { 141 result1 error 142 } 143 UnsetOrgRoleByGUIDStub func(string, string, models.Role) error 144 unsetOrgRoleByGUIDMutex sync.RWMutex 145 unsetOrgRoleByGUIDArgsForCall []struct { 146 arg1 string 147 arg2 string 148 arg3 models.Role 149 } 150 unsetOrgRoleByGUIDReturns struct { 151 result1 error 152 } 153 unsetOrgRoleByGUIDReturnsOnCall map[int]struct { 154 result1 error 155 } 156 UnsetOrgRoleByUsernameStub func(string, string, models.Role) error 157 unsetOrgRoleByUsernameMutex sync.RWMutex 158 unsetOrgRoleByUsernameArgsForCall []struct { 159 arg1 string 160 arg2 string 161 arg3 models.Role 162 } 163 unsetOrgRoleByUsernameReturns struct { 164 result1 error 165 } 166 unsetOrgRoleByUsernameReturnsOnCall map[int]struct { 167 result1 error 168 } 169 UnsetSpaceRoleByGUIDStub func(string, string, models.Role) error 170 unsetSpaceRoleByGUIDMutex sync.RWMutex 171 unsetSpaceRoleByGUIDArgsForCall []struct { 172 arg1 string 173 arg2 string 174 arg3 models.Role 175 } 176 unsetSpaceRoleByGUIDReturns struct { 177 result1 error 178 } 179 unsetSpaceRoleByGUIDReturnsOnCall map[int]struct { 180 result1 error 181 } 182 UnsetSpaceRoleByUsernameStub func(string, string, models.Role) error 183 unsetSpaceRoleByUsernameMutex sync.RWMutex 184 unsetSpaceRoleByUsernameArgsForCall []struct { 185 arg1 string 186 arg2 string 187 arg3 models.Role 188 } 189 unsetSpaceRoleByUsernameReturns struct { 190 result1 error 191 } 192 unsetSpaceRoleByUsernameReturnsOnCall map[int]struct { 193 result1 error 194 } 195 invocations map[string][][]interface{} 196 invocationsMutex sync.RWMutex 197 } 198 199 func (fake *FakeUserRepository) Create(arg1 string, arg2 string) error { 200 fake.createMutex.Lock() 201 ret, specificReturn := fake.createReturnsOnCall[len(fake.createArgsForCall)] 202 fake.createArgsForCall = append(fake.createArgsForCall, struct { 203 arg1 string 204 arg2 string 205 }{arg1, arg2}) 206 fake.recordInvocation("Create", []interface{}{arg1, arg2}) 207 fake.createMutex.Unlock() 208 if fake.CreateStub != nil { 209 return fake.CreateStub(arg1, arg2) 210 } 211 if specificReturn { 212 return ret.result1 213 } 214 fakeReturns := fake.createReturns 215 return fakeReturns.result1 216 } 217 218 func (fake *FakeUserRepository) CreateCallCount() int { 219 fake.createMutex.RLock() 220 defer fake.createMutex.RUnlock() 221 return len(fake.createArgsForCall) 222 } 223 224 func (fake *FakeUserRepository) CreateCalls(stub func(string, string) error) { 225 fake.createMutex.Lock() 226 defer fake.createMutex.Unlock() 227 fake.CreateStub = stub 228 } 229 230 func (fake *FakeUserRepository) CreateArgsForCall(i int) (string, string) { 231 fake.createMutex.RLock() 232 defer fake.createMutex.RUnlock() 233 argsForCall := fake.createArgsForCall[i] 234 return argsForCall.arg1, argsForCall.arg2 235 } 236 237 func (fake *FakeUserRepository) CreateReturns(result1 error) { 238 fake.createMutex.Lock() 239 defer fake.createMutex.Unlock() 240 fake.CreateStub = nil 241 fake.createReturns = struct { 242 result1 error 243 }{result1} 244 } 245 246 func (fake *FakeUserRepository) CreateReturnsOnCall(i int, result1 error) { 247 fake.createMutex.Lock() 248 defer fake.createMutex.Unlock() 249 fake.CreateStub = nil 250 if fake.createReturnsOnCall == nil { 251 fake.createReturnsOnCall = make(map[int]struct { 252 result1 error 253 }) 254 } 255 fake.createReturnsOnCall[i] = struct { 256 result1 error 257 }{result1} 258 } 259 260 func (fake *FakeUserRepository) Delete(arg1 string) error { 261 fake.deleteMutex.Lock() 262 ret, specificReturn := fake.deleteReturnsOnCall[len(fake.deleteArgsForCall)] 263 fake.deleteArgsForCall = append(fake.deleteArgsForCall, struct { 264 arg1 string 265 }{arg1}) 266 fake.recordInvocation("Delete", []interface{}{arg1}) 267 fake.deleteMutex.Unlock() 268 if fake.DeleteStub != nil { 269 return fake.DeleteStub(arg1) 270 } 271 if specificReturn { 272 return ret.result1 273 } 274 fakeReturns := fake.deleteReturns 275 return fakeReturns.result1 276 } 277 278 func (fake *FakeUserRepository) DeleteCallCount() int { 279 fake.deleteMutex.RLock() 280 defer fake.deleteMutex.RUnlock() 281 return len(fake.deleteArgsForCall) 282 } 283 284 func (fake *FakeUserRepository) DeleteCalls(stub func(string) error) { 285 fake.deleteMutex.Lock() 286 defer fake.deleteMutex.Unlock() 287 fake.DeleteStub = stub 288 } 289 290 func (fake *FakeUserRepository) DeleteArgsForCall(i int) string { 291 fake.deleteMutex.RLock() 292 defer fake.deleteMutex.RUnlock() 293 argsForCall := fake.deleteArgsForCall[i] 294 return argsForCall.arg1 295 } 296 297 func (fake *FakeUserRepository) DeleteReturns(result1 error) { 298 fake.deleteMutex.Lock() 299 defer fake.deleteMutex.Unlock() 300 fake.DeleteStub = nil 301 fake.deleteReturns = struct { 302 result1 error 303 }{result1} 304 } 305 306 func (fake *FakeUserRepository) DeleteReturnsOnCall(i int, result1 error) { 307 fake.deleteMutex.Lock() 308 defer fake.deleteMutex.Unlock() 309 fake.DeleteStub = nil 310 if fake.deleteReturnsOnCall == nil { 311 fake.deleteReturnsOnCall = make(map[int]struct { 312 result1 error 313 }) 314 } 315 fake.deleteReturnsOnCall[i] = struct { 316 result1 error 317 }{result1} 318 } 319 320 func (fake *FakeUserRepository) FindAllByUsername(arg1 string) ([]models.UserFields, error) { 321 fake.findAllByUsernameMutex.Lock() 322 ret, specificReturn := fake.findAllByUsernameReturnsOnCall[len(fake.findAllByUsernameArgsForCall)] 323 fake.findAllByUsernameArgsForCall = append(fake.findAllByUsernameArgsForCall, struct { 324 arg1 string 325 }{arg1}) 326 fake.recordInvocation("FindAllByUsername", []interface{}{arg1}) 327 fake.findAllByUsernameMutex.Unlock() 328 if fake.FindAllByUsernameStub != nil { 329 return fake.FindAllByUsernameStub(arg1) 330 } 331 if specificReturn { 332 return ret.result1, ret.result2 333 } 334 fakeReturns := fake.findAllByUsernameReturns 335 return fakeReturns.result1, fakeReturns.result2 336 } 337 338 func (fake *FakeUserRepository) FindAllByUsernameCallCount() int { 339 fake.findAllByUsernameMutex.RLock() 340 defer fake.findAllByUsernameMutex.RUnlock() 341 return len(fake.findAllByUsernameArgsForCall) 342 } 343 344 func (fake *FakeUserRepository) FindAllByUsernameCalls(stub func(string) ([]models.UserFields, error)) { 345 fake.findAllByUsernameMutex.Lock() 346 defer fake.findAllByUsernameMutex.Unlock() 347 fake.FindAllByUsernameStub = stub 348 } 349 350 func (fake *FakeUserRepository) FindAllByUsernameArgsForCall(i int) string { 351 fake.findAllByUsernameMutex.RLock() 352 defer fake.findAllByUsernameMutex.RUnlock() 353 argsForCall := fake.findAllByUsernameArgsForCall[i] 354 return argsForCall.arg1 355 } 356 357 func (fake *FakeUserRepository) FindAllByUsernameReturns(result1 []models.UserFields, result2 error) { 358 fake.findAllByUsernameMutex.Lock() 359 defer fake.findAllByUsernameMutex.Unlock() 360 fake.FindAllByUsernameStub = nil 361 fake.findAllByUsernameReturns = struct { 362 result1 []models.UserFields 363 result2 error 364 }{result1, result2} 365 } 366 367 func (fake *FakeUserRepository) FindAllByUsernameReturnsOnCall(i int, result1 []models.UserFields, result2 error) { 368 fake.findAllByUsernameMutex.Lock() 369 defer fake.findAllByUsernameMutex.Unlock() 370 fake.FindAllByUsernameStub = nil 371 if fake.findAllByUsernameReturnsOnCall == nil { 372 fake.findAllByUsernameReturnsOnCall = make(map[int]struct { 373 result1 []models.UserFields 374 result2 error 375 }) 376 } 377 fake.findAllByUsernameReturnsOnCall[i] = struct { 378 result1 []models.UserFields 379 result2 error 380 }{result1, result2} 381 } 382 383 func (fake *FakeUserRepository) FindByUsername(arg1 string) (models.UserFields, error) { 384 fake.findByUsernameMutex.Lock() 385 ret, specificReturn := fake.findByUsernameReturnsOnCall[len(fake.findByUsernameArgsForCall)] 386 fake.findByUsernameArgsForCall = append(fake.findByUsernameArgsForCall, struct { 387 arg1 string 388 }{arg1}) 389 fake.recordInvocation("FindByUsername", []interface{}{arg1}) 390 fake.findByUsernameMutex.Unlock() 391 if fake.FindByUsernameStub != nil { 392 return fake.FindByUsernameStub(arg1) 393 } 394 if specificReturn { 395 return ret.result1, ret.result2 396 } 397 fakeReturns := fake.findByUsernameReturns 398 return fakeReturns.result1, fakeReturns.result2 399 } 400 401 func (fake *FakeUserRepository) FindByUsernameCallCount() int { 402 fake.findByUsernameMutex.RLock() 403 defer fake.findByUsernameMutex.RUnlock() 404 return len(fake.findByUsernameArgsForCall) 405 } 406 407 func (fake *FakeUserRepository) FindByUsernameCalls(stub func(string) (models.UserFields, error)) { 408 fake.findByUsernameMutex.Lock() 409 defer fake.findByUsernameMutex.Unlock() 410 fake.FindByUsernameStub = stub 411 } 412 413 func (fake *FakeUserRepository) FindByUsernameArgsForCall(i int) string { 414 fake.findByUsernameMutex.RLock() 415 defer fake.findByUsernameMutex.RUnlock() 416 argsForCall := fake.findByUsernameArgsForCall[i] 417 return argsForCall.arg1 418 } 419 420 func (fake *FakeUserRepository) FindByUsernameReturns(result1 models.UserFields, result2 error) { 421 fake.findByUsernameMutex.Lock() 422 defer fake.findByUsernameMutex.Unlock() 423 fake.FindByUsernameStub = nil 424 fake.findByUsernameReturns = struct { 425 result1 models.UserFields 426 result2 error 427 }{result1, result2} 428 } 429 430 func (fake *FakeUserRepository) FindByUsernameReturnsOnCall(i int, result1 models.UserFields, result2 error) { 431 fake.findByUsernameMutex.Lock() 432 defer fake.findByUsernameMutex.Unlock() 433 fake.FindByUsernameStub = nil 434 if fake.findByUsernameReturnsOnCall == nil { 435 fake.findByUsernameReturnsOnCall = make(map[int]struct { 436 result1 models.UserFields 437 result2 error 438 }) 439 } 440 fake.findByUsernameReturnsOnCall[i] = struct { 441 result1 models.UserFields 442 result2 error 443 }{result1, result2} 444 } 445 446 func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAA(arg1 string, arg2 models.Role) ([]models.UserFields, error) { 447 fake.listUsersInOrgForRoleWithNoUAAMutex.Lock() 448 ret, specificReturn := fake.listUsersInOrgForRoleWithNoUAAReturnsOnCall[len(fake.listUsersInOrgForRoleWithNoUAAArgsForCall)] 449 fake.listUsersInOrgForRoleWithNoUAAArgsForCall = append(fake.listUsersInOrgForRoleWithNoUAAArgsForCall, struct { 450 arg1 string 451 arg2 models.Role 452 }{arg1, arg2}) 453 fake.recordInvocation("ListUsersInOrgForRoleWithNoUAA", []interface{}{arg1, arg2}) 454 fake.listUsersInOrgForRoleWithNoUAAMutex.Unlock() 455 if fake.ListUsersInOrgForRoleWithNoUAAStub != nil { 456 return fake.ListUsersInOrgForRoleWithNoUAAStub(arg1, arg2) 457 } 458 if specificReturn { 459 return ret.result1, ret.result2 460 } 461 fakeReturns := fake.listUsersInOrgForRoleWithNoUAAReturns 462 return fakeReturns.result1, fakeReturns.result2 463 } 464 465 func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAACallCount() int { 466 fake.listUsersInOrgForRoleWithNoUAAMutex.RLock() 467 defer fake.listUsersInOrgForRoleWithNoUAAMutex.RUnlock() 468 return len(fake.listUsersInOrgForRoleWithNoUAAArgsForCall) 469 } 470 471 func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAACalls(stub func(string, models.Role) ([]models.UserFields, error)) { 472 fake.listUsersInOrgForRoleWithNoUAAMutex.Lock() 473 defer fake.listUsersInOrgForRoleWithNoUAAMutex.Unlock() 474 fake.ListUsersInOrgForRoleWithNoUAAStub = stub 475 } 476 477 func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAAArgsForCall(i int) (string, models.Role) { 478 fake.listUsersInOrgForRoleWithNoUAAMutex.RLock() 479 defer fake.listUsersInOrgForRoleWithNoUAAMutex.RUnlock() 480 argsForCall := fake.listUsersInOrgForRoleWithNoUAAArgsForCall[i] 481 return argsForCall.arg1, argsForCall.arg2 482 } 483 484 func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAAReturns(result1 []models.UserFields, result2 error) { 485 fake.listUsersInOrgForRoleWithNoUAAMutex.Lock() 486 defer fake.listUsersInOrgForRoleWithNoUAAMutex.Unlock() 487 fake.ListUsersInOrgForRoleWithNoUAAStub = nil 488 fake.listUsersInOrgForRoleWithNoUAAReturns = struct { 489 result1 []models.UserFields 490 result2 error 491 }{result1, result2} 492 } 493 494 func (fake *FakeUserRepository) ListUsersInOrgForRoleWithNoUAAReturnsOnCall(i int, result1 []models.UserFields, result2 error) { 495 fake.listUsersInOrgForRoleWithNoUAAMutex.Lock() 496 defer fake.listUsersInOrgForRoleWithNoUAAMutex.Unlock() 497 fake.ListUsersInOrgForRoleWithNoUAAStub = nil 498 if fake.listUsersInOrgForRoleWithNoUAAReturnsOnCall == nil { 499 fake.listUsersInOrgForRoleWithNoUAAReturnsOnCall = make(map[int]struct { 500 result1 []models.UserFields 501 result2 error 502 }) 503 } 504 fake.listUsersInOrgForRoleWithNoUAAReturnsOnCall[i] = struct { 505 result1 []models.UserFields 506 result2 error 507 }{result1, result2} 508 } 509 510 func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAA(arg1 string, arg2 models.Role) ([]models.UserFields, error) { 511 fake.listUsersInSpaceForRoleWithNoUAAMutex.Lock() 512 ret, specificReturn := fake.listUsersInSpaceForRoleWithNoUAAReturnsOnCall[len(fake.listUsersInSpaceForRoleWithNoUAAArgsForCall)] 513 fake.listUsersInSpaceForRoleWithNoUAAArgsForCall = append(fake.listUsersInSpaceForRoleWithNoUAAArgsForCall, struct { 514 arg1 string 515 arg2 models.Role 516 }{arg1, arg2}) 517 fake.recordInvocation("ListUsersInSpaceForRoleWithNoUAA", []interface{}{arg1, arg2}) 518 fake.listUsersInSpaceForRoleWithNoUAAMutex.Unlock() 519 if fake.ListUsersInSpaceForRoleWithNoUAAStub != nil { 520 return fake.ListUsersInSpaceForRoleWithNoUAAStub(arg1, arg2) 521 } 522 if specificReturn { 523 return ret.result1, ret.result2 524 } 525 fakeReturns := fake.listUsersInSpaceForRoleWithNoUAAReturns 526 return fakeReturns.result1, fakeReturns.result2 527 } 528 529 func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAACallCount() int { 530 fake.listUsersInSpaceForRoleWithNoUAAMutex.RLock() 531 defer fake.listUsersInSpaceForRoleWithNoUAAMutex.RUnlock() 532 return len(fake.listUsersInSpaceForRoleWithNoUAAArgsForCall) 533 } 534 535 func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAACalls(stub func(string, models.Role) ([]models.UserFields, error)) { 536 fake.listUsersInSpaceForRoleWithNoUAAMutex.Lock() 537 defer fake.listUsersInSpaceForRoleWithNoUAAMutex.Unlock() 538 fake.ListUsersInSpaceForRoleWithNoUAAStub = stub 539 } 540 541 func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAAArgsForCall(i int) (string, models.Role) { 542 fake.listUsersInSpaceForRoleWithNoUAAMutex.RLock() 543 defer fake.listUsersInSpaceForRoleWithNoUAAMutex.RUnlock() 544 argsForCall := fake.listUsersInSpaceForRoleWithNoUAAArgsForCall[i] 545 return argsForCall.arg1, argsForCall.arg2 546 } 547 548 func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAAReturns(result1 []models.UserFields, result2 error) { 549 fake.listUsersInSpaceForRoleWithNoUAAMutex.Lock() 550 defer fake.listUsersInSpaceForRoleWithNoUAAMutex.Unlock() 551 fake.ListUsersInSpaceForRoleWithNoUAAStub = nil 552 fake.listUsersInSpaceForRoleWithNoUAAReturns = struct { 553 result1 []models.UserFields 554 result2 error 555 }{result1, result2} 556 } 557 558 func (fake *FakeUserRepository) ListUsersInSpaceForRoleWithNoUAAReturnsOnCall(i int, result1 []models.UserFields, result2 error) { 559 fake.listUsersInSpaceForRoleWithNoUAAMutex.Lock() 560 defer fake.listUsersInSpaceForRoleWithNoUAAMutex.Unlock() 561 fake.ListUsersInSpaceForRoleWithNoUAAStub = nil 562 if fake.listUsersInSpaceForRoleWithNoUAAReturnsOnCall == nil { 563 fake.listUsersInSpaceForRoleWithNoUAAReturnsOnCall = make(map[int]struct { 564 result1 []models.UserFields 565 result2 error 566 }) 567 } 568 fake.listUsersInSpaceForRoleWithNoUAAReturnsOnCall[i] = struct { 569 result1 []models.UserFields 570 result2 error 571 }{result1, result2} 572 } 573 574 func (fake *FakeUserRepository) SetOrgRoleByGUID(arg1 string, arg2 string, arg3 models.Role) error { 575 fake.setOrgRoleByGUIDMutex.Lock() 576 ret, specificReturn := fake.setOrgRoleByGUIDReturnsOnCall[len(fake.setOrgRoleByGUIDArgsForCall)] 577 fake.setOrgRoleByGUIDArgsForCall = append(fake.setOrgRoleByGUIDArgsForCall, struct { 578 arg1 string 579 arg2 string 580 arg3 models.Role 581 }{arg1, arg2, arg3}) 582 fake.recordInvocation("SetOrgRoleByGUID", []interface{}{arg1, arg2, arg3}) 583 fake.setOrgRoleByGUIDMutex.Unlock() 584 if fake.SetOrgRoleByGUIDStub != nil { 585 return fake.SetOrgRoleByGUIDStub(arg1, arg2, arg3) 586 } 587 if specificReturn { 588 return ret.result1 589 } 590 fakeReturns := fake.setOrgRoleByGUIDReturns 591 return fakeReturns.result1 592 } 593 594 func (fake *FakeUserRepository) SetOrgRoleByGUIDCallCount() int { 595 fake.setOrgRoleByGUIDMutex.RLock() 596 defer fake.setOrgRoleByGUIDMutex.RUnlock() 597 return len(fake.setOrgRoleByGUIDArgsForCall) 598 } 599 600 func (fake *FakeUserRepository) SetOrgRoleByGUIDCalls(stub func(string, string, models.Role) error) { 601 fake.setOrgRoleByGUIDMutex.Lock() 602 defer fake.setOrgRoleByGUIDMutex.Unlock() 603 fake.SetOrgRoleByGUIDStub = stub 604 } 605 606 func (fake *FakeUserRepository) SetOrgRoleByGUIDArgsForCall(i int) (string, string, models.Role) { 607 fake.setOrgRoleByGUIDMutex.RLock() 608 defer fake.setOrgRoleByGUIDMutex.RUnlock() 609 argsForCall := fake.setOrgRoleByGUIDArgsForCall[i] 610 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 611 } 612 613 func (fake *FakeUserRepository) SetOrgRoleByGUIDReturns(result1 error) { 614 fake.setOrgRoleByGUIDMutex.Lock() 615 defer fake.setOrgRoleByGUIDMutex.Unlock() 616 fake.SetOrgRoleByGUIDStub = nil 617 fake.setOrgRoleByGUIDReturns = struct { 618 result1 error 619 }{result1} 620 } 621 622 func (fake *FakeUserRepository) SetOrgRoleByGUIDReturnsOnCall(i int, result1 error) { 623 fake.setOrgRoleByGUIDMutex.Lock() 624 defer fake.setOrgRoleByGUIDMutex.Unlock() 625 fake.SetOrgRoleByGUIDStub = nil 626 if fake.setOrgRoleByGUIDReturnsOnCall == nil { 627 fake.setOrgRoleByGUIDReturnsOnCall = make(map[int]struct { 628 result1 error 629 }) 630 } 631 fake.setOrgRoleByGUIDReturnsOnCall[i] = struct { 632 result1 error 633 }{result1} 634 } 635 636 func (fake *FakeUserRepository) SetOrgRoleByUsername(arg1 string, arg2 string, arg3 models.Role) error { 637 fake.setOrgRoleByUsernameMutex.Lock() 638 ret, specificReturn := fake.setOrgRoleByUsernameReturnsOnCall[len(fake.setOrgRoleByUsernameArgsForCall)] 639 fake.setOrgRoleByUsernameArgsForCall = append(fake.setOrgRoleByUsernameArgsForCall, struct { 640 arg1 string 641 arg2 string 642 arg3 models.Role 643 }{arg1, arg2, arg3}) 644 fake.recordInvocation("SetOrgRoleByUsername", []interface{}{arg1, arg2, arg3}) 645 fake.setOrgRoleByUsernameMutex.Unlock() 646 if fake.SetOrgRoleByUsernameStub != nil { 647 return fake.SetOrgRoleByUsernameStub(arg1, arg2, arg3) 648 } 649 if specificReturn { 650 return ret.result1 651 } 652 fakeReturns := fake.setOrgRoleByUsernameReturns 653 return fakeReturns.result1 654 } 655 656 func (fake *FakeUserRepository) SetOrgRoleByUsernameCallCount() int { 657 fake.setOrgRoleByUsernameMutex.RLock() 658 defer fake.setOrgRoleByUsernameMutex.RUnlock() 659 return len(fake.setOrgRoleByUsernameArgsForCall) 660 } 661 662 func (fake *FakeUserRepository) SetOrgRoleByUsernameCalls(stub func(string, string, models.Role) error) { 663 fake.setOrgRoleByUsernameMutex.Lock() 664 defer fake.setOrgRoleByUsernameMutex.Unlock() 665 fake.SetOrgRoleByUsernameStub = stub 666 } 667 668 func (fake *FakeUserRepository) SetOrgRoleByUsernameArgsForCall(i int) (string, string, models.Role) { 669 fake.setOrgRoleByUsernameMutex.RLock() 670 defer fake.setOrgRoleByUsernameMutex.RUnlock() 671 argsForCall := fake.setOrgRoleByUsernameArgsForCall[i] 672 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 673 } 674 675 func (fake *FakeUserRepository) SetOrgRoleByUsernameReturns(result1 error) { 676 fake.setOrgRoleByUsernameMutex.Lock() 677 defer fake.setOrgRoleByUsernameMutex.Unlock() 678 fake.SetOrgRoleByUsernameStub = nil 679 fake.setOrgRoleByUsernameReturns = struct { 680 result1 error 681 }{result1} 682 } 683 684 func (fake *FakeUserRepository) SetOrgRoleByUsernameReturnsOnCall(i int, result1 error) { 685 fake.setOrgRoleByUsernameMutex.Lock() 686 defer fake.setOrgRoleByUsernameMutex.Unlock() 687 fake.SetOrgRoleByUsernameStub = nil 688 if fake.setOrgRoleByUsernameReturnsOnCall == nil { 689 fake.setOrgRoleByUsernameReturnsOnCall = make(map[int]struct { 690 result1 error 691 }) 692 } 693 fake.setOrgRoleByUsernameReturnsOnCall[i] = struct { 694 result1 error 695 }{result1} 696 } 697 698 func (fake *FakeUserRepository) SetSpaceRoleByGUID(arg1 string, arg2 string, arg3 string, arg4 models.Role) error { 699 fake.setSpaceRoleByGUIDMutex.Lock() 700 ret, specificReturn := fake.setSpaceRoleByGUIDReturnsOnCall[len(fake.setSpaceRoleByGUIDArgsForCall)] 701 fake.setSpaceRoleByGUIDArgsForCall = append(fake.setSpaceRoleByGUIDArgsForCall, struct { 702 arg1 string 703 arg2 string 704 arg3 string 705 arg4 models.Role 706 }{arg1, arg2, arg3, arg4}) 707 fake.recordInvocation("SetSpaceRoleByGUID", []interface{}{arg1, arg2, arg3, arg4}) 708 fake.setSpaceRoleByGUIDMutex.Unlock() 709 if fake.SetSpaceRoleByGUIDStub != nil { 710 return fake.SetSpaceRoleByGUIDStub(arg1, arg2, arg3, arg4) 711 } 712 if specificReturn { 713 return ret.result1 714 } 715 fakeReturns := fake.setSpaceRoleByGUIDReturns 716 return fakeReturns.result1 717 } 718 719 func (fake *FakeUserRepository) SetSpaceRoleByGUIDCallCount() int { 720 fake.setSpaceRoleByGUIDMutex.RLock() 721 defer fake.setSpaceRoleByGUIDMutex.RUnlock() 722 return len(fake.setSpaceRoleByGUIDArgsForCall) 723 } 724 725 func (fake *FakeUserRepository) SetSpaceRoleByGUIDCalls(stub func(string, string, string, models.Role) error) { 726 fake.setSpaceRoleByGUIDMutex.Lock() 727 defer fake.setSpaceRoleByGUIDMutex.Unlock() 728 fake.SetSpaceRoleByGUIDStub = stub 729 } 730 731 func (fake *FakeUserRepository) SetSpaceRoleByGUIDArgsForCall(i int) (string, string, string, models.Role) { 732 fake.setSpaceRoleByGUIDMutex.RLock() 733 defer fake.setSpaceRoleByGUIDMutex.RUnlock() 734 argsForCall := fake.setSpaceRoleByGUIDArgsForCall[i] 735 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 736 } 737 738 func (fake *FakeUserRepository) SetSpaceRoleByGUIDReturns(result1 error) { 739 fake.setSpaceRoleByGUIDMutex.Lock() 740 defer fake.setSpaceRoleByGUIDMutex.Unlock() 741 fake.SetSpaceRoleByGUIDStub = nil 742 fake.setSpaceRoleByGUIDReturns = struct { 743 result1 error 744 }{result1} 745 } 746 747 func (fake *FakeUserRepository) SetSpaceRoleByGUIDReturnsOnCall(i int, result1 error) { 748 fake.setSpaceRoleByGUIDMutex.Lock() 749 defer fake.setSpaceRoleByGUIDMutex.Unlock() 750 fake.SetSpaceRoleByGUIDStub = nil 751 if fake.setSpaceRoleByGUIDReturnsOnCall == nil { 752 fake.setSpaceRoleByGUIDReturnsOnCall = make(map[int]struct { 753 result1 error 754 }) 755 } 756 fake.setSpaceRoleByGUIDReturnsOnCall[i] = struct { 757 result1 error 758 }{result1} 759 } 760 761 func (fake *FakeUserRepository) SetSpaceRoleByUsername(arg1 string, arg2 string, arg3 string, arg4 models.Role) error { 762 fake.setSpaceRoleByUsernameMutex.Lock() 763 ret, specificReturn := fake.setSpaceRoleByUsernameReturnsOnCall[len(fake.setSpaceRoleByUsernameArgsForCall)] 764 fake.setSpaceRoleByUsernameArgsForCall = append(fake.setSpaceRoleByUsernameArgsForCall, struct { 765 arg1 string 766 arg2 string 767 arg3 string 768 arg4 models.Role 769 }{arg1, arg2, arg3, arg4}) 770 fake.recordInvocation("SetSpaceRoleByUsername", []interface{}{arg1, arg2, arg3, arg4}) 771 fake.setSpaceRoleByUsernameMutex.Unlock() 772 if fake.SetSpaceRoleByUsernameStub != nil { 773 return fake.SetSpaceRoleByUsernameStub(arg1, arg2, arg3, arg4) 774 } 775 if specificReturn { 776 return ret.result1 777 } 778 fakeReturns := fake.setSpaceRoleByUsernameReturns 779 return fakeReturns.result1 780 } 781 782 func (fake *FakeUserRepository) SetSpaceRoleByUsernameCallCount() int { 783 fake.setSpaceRoleByUsernameMutex.RLock() 784 defer fake.setSpaceRoleByUsernameMutex.RUnlock() 785 return len(fake.setSpaceRoleByUsernameArgsForCall) 786 } 787 788 func (fake *FakeUserRepository) SetSpaceRoleByUsernameCalls(stub func(string, string, string, models.Role) error) { 789 fake.setSpaceRoleByUsernameMutex.Lock() 790 defer fake.setSpaceRoleByUsernameMutex.Unlock() 791 fake.SetSpaceRoleByUsernameStub = stub 792 } 793 794 func (fake *FakeUserRepository) SetSpaceRoleByUsernameArgsForCall(i int) (string, string, string, models.Role) { 795 fake.setSpaceRoleByUsernameMutex.RLock() 796 defer fake.setSpaceRoleByUsernameMutex.RUnlock() 797 argsForCall := fake.setSpaceRoleByUsernameArgsForCall[i] 798 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4 799 } 800 801 func (fake *FakeUserRepository) SetSpaceRoleByUsernameReturns(result1 error) { 802 fake.setSpaceRoleByUsernameMutex.Lock() 803 defer fake.setSpaceRoleByUsernameMutex.Unlock() 804 fake.SetSpaceRoleByUsernameStub = nil 805 fake.setSpaceRoleByUsernameReturns = struct { 806 result1 error 807 }{result1} 808 } 809 810 func (fake *FakeUserRepository) SetSpaceRoleByUsernameReturnsOnCall(i int, result1 error) { 811 fake.setSpaceRoleByUsernameMutex.Lock() 812 defer fake.setSpaceRoleByUsernameMutex.Unlock() 813 fake.SetSpaceRoleByUsernameStub = nil 814 if fake.setSpaceRoleByUsernameReturnsOnCall == nil { 815 fake.setSpaceRoleByUsernameReturnsOnCall = make(map[int]struct { 816 result1 error 817 }) 818 } 819 fake.setSpaceRoleByUsernameReturnsOnCall[i] = struct { 820 result1 error 821 }{result1} 822 } 823 824 func (fake *FakeUserRepository) UnsetOrgRoleByGUID(arg1 string, arg2 string, arg3 models.Role) error { 825 fake.unsetOrgRoleByGUIDMutex.Lock() 826 ret, specificReturn := fake.unsetOrgRoleByGUIDReturnsOnCall[len(fake.unsetOrgRoleByGUIDArgsForCall)] 827 fake.unsetOrgRoleByGUIDArgsForCall = append(fake.unsetOrgRoleByGUIDArgsForCall, struct { 828 arg1 string 829 arg2 string 830 arg3 models.Role 831 }{arg1, arg2, arg3}) 832 fake.recordInvocation("UnsetOrgRoleByGUID", []interface{}{arg1, arg2, arg3}) 833 fake.unsetOrgRoleByGUIDMutex.Unlock() 834 if fake.UnsetOrgRoleByGUIDStub != nil { 835 return fake.UnsetOrgRoleByGUIDStub(arg1, arg2, arg3) 836 } 837 if specificReturn { 838 return ret.result1 839 } 840 fakeReturns := fake.unsetOrgRoleByGUIDReturns 841 return fakeReturns.result1 842 } 843 844 func (fake *FakeUserRepository) UnsetOrgRoleByGUIDCallCount() int { 845 fake.unsetOrgRoleByGUIDMutex.RLock() 846 defer fake.unsetOrgRoleByGUIDMutex.RUnlock() 847 return len(fake.unsetOrgRoleByGUIDArgsForCall) 848 } 849 850 func (fake *FakeUserRepository) UnsetOrgRoleByGUIDCalls(stub func(string, string, models.Role) error) { 851 fake.unsetOrgRoleByGUIDMutex.Lock() 852 defer fake.unsetOrgRoleByGUIDMutex.Unlock() 853 fake.UnsetOrgRoleByGUIDStub = stub 854 } 855 856 func (fake *FakeUserRepository) UnsetOrgRoleByGUIDArgsForCall(i int) (string, string, models.Role) { 857 fake.unsetOrgRoleByGUIDMutex.RLock() 858 defer fake.unsetOrgRoleByGUIDMutex.RUnlock() 859 argsForCall := fake.unsetOrgRoleByGUIDArgsForCall[i] 860 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 861 } 862 863 func (fake *FakeUserRepository) UnsetOrgRoleByGUIDReturns(result1 error) { 864 fake.unsetOrgRoleByGUIDMutex.Lock() 865 defer fake.unsetOrgRoleByGUIDMutex.Unlock() 866 fake.UnsetOrgRoleByGUIDStub = nil 867 fake.unsetOrgRoleByGUIDReturns = struct { 868 result1 error 869 }{result1} 870 } 871 872 func (fake *FakeUserRepository) UnsetOrgRoleByGUIDReturnsOnCall(i int, result1 error) { 873 fake.unsetOrgRoleByGUIDMutex.Lock() 874 defer fake.unsetOrgRoleByGUIDMutex.Unlock() 875 fake.UnsetOrgRoleByGUIDStub = nil 876 if fake.unsetOrgRoleByGUIDReturnsOnCall == nil { 877 fake.unsetOrgRoleByGUIDReturnsOnCall = make(map[int]struct { 878 result1 error 879 }) 880 } 881 fake.unsetOrgRoleByGUIDReturnsOnCall[i] = struct { 882 result1 error 883 }{result1} 884 } 885 886 func (fake *FakeUserRepository) UnsetOrgRoleByUsername(arg1 string, arg2 string, arg3 models.Role) error { 887 fake.unsetOrgRoleByUsernameMutex.Lock() 888 ret, specificReturn := fake.unsetOrgRoleByUsernameReturnsOnCall[len(fake.unsetOrgRoleByUsernameArgsForCall)] 889 fake.unsetOrgRoleByUsernameArgsForCall = append(fake.unsetOrgRoleByUsernameArgsForCall, struct { 890 arg1 string 891 arg2 string 892 arg3 models.Role 893 }{arg1, arg2, arg3}) 894 fake.recordInvocation("UnsetOrgRoleByUsername", []interface{}{arg1, arg2, arg3}) 895 fake.unsetOrgRoleByUsernameMutex.Unlock() 896 if fake.UnsetOrgRoleByUsernameStub != nil { 897 return fake.UnsetOrgRoleByUsernameStub(arg1, arg2, arg3) 898 } 899 if specificReturn { 900 return ret.result1 901 } 902 fakeReturns := fake.unsetOrgRoleByUsernameReturns 903 return fakeReturns.result1 904 } 905 906 func (fake *FakeUserRepository) UnsetOrgRoleByUsernameCallCount() int { 907 fake.unsetOrgRoleByUsernameMutex.RLock() 908 defer fake.unsetOrgRoleByUsernameMutex.RUnlock() 909 return len(fake.unsetOrgRoleByUsernameArgsForCall) 910 } 911 912 func (fake *FakeUserRepository) UnsetOrgRoleByUsernameCalls(stub func(string, string, models.Role) error) { 913 fake.unsetOrgRoleByUsernameMutex.Lock() 914 defer fake.unsetOrgRoleByUsernameMutex.Unlock() 915 fake.UnsetOrgRoleByUsernameStub = stub 916 } 917 918 func (fake *FakeUserRepository) UnsetOrgRoleByUsernameArgsForCall(i int) (string, string, models.Role) { 919 fake.unsetOrgRoleByUsernameMutex.RLock() 920 defer fake.unsetOrgRoleByUsernameMutex.RUnlock() 921 argsForCall := fake.unsetOrgRoleByUsernameArgsForCall[i] 922 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 923 } 924 925 func (fake *FakeUserRepository) UnsetOrgRoleByUsernameReturns(result1 error) { 926 fake.unsetOrgRoleByUsernameMutex.Lock() 927 defer fake.unsetOrgRoleByUsernameMutex.Unlock() 928 fake.UnsetOrgRoleByUsernameStub = nil 929 fake.unsetOrgRoleByUsernameReturns = struct { 930 result1 error 931 }{result1} 932 } 933 934 func (fake *FakeUserRepository) UnsetOrgRoleByUsernameReturnsOnCall(i int, result1 error) { 935 fake.unsetOrgRoleByUsernameMutex.Lock() 936 defer fake.unsetOrgRoleByUsernameMutex.Unlock() 937 fake.UnsetOrgRoleByUsernameStub = nil 938 if fake.unsetOrgRoleByUsernameReturnsOnCall == nil { 939 fake.unsetOrgRoleByUsernameReturnsOnCall = make(map[int]struct { 940 result1 error 941 }) 942 } 943 fake.unsetOrgRoleByUsernameReturnsOnCall[i] = struct { 944 result1 error 945 }{result1} 946 } 947 948 func (fake *FakeUserRepository) UnsetSpaceRoleByGUID(arg1 string, arg2 string, arg3 models.Role) error { 949 fake.unsetSpaceRoleByGUIDMutex.Lock() 950 ret, specificReturn := fake.unsetSpaceRoleByGUIDReturnsOnCall[len(fake.unsetSpaceRoleByGUIDArgsForCall)] 951 fake.unsetSpaceRoleByGUIDArgsForCall = append(fake.unsetSpaceRoleByGUIDArgsForCall, struct { 952 arg1 string 953 arg2 string 954 arg3 models.Role 955 }{arg1, arg2, arg3}) 956 fake.recordInvocation("UnsetSpaceRoleByGUID", []interface{}{arg1, arg2, arg3}) 957 fake.unsetSpaceRoleByGUIDMutex.Unlock() 958 if fake.UnsetSpaceRoleByGUIDStub != nil { 959 return fake.UnsetSpaceRoleByGUIDStub(arg1, arg2, arg3) 960 } 961 if specificReturn { 962 return ret.result1 963 } 964 fakeReturns := fake.unsetSpaceRoleByGUIDReturns 965 return fakeReturns.result1 966 } 967 968 func (fake *FakeUserRepository) UnsetSpaceRoleByGUIDCallCount() int { 969 fake.unsetSpaceRoleByGUIDMutex.RLock() 970 defer fake.unsetSpaceRoleByGUIDMutex.RUnlock() 971 return len(fake.unsetSpaceRoleByGUIDArgsForCall) 972 } 973 974 func (fake *FakeUserRepository) UnsetSpaceRoleByGUIDCalls(stub func(string, string, models.Role) error) { 975 fake.unsetSpaceRoleByGUIDMutex.Lock() 976 defer fake.unsetSpaceRoleByGUIDMutex.Unlock() 977 fake.UnsetSpaceRoleByGUIDStub = stub 978 } 979 980 func (fake *FakeUserRepository) UnsetSpaceRoleByGUIDArgsForCall(i int) (string, string, models.Role) { 981 fake.unsetSpaceRoleByGUIDMutex.RLock() 982 defer fake.unsetSpaceRoleByGUIDMutex.RUnlock() 983 argsForCall := fake.unsetSpaceRoleByGUIDArgsForCall[i] 984 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 985 } 986 987 func (fake *FakeUserRepository) UnsetSpaceRoleByGUIDReturns(result1 error) { 988 fake.unsetSpaceRoleByGUIDMutex.Lock() 989 defer fake.unsetSpaceRoleByGUIDMutex.Unlock() 990 fake.UnsetSpaceRoleByGUIDStub = nil 991 fake.unsetSpaceRoleByGUIDReturns = struct { 992 result1 error 993 }{result1} 994 } 995 996 func (fake *FakeUserRepository) UnsetSpaceRoleByGUIDReturnsOnCall(i int, result1 error) { 997 fake.unsetSpaceRoleByGUIDMutex.Lock() 998 defer fake.unsetSpaceRoleByGUIDMutex.Unlock() 999 fake.UnsetSpaceRoleByGUIDStub = nil 1000 if fake.unsetSpaceRoleByGUIDReturnsOnCall == nil { 1001 fake.unsetSpaceRoleByGUIDReturnsOnCall = make(map[int]struct { 1002 result1 error 1003 }) 1004 } 1005 fake.unsetSpaceRoleByGUIDReturnsOnCall[i] = struct { 1006 result1 error 1007 }{result1} 1008 } 1009 1010 func (fake *FakeUserRepository) UnsetSpaceRoleByUsername(arg1 string, arg2 string, arg3 models.Role) error { 1011 fake.unsetSpaceRoleByUsernameMutex.Lock() 1012 ret, specificReturn := fake.unsetSpaceRoleByUsernameReturnsOnCall[len(fake.unsetSpaceRoleByUsernameArgsForCall)] 1013 fake.unsetSpaceRoleByUsernameArgsForCall = append(fake.unsetSpaceRoleByUsernameArgsForCall, struct { 1014 arg1 string 1015 arg2 string 1016 arg3 models.Role 1017 }{arg1, arg2, arg3}) 1018 fake.recordInvocation("UnsetSpaceRoleByUsername", []interface{}{arg1, arg2, arg3}) 1019 fake.unsetSpaceRoleByUsernameMutex.Unlock() 1020 if fake.UnsetSpaceRoleByUsernameStub != nil { 1021 return fake.UnsetSpaceRoleByUsernameStub(arg1, arg2, arg3) 1022 } 1023 if specificReturn { 1024 return ret.result1 1025 } 1026 fakeReturns := fake.unsetSpaceRoleByUsernameReturns 1027 return fakeReturns.result1 1028 } 1029 1030 func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameCallCount() int { 1031 fake.unsetSpaceRoleByUsernameMutex.RLock() 1032 defer fake.unsetSpaceRoleByUsernameMutex.RUnlock() 1033 return len(fake.unsetSpaceRoleByUsernameArgsForCall) 1034 } 1035 1036 func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameCalls(stub func(string, string, models.Role) error) { 1037 fake.unsetSpaceRoleByUsernameMutex.Lock() 1038 defer fake.unsetSpaceRoleByUsernameMutex.Unlock() 1039 fake.UnsetSpaceRoleByUsernameStub = stub 1040 } 1041 1042 func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameArgsForCall(i int) (string, string, models.Role) { 1043 fake.unsetSpaceRoleByUsernameMutex.RLock() 1044 defer fake.unsetSpaceRoleByUsernameMutex.RUnlock() 1045 argsForCall := fake.unsetSpaceRoleByUsernameArgsForCall[i] 1046 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3 1047 } 1048 1049 func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameReturns(result1 error) { 1050 fake.unsetSpaceRoleByUsernameMutex.Lock() 1051 defer fake.unsetSpaceRoleByUsernameMutex.Unlock() 1052 fake.UnsetSpaceRoleByUsernameStub = nil 1053 fake.unsetSpaceRoleByUsernameReturns = struct { 1054 result1 error 1055 }{result1} 1056 } 1057 1058 func (fake *FakeUserRepository) UnsetSpaceRoleByUsernameReturnsOnCall(i int, result1 error) { 1059 fake.unsetSpaceRoleByUsernameMutex.Lock() 1060 defer fake.unsetSpaceRoleByUsernameMutex.Unlock() 1061 fake.UnsetSpaceRoleByUsernameStub = nil 1062 if fake.unsetSpaceRoleByUsernameReturnsOnCall == nil { 1063 fake.unsetSpaceRoleByUsernameReturnsOnCall = make(map[int]struct { 1064 result1 error 1065 }) 1066 } 1067 fake.unsetSpaceRoleByUsernameReturnsOnCall[i] = struct { 1068 result1 error 1069 }{result1} 1070 } 1071 1072 func (fake *FakeUserRepository) Invocations() map[string][][]interface{} { 1073 fake.invocationsMutex.RLock() 1074 defer fake.invocationsMutex.RUnlock() 1075 fake.createMutex.RLock() 1076 defer fake.createMutex.RUnlock() 1077 fake.deleteMutex.RLock() 1078 defer fake.deleteMutex.RUnlock() 1079 fake.findAllByUsernameMutex.RLock() 1080 defer fake.findAllByUsernameMutex.RUnlock() 1081 fake.findByUsernameMutex.RLock() 1082 defer fake.findByUsernameMutex.RUnlock() 1083 fake.listUsersInOrgForRoleWithNoUAAMutex.RLock() 1084 defer fake.listUsersInOrgForRoleWithNoUAAMutex.RUnlock() 1085 fake.listUsersInSpaceForRoleWithNoUAAMutex.RLock() 1086 defer fake.listUsersInSpaceForRoleWithNoUAAMutex.RUnlock() 1087 fake.setOrgRoleByGUIDMutex.RLock() 1088 defer fake.setOrgRoleByGUIDMutex.RUnlock() 1089 fake.setOrgRoleByUsernameMutex.RLock() 1090 defer fake.setOrgRoleByUsernameMutex.RUnlock() 1091 fake.setSpaceRoleByGUIDMutex.RLock() 1092 defer fake.setSpaceRoleByGUIDMutex.RUnlock() 1093 fake.setSpaceRoleByUsernameMutex.RLock() 1094 defer fake.setSpaceRoleByUsernameMutex.RUnlock() 1095 fake.unsetOrgRoleByGUIDMutex.RLock() 1096 defer fake.unsetOrgRoleByGUIDMutex.RUnlock() 1097 fake.unsetOrgRoleByUsernameMutex.RLock() 1098 defer fake.unsetOrgRoleByUsernameMutex.RUnlock() 1099 fake.unsetSpaceRoleByGUIDMutex.RLock() 1100 defer fake.unsetSpaceRoleByGUIDMutex.RUnlock() 1101 fake.unsetSpaceRoleByUsernameMutex.RLock() 1102 defer fake.unsetSpaceRoleByUsernameMutex.RUnlock() 1103 copiedInvocations := map[string][][]interface{}{} 1104 for key, value := range fake.invocations { 1105 copiedInvocations[key] = value 1106 } 1107 return copiedInvocations 1108 } 1109 1110 func (fake *FakeUserRepository) recordInvocation(key string, args []interface{}) { 1111 fake.invocationsMutex.Lock() 1112 defer fake.invocationsMutex.Unlock() 1113 if fake.invocations == nil { 1114 fake.invocations = map[string][][]interface{}{} 1115 } 1116 if fake.invocations[key] == nil { 1117 fake.invocations[key] = [][]interface{}{} 1118 } 1119 fake.invocations[key] = append(fake.invocations[key], args) 1120 } 1121 1122 var _ api.UserRepository = new(FakeUserRepository)