github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/cf/api/apifakes/fake_route_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 FakeRouteRepository struct {
    12  	BindStub        func(string, string) error
    13  	bindMutex       sync.RWMutex
    14  	bindArgsForCall []struct {
    15  		arg1 string
    16  		arg2 string
    17  	}
    18  	bindReturns struct {
    19  		result1 error
    20  	}
    21  	bindReturnsOnCall map[int]struct {
    22  		result1 error
    23  	}
    24  	CheckIfExistsStub        func(string, models.DomainFields, string) (bool, error)
    25  	checkIfExistsMutex       sync.RWMutex
    26  	checkIfExistsArgsForCall []struct {
    27  		arg1 string
    28  		arg2 models.DomainFields
    29  		arg3 string
    30  	}
    31  	checkIfExistsReturns struct {
    32  		result1 bool
    33  		result2 error
    34  	}
    35  	checkIfExistsReturnsOnCall map[int]struct {
    36  		result1 bool
    37  		result2 error
    38  	}
    39  	CreateStub        func(string, models.DomainFields, string, int, bool) (models.Route, error)
    40  	createMutex       sync.RWMutex
    41  	createArgsForCall []struct {
    42  		arg1 string
    43  		arg2 models.DomainFields
    44  		arg3 string
    45  		arg4 int
    46  		arg5 bool
    47  	}
    48  	createReturns struct {
    49  		result1 models.Route
    50  		result2 error
    51  	}
    52  	createReturnsOnCall map[int]struct {
    53  		result1 models.Route
    54  		result2 error
    55  	}
    56  	CreateInSpaceStub        func(string, string, string, string, int, bool) (models.Route, error)
    57  	createInSpaceMutex       sync.RWMutex
    58  	createInSpaceArgsForCall []struct {
    59  		arg1 string
    60  		arg2 string
    61  		arg3 string
    62  		arg4 string
    63  		arg5 int
    64  		arg6 bool
    65  	}
    66  	createInSpaceReturns struct {
    67  		result1 models.Route
    68  		result2 error
    69  	}
    70  	createInSpaceReturnsOnCall map[int]struct {
    71  		result1 models.Route
    72  		result2 error
    73  	}
    74  	DeleteStub        func(string) error
    75  	deleteMutex       sync.RWMutex
    76  	deleteArgsForCall []struct {
    77  		arg1 string
    78  	}
    79  	deleteReturns struct {
    80  		result1 error
    81  	}
    82  	deleteReturnsOnCall map[int]struct {
    83  		result1 error
    84  	}
    85  	FindStub        func(string, models.DomainFields, string, int) (models.Route, error)
    86  	findMutex       sync.RWMutex
    87  	findArgsForCall []struct {
    88  		arg1 string
    89  		arg2 models.DomainFields
    90  		arg3 string
    91  		arg4 int
    92  	}
    93  	findReturns struct {
    94  		result1 models.Route
    95  		result2 error
    96  	}
    97  	findReturnsOnCall map[int]struct {
    98  		result1 models.Route
    99  		result2 error
   100  	}
   101  	ListAllRoutesStub        func(func(models.Route) bool) error
   102  	listAllRoutesMutex       sync.RWMutex
   103  	listAllRoutesArgsForCall []struct {
   104  		arg1 func(models.Route) bool
   105  	}
   106  	listAllRoutesReturns struct {
   107  		result1 error
   108  	}
   109  	listAllRoutesReturnsOnCall map[int]struct {
   110  		result1 error
   111  	}
   112  	ListRoutesStub        func(func(models.Route) bool) error
   113  	listRoutesMutex       sync.RWMutex
   114  	listRoutesArgsForCall []struct {
   115  		arg1 func(models.Route) bool
   116  	}
   117  	listRoutesReturns struct {
   118  		result1 error
   119  	}
   120  	listRoutesReturnsOnCall map[int]struct {
   121  		result1 error
   122  	}
   123  	UnbindStub        func(string, string) error
   124  	unbindMutex       sync.RWMutex
   125  	unbindArgsForCall []struct {
   126  		arg1 string
   127  		arg2 string
   128  	}
   129  	unbindReturns struct {
   130  		result1 error
   131  	}
   132  	unbindReturnsOnCall map[int]struct {
   133  		result1 error
   134  	}
   135  	invocations      map[string][][]interface{}
   136  	invocationsMutex sync.RWMutex
   137  }
   138  
   139  func (fake *FakeRouteRepository) Bind(arg1 string, arg2 string) error {
   140  	fake.bindMutex.Lock()
   141  	ret, specificReturn := fake.bindReturnsOnCall[len(fake.bindArgsForCall)]
   142  	fake.bindArgsForCall = append(fake.bindArgsForCall, struct {
   143  		arg1 string
   144  		arg2 string
   145  	}{arg1, arg2})
   146  	fake.recordInvocation("Bind", []interface{}{arg1, arg2})
   147  	fake.bindMutex.Unlock()
   148  	if fake.BindStub != nil {
   149  		return fake.BindStub(arg1, arg2)
   150  	}
   151  	if specificReturn {
   152  		return ret.result1
   153  	}
   154  	fakeReturns := fake.bindReturns
   155  	return fakeReturns.result1
   156  }
   157  
   158  func (fake *FakeRouteRepository) BindCallCount() int {
   159  	fake.bindMutex.RLock()
   160  	defer fake.bindMutex.RUnlock()
   161  	return len(fake.bindArgsForCall)
   162  }
   163  
   164  func (fake *FakeRouteRepository) BindCalls(stub func(string, string) error) {
   165  	fake.bindMutex.Lock()
   166  	defer fake.bindMutex.Unlock()
   167  	fake.BindStub = stub
   168  }
   169  
   170  func (fake *FakeRouteRepository) BindArgsForCall(i int) (string, string) {
   171  	fake.bindMutex.RLock()
   172  	defer fake.bindMutex.RUnlock()
   173  	argsForCall := fake.bindArgsForCall[i]
   174  	return argsForCall.arg1, argsForCall.arg2
   175  }
   176  
   177  func (fake *FakeRouteRepository) BindReturns(result1 error) {
   178  	fake.bindMutex.Lock()
   179  	defer fake.bindMutex.Unlock()
   180  	fake.BindStub = nil
   181  	fake.bindReturns = struct {
   182  		result1 error
   183  	}{result1}
   184  }
   185  
   186  func (fake *FakeRouteRepository) BindReturnsOnCall(i int, result1 error) {
   187  	fake.bindMutex.Lock()
   188  	defer fake.bindMutex.Unlock()
   189  	fake.BindStub = nil
   190  	if fake.bindReturnsOnCall == nil {
   191  		fake.bindReturnsOnCall = make(map[int]struct {
   192  			result1 error
   193  		})
   194  	}
   195  	fake.bindReturnsOnCall[i] = struct {
   196  		result1 error
   197  	}{result1}
   198  }
   199  
   200  func (fake *FakeRouteRepository) CheckIfExists(arg1 string, arg2 models.DomainFields, arg3 string) (bool, error) {
   201  	fake.checkIfExistsMutex.Lock()
   202  	ret, specificReturn := fake.checkIfExistsReturnsOnCall[len(fake.checkIfExistsArgsForCall)]
   203  	fake.checkIfExistsArgsForCall = append(fake.checkIfExistsArgsForCall, struct {
   204  		arg1 string
   205  		arg2 models.DomainFields
   206  		arg3 string
   207  	}{arg1, arg2, arg3})
   208  	fake.recordInvocation("CheckIfExists", []interface{}{arg1, arg2, arg3})
   209  	fake.checkIfExistsMutex.Unlock()
   210  	if fake.CheckIfExistsStub != nil {
   211  		return fake.CheckIfExistsStub(arg1, arg2, arg3)
   212  	}
   213  	if specificReturn {
   214  		return ret.result1, ret.result2
   215  	}
   216  	fakeReturns := fake.checkIfExistsReturns
   217  	return fakeReturns.result1, fakeReturns.result2
   218  }
   219  
   220  func (fake *FakeRouteRepository) CheckIfExistsCallCount() int {
   221  	fake.checkIfExistsMutex.RLock()
   222  	defer fake.checkIfExistsMutex.RUnlock()
   223  	return len(fake.checkIfExistsArgsForCall)
   224  }
   225  
   226  func (fake *FakeRouteRepository) CheckIfExistsCalls(stub func(string, models.DomainFields, string) (bool, error)) {
   227  	fake.checkIfExistsMutex.Lock()
   228  	defer fake.checkIfExistsMutex.Unlock()
   229  	fake.CheckIfExistsStub = stub
   230  }
   231  
   232  func (fake *FakeRouteRepository) CheckIfExistsArgsForCall(i int) (string, models.DomainFields, string) {
   233  	fake.checkIfExistsMutex.RLock()
   234  	defer fake.checkIfExistsMutex.RUnlock()
   235  	argsForCall := fake.checkIfExistsArgsForCall[i]
   236  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3
   237  }
   238  
   239  func (fake *FakeRouteRepository) CheckIfExistsReturns(result1 bool, result2 error) {
   240  	fake.checkIfExistsMutex.Lock()
   241  	defer fake.checkIfExistsMutex.Unlock()
   242  	fake.CheckIfExistsStub = nil
   243  	fake.checkIfExistsReturns = struct {
   244  		result1 bool
   245  		result2 error
   246  	}{result1, result2}
   247  }
   248  
   249  func (fake *FakeRouteRepository) CheckIfExistsReturnsOnCall(i int, result1 bool, result2 error) {
   250  	fake.checkIfExistsMutex.Lock()
   251  	defer fake.checkIfExistsMutex.Unlock()
   252  	fake.CheckIfExistsStub = nil
   253  	if fake.checkIfExistsReturnsOnCall == nil {
   254  		fake.checkIfExistsReturnsOnCall = make(map[int]struct {
   255  			result1 bool
   256  			result2 error
   257  		})
   258  	}
   259  	fake.checkIfExistsReturnsOnCall[i] = struct {
   260  		result1 bool
   261  		result2 error
   262  	}{result1, result2}
   263  }
   264  
   265  func (fake *FakeRouteRepository) Create(arg1 string, arg2 models.DomainFields, arg3 string, arg4 int, arg5 bool) (models.Route, error) {
   266  	fake.createMutex.Lock()
   267  	ret, specificReturn := fake.createReturnsOnCall[len(fake.createArgsForCall)]
   268  	fake.createArgsForCall = append(fake.createArgsForCall, struct {
   269  		arg1 string
   270  		arg2 models.DomainFields
   271  		arg3 string
   272  		arg4 int
   273  		arg5 bool
   274  	}{arg1, arg2, arg3, arg4, arg5})
   275  	fake.recordInvocation("Create", []interface{}{arg1, arg2, arg3, arg4, arg5})
   276  	fake.createMutex.Unlock()
   277  	if fake.CreateStub != nil {
   278  		return fake.CreateStub(arg1, arg2, arg3, arg4, arg5)
   279  	}
   280  	if specificReturn {
   281  		return ret.result1, ret.result2
   282  	}
   283  	fakeReturns := fake.createReturns
   284  	return fakeReturns.result1, fakeReturns.result2
   285  }
   286  
   287  func (fake *FakeRouteRepository) CreateCallCount() int {
   288  	fake.createMutex.RLock()
   289  	defer fake.createMutex.RUnlock()
   290  	return len(fake.createArgsForCall)
   291  }
   292  
   293  func (fake *FakeRouteRepository) CreateCalls(stub func(string, models.DomainFields, string, int, bool) (models.Route, error)) {
   294  	fake.createMutex.Lock()
   295  	defer fake.createMutex.Unlock()
   296  	fake.CreateStub = stub
   297  }
   298  
   299  func (fake *FakeRouteRepository) CreateArgsForCall(i int) (string, models.DomainFields, string, int, bool) {
   300  	fake.createMutex.RLock()
   301  	defer fake.createMutex.RUnlock()
   302  	argsForCall := fake.createArgsForCall[i]
   303  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5
   304  }
   305  
   306  func (fake *FakeRouteRepository) CreateReturns(result1 models.Route, result2 error) {
   307  	fake.createMutex.Lock()
   308  	defer fake.createMutex.Unlock()
   309  	fake.CreateStub = nil
   310  	fake.createReturns = struct {
   311  		result1 models.Route
   312  		result2 error
   313  	}{result1, result2}
   314  }
   315  
   316  func (fake *FakeRouteRepository) CreateReturnsOnCall(i int, result1 models.Route, result2 error) {
   317  	fake.createMutex.Lock()
   318  	defer fake.createMutex.Unlock()
   319  	fake.CreateStub = nil
   320  	if fake.createReturnsOnCall == nil {
   321  		fake.createReturnsOnCall = make(map[int]struct {
   322  			result1 models.Route
   323  			result2 error
   324  		})
   325  	}
   326  	fake.createReturnsOnCall[i] = struct {
   327  		result1 models.Route
   328  		result2 error
   329  	}{result1, result2}
   330  }
   331  
   332  func (fake *FakeRouteRepository) CreateInSpace(arg1 string, arg2 string, arg3 string, arg4 string, arg5 int, arg6 bool) (models.Route, error) {
   333  	fake.createInSpaceMutex.Lock()
   334  	ret, specificReturn := fake.createInSpaceReturnsOnCall[len(fake.createInSpaceArgsForCall)]
   335  	fake.createInSpaceArgsForCall = append(fake.createInSpaceArgsForCall, struct {
   336  		arg1 string
   337  		arg2 string
   338  		arg3 string
   339  		arg4 string
   340  		arg5 int
   341  		arg6 bool
   342  	}{arg1, arg2, arg3, arg4, arg5, arg6})
   343  	fake.recordInvocation("CreateInSpace", []interface{}{arg1, arg2, arg3, arg4, arg5, arg6})
   344  	fake.createInSpaceMutex.Unlock()
   345  	if fake.CreateInSpaceStub != nil {
   346  		return fake.CreateInSpaceStub(arg1, arg2, arg3, arg4, arg5, arg6)
   347  	}
   348  	if specificReturn {
   349  		return ret.result1, ret.result2
   350  	}
   351  	fakeReturns := fake.createInSpaceReturns
   352  	return fakeReturns.result1, fakeReturns.result2
   353  }
   354  
   355  func (fake *FakeRouteRepository) CreateInSpaceCallCount() int {
   356  	fake.createInSpaceMutex.RLock()
   357  	defer fake.createInSpaceMutex.RUnlock()
   358  	return len(fake.createInSpaceArgsForCall)
   359  }
   360  
   361  func (fake *FakeRouteRepository) CreateInSpaceCalls(stub func(string, string, string, string, int, bool) (models.Route, error)) {
   362  	fake.createInSpaceMutex.Lock()
   363  	defer fake.createInSpaceMutex.Unlock()
   364  	fake.CreateInSpaceStub = stub
   365  }
   366  
   367  func (fake *FakeRouteRepository) CreateInSpaceArgsForCall(i int) (string, string, string, string, int, bool) {
   368  	fake.createInSpaceMutex.RLock()
   369  	defer fake.createInSpaceMutex.RUnlock()
   370  	argsForCall := fake.createInSpaceArgsForCall[i]
   371  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5, argsForCall.arg6
   372  }
   373  
   374  func (fake *FakeRouteRepository) CreateInSpaceReturns(result1 models.Route, result2 error) {
   375  	fake.createInSpaceMutex.Lock()
   376  	defer fake.createInSpaceMutex.Unlock()
   377  	fake.CreateInSpaceStub = nil
   378  	fake.createInSpaceReturns = struct {
   379  		result1 models.Route
   380  		result2 error
   381  	}{result1, result2}
   382  }
   383  
   384  func (fake *FakeRouteRepository) CreateInSpaceReturnsOnCall(i int, result1 models.Route, result2 error) {
   385  	fake.createInSpaceMutex.Lock()
   386  	defer fake.createInSpaceMutex.Unlock()
   387  	fake.CreateInSpaceStub = nil
   388  	if fake.createInSpaceReturnsOnCall == nil {
   389  		fake.createInSpaceReturnsOnCall = make(map[int]struct {
   390  			result1 models.Route
   391  			result2 error
   392  		})
   393  	}
   394  	fake.createInSpaceReturnsOnCall[i] = struct {
   395  		result1 models.Route
   396  		result2 error
   397  	}{result1, result2}
   398  }
   399  
   400  func (fake *FakeRouteRepository) Delete(arg1 string) error {
   401  	fake.deleteMutex.Lock()
   402  	ret, specificReturn := fake.deleteReturnsOnCall[len(fake.deleteArgsForCall)]
   403  	fake.deleteArgsForCall = append(fake.deleteArgsForCall, struct {
   404  		arg1 string
   405  	}{arg1})
   406  	fake.recordInvocation("Delete", []interface{}{arg1})
   407  	fake.deleteMutex.Unlock()
   408  	if fake.DeleteStub != nil {
   409  		return fake.DeleteStub(arg1)
   410  	}
   411  	if specificReturn {
   412  		return ret.result1
   413  	}
   414  	fakeReturns := fake.deleteReturns
   415  	return fakeReturns.result1
   416  }
   417  
   418  func (fake *FakeRouteRepository) DeleteCallCount() int {
   419  	fake.deleteMutex.RLock()
   420  	defer fake.deleteMutex.RUnlock()
   421  	return len(fake.deleteArgsForCall)
   422  }
   423  
   424  func (fake *FakeRouteRepository) DeleteCalls(stub func(string) error) {
   425  	fake.deleteMutex.Lock()
   426  	defer fake.deleteMutex.Unlock()
   427  	fake.DeleteStub = stub
   428  }
   429  
   430  func (fake *FakeRouteRepository) DeleteArgsForCall(i int) string {
   431  	fake.deleteMutex.RLock()
   432  	defer fake.deleteMutex.RUnlock()
   433  	argsForCall := fake.deleteArgsForCall[i]
   434  	return argsForCall.arg1
   435  }
   436  
   437  func (fake *FakeRouteRepository) DeleteReturns(result1 error) {
   438  	fake.deleteMutex.Lock()
   439  	defer fake.deleteMutex.Unlock()
   440  	fake.DeleteStub = nil
   441  	fake.deleteReturns = struct {
   442  		result1 error
   443  	}{result1}
   444  }
   445  
   446  func (fake *FakeRouteRepository) DeleteReturnsOnCall(i int, result1 error) {
   447  	fake.deleteMutex.Lock()
   448  	defer fake.deleteMutex.Unlock()
   449  	fake.DeleteStub = nil
   450  	if fake.deleteReturnsOnCall == nil {
   451  		fake.deleteReturnsOnCall = make(map[int]struct {
   452  			result1 error
   453  		})
   454  	}
   455  	fake.deleteReturnsOnCall[i] = struct {
   456  		result1 error
   457  	}{result1}
   458  }
   459  
   460  func (fake *FakeRouteRepository) Find(arg1 string, arg2 models.DomainFields, arg3 string, arg4 int) (models.Route, error) {
   461  	fake.findMutex.Lock()
   462  	ret, specificReturn := fake.findReturnsOnCall[len(fake.findArgsForCall)]
   463  	fake.findArgsForCall = append(fake.findArgsForCall, struct {
   464  		arg1 string
   465  		arg2 models.DomainFields
   466  		arg3 string
   467  		arg4 int
   468  	}{arg1, arg2, arg3, arg4})
   469  	fake.recordInvocation("Find", []interface{}{arg1, arg2, arg3, arg4})
   470  	fake.findMutex.Unlock()
   471  	if fake.FindStub != nil {
   472  		return fake.FindStub(arg1, arg2, arg3, arg4)
   473  	}
   474  	if specificReturn {
   475  		return ret.result1, ret.result2
   476  	}
   477  	fakeReturns := fake.findReturns
   478  	return fakeReturns.result1, fakeReturns.result2
   479  }
   480  
   481  func (fake *FakeRouteRepository) FindCallCount() int {
   482  	fake.findMutex.RLock()
   483  	defer fake.findMutex.RUnlock()
   484  	return len(fake.findArgsForCall)
   485  }
   486  
   487  func (fake *FakeRouteRepository) FindCalls(stub func(string, models.DomainFields, string, int) (models.Route, error)) {
   488  	fake.findMutex.Lock()
   489  	defer fake.findMutex.Unlock()
   490  	fake.FindStub = stub
   491  }
   492  
   493  func (fake *FakeRouteRepository) FindArgsForCall(i int) (string, models.DomainFields, string, int) {
   494  	fake.findMutex.RLock()
   495  	defer fake.findMutex.RUnlock()
   496  	argsForCall := fake.findArgsForCall[i]
   497  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4
   498  }
   499  
   500  func (fake *FakeRouteRepository) FindReturns(result1 models.Route, result2 error) {
   501  	fake.findMutex.Lock()
   502  	defer fake.findMutex.Unlock()
   503  	fake.FindStub = nil
   504  	fake.findReturns = struct {
   505  		result1 models.Route
   506  		result2 error
   507  	}{result1, result2}
   508  }
   509  
   510  func (fake *FakeRouteRepository) FindReturnsOnCall(i int, result1 models.Route, result2 error) {
   511  	fake.findMutex.Lock()
   512  	defer fake.findMutex.Unlock()
   513  	fake.FindStub = nil
   514  	if fake.findReturnsOnCall == nil {
   515  		fake.findReturnsOnCall = make(map[int]struct {
   516  			result1 models.Route
   517  			result2 error
   518  		})
   519  	}
   520  	fake.findReturnsOnCall[i] = struct {
   521  		result1 models.Route
   522  		result2 error
   523  	}{result1, result2}
   524  }
   525  
   526  func (fake *FakeRouteRepository) ListAllRoutes(arg1 func(models.Route) bool) error {
   527  	fake.listAllRoutesMutex.Lock()
   528  	ret, specificReturn := fake.listAllRoutesReturnsOnCall[len(fake.listAllRoutesArgsForCall)]
   529  	fake.listAllRoutesArgsForCall = append(fake.listAllRoutesArgsForCall, struct {
   530  		arg1 func(models.Route) bool
   531  	}{arg1})
   532  	fake.recordInvocation("ListAllRoutes", []interface{}{arg1})
   533  	fake.listAllRoutesMutex.Unlock()
   534  	if fake.ListAllRoutesStub != nil {
   535  		return fake.ListAllRoutesStub(arg1)
   536  	}
   537  	if specificReturn {
   538  		return ret.result1
   539  	}
   540  	fakeReturns := fake.listAllRoutesReturns
   541  	return fakeReturns.result1
   542  }
   543  
   544  func (fake *FakeRouteRepository) ListAllRoutesCallCount() int {
   545  	fake.listAllRoutesMutex.RLock()
   546  	defer fake.listAllRoutesMutex.RUnlock()
   547  	return len(fake.listAllRoutesArgsForCall)
   548  }
   549  
   550  func (fake *FakeRouteRepository) ListAllRoutesCalls(stub func(func(models.Route) bool) error) {
   551  	fake.listAllRoutesMutex.Lock()
   552  	defer fake.listAllRoutesMutex.Unlock()
   553  	fake.ListAllRoutesStub = stub
   554  }
   555  
   556  func (fake *FakeRouteRepository) ListAllRoutesArgsForCall(i int) func(models.Route) bool {
   557  	fake.listAllRoutesMutex.RLock()
   558  	defer fake.listAllRoutesMutex.RUnlock()
   559  	argsForCall := fake.listAllRoutesArgsForCall[i]
   560  	return argsForCall.arg1
   561  }
   562  
   563  func (fake *FakeRouteRepository) ListAllRoutesReturns(result1 error) {
   564  	fake.listAllRoutesMutex.Lock()
   565  	defer fake.listAllRoutesMutex.Unlock()
   566  	fake.ListAllRoutesStub = nil
   567  	fake.listAllRoutesReturns = struct {
   568  		result1 error
   569  	}{result1}
   570  }
   571  
   572  func (fake *FakeRouteRepository) ListAllRoutesReturnsOnCall(i int, result1 error) {
   573  	fake.listAllRoutesMutex.Lock()
   574  	defer fake.listAllRoutesMutex.Unlock()
   575  	fake.ListAllRoutesStub = nil
   576  	if fake.listAllRoutesReturnsOnCall == nil {
   577  		fake.listAllRoutesReturnsOnCall = make(map[int]struct {
   578  			result1 error
   579  		})
   580  	}
   581  	fake.listAllRoutesReturnsOnCall[i] = struct {
   582  		result1 error
   583  	}{result1}
   584  }
   585  
   586  func (fake *FakeRouteRepository) ListRoutes(arg1 func(models.Route) bool) error {
   587  	fake.listRoutesMutex.Lock()
   588  	ret, specificReturn := fake.listRoutesReturnsOnCall[len(fake.listRoutesArgsForCall)]
   589  	fake.listRoutesArgsForCall = append(fake.listRoutesArgsForCall, struct {
   590  		arg1 func(models.Route) bool
   591  	}{arg1})
   592  	fake.recordInvocation("ListRoutes", []interface{}{arg1})
   593  	fake.listRoutesMutex.Unlock()
   594  	if fake.ListRoutesStub != nil {
   595  		return fake.ListRoutesStub(arg1)
   596  	}
   597  	if specificReturn {
   598  		return ret.result1
   599  	}
   600  	fakeReturns := fake.listRoutesReturns
   601  	return fakeReturns.result1
   602  }
   603  
   604  func (fake *FakeRouteRepository) ListRoutesCallCount() int {
   605  	fake.listRoutesMutex.RLock()
   606  	defer fake.listRoutesMutex.RUnlock()
   607  	return len(fake.listRoutesArgsForCall)
   608  }
   609  
   610  func (fake *FakeRouteRepository) ListRoutesCalls(stub func(func(models.Route) bool) error) {
   611  	fake.listRoutesMutex.Lock()
   612  	defer fake.listRoutesMutex.Unlock()
   613  	fake.ListRoutesStub = stub
   614  }
   615  
   616  func (fake *FakeRouteRepository) ListRoutesArgsForCall(i int) func(models.Route) bool {
   617  	fake.listRoutesMutex.RLock()
   618  	defer fake.listRoutesMutex.RUnlock()
   619  	argsForCall := fake.listRoutesArgsForCall[i]
   620  	return argsForCall.arg1
   621  }
   622  
   623  func (fake *FakeRouteRepository) ListRoutesReturns(result1 error) {
   624  	fake.listRoutesMutex.Lock()
   625  	defer fake.listRoutesMutex.Unlock()
   626  	fake.ListRoutesStub = nil
   627  	fake.listRoutesReturns = struct {
   628  		result1 error
   629  	}{result1}
   630  }
   631  
   632  func (fake *FakeRouteRepository) ListRoutesReturnsOnCall(i int, result1 error) {
   633  	fake.listRoutesMutex.Lock()
   634  	defer fake.listRoutesMutex.Unlock()
   635  	fake.ListRoutesStub = nil
   636  	if fake.listRoutesReturnsOnCall == nil {
   637  		fake.listRoutesReturnsOnCall = make(map[int]struct {
   638  			result1 error
   639  		})
   640  	}
   641  	fake.listRoutesReturnsOnCall[i] = struct {
   642  		result1 error
   643  	}{result1}
   644  }
   645  
   646  func (fake *FakeRouteRepository) Unbind(arg1 string, arg2 string) error {
   647  	fake.unbindMutex.Lock()
   648  	ret, specificReturn := fake.unbindReturnsOnCall[len(fake.unbindArgsForCall)]
   649  	fake.unbindArgsForCall = append(fake.unbindArgsForCall, struct {
   650  		arg1 string
   651  		arg2 string
   652  	}{arg1, arg2})
   653  	fake.recordInvocation("Unbind", []interface{}{arg1, arg2})
   654  	fake.unbindMutex.Unlock()
   655  	if fake.UnbindStub != nil {
   656  		return fake.UnbindStub(arg1, arg2)
   657  	}
   658  	if specificReturn {
   659  		return ret.result1
   660  	}
   661  	fakeReturns := fake.unbindReturns
   662  	return fakeReturns.result1
   663  }
   664  
   665  func (fake *FakeRouteRepository) UnbindCallCount() int {
   666  	fake.unbindMutex.RLock()
   667  	defer fake.unbindMutex.RUnlock()
   668  	return len(fake.unbindArgsForCall)
   669  }
   670  
   671  func (fake *FakeRouteRepository) UnbindCalls(stub func(string, string) error) {
   672  	fake.unbindMutex.Lock()
   673  	defer fake.unbindMutex.Unlock()
   674  	fake.UnbindStub = stub
   675  }
   676  
   677  func (fake *FakeRouteRepository) UnbindArgsForCall(i int) (string, string) {
   678  	fake.unbindMutex.RLock()
   679  	defer fake.unbindMutex.RUnlock()
   680  	argsForCall := fake.unbindArgsForCall[i]
   681  	return argsForCall.arg1, argsForCall.arg2
   682  }
   683  
   684  func (fake *FakeRouteRepository) UnbindReturns(result1 error) {
   685  	fake.unbindMutex.Lock()
   686  	defer fake.unbindMutex.Unlock()
   687  	fake.UnbindStub = nil
   688  	fake.unbindReturns = struct {
   689  		result1 error
   690  	}{result1}
   691  }
   692  
   693  func (fake *FakeRouteRepository) UnbindReturnsOnCall(i int, result1 error) {
   694  	fake.unbindMutex.Lock()
   695  	defer fake.unbindMutex.Unlock()
   696  	fake.UnbindStub = nil
   697  	if fake.unbindReturnsOnCall == nil {
   698  		fake.unbindReturnsOnCall = make(map[int]struct {
   699  			result1 error
   700  		})
   701  	}
   702  	fake.unbindReturnsOnCall[i] = struct {
   703  		result1 error
   704  	}{result1}
   705  }
   706  
   707  func (fake *FakeRouteRepository) Invocations() map[string][][]interface{} {
   708  	fake.invocationsMutex.RLock()
   709  	defer fake.invocationsMutex.RUnlock()
   710  	fake.bindMutex.RLock()
   711  	defer fake.bindMutex.RUnlock()
   712  	fake.checkIfExistsMutex.RLock()
   713  	defer fake.checkIfExistsMutex.RUnlock()
   714  	fake.createMutex.RLock()
   715  	defer fake.createMutex.RUnlock()
   716  	fake.createInSpaceMutex.RLock()
   717  	defer fake.createInSpaceMutex.RUnlock()
   718  	fake.deleteMutex.RLock()
   719  	defer fake.deleteMutex.RUnlock()
   720  	fake.findMutex.RLock()
   721  	defer fake.findMutex.RUnlock()
   722  	fake.listAllRoutesMutex.RLock()
   723  	defer fake.listAllRoutesMutex.RUnlock()
   724  	fake.listRoutesMutex.RLock()
   725  	defer fake.listRoutesMutex.RUnlock()
   726  	fake.unbindMutex.RLock()
   727  	defer fake.unbindMutex.RUnlock()
   728  	copiedInvocations := map[string][][]interface{}{}
   729  	for key, value := range fake.invocations {
   730  		copiedInvocations[key] = value
   731  	}
   732  	return copiedInvocations
   733  }
   734  
   735  func (fake *FakeRouteRepository) recordInvocation(key string, args []interface{}) {
   736  	fake.invocationsMutex.Lock()
   737  	defer fake.invocationsMutex.Unlock()
   738  	if fake.invocations == nil {
   739  		fake.invocations = map[string][][]interface{}{}
   740  	}
   741  	if fake.invocations[key] == nil {
   742  		fake.invocations[key] = [][]interface{}{}
   743  	}
   744  	fake.invocations[key] = append(fake.invocations[key], args)
   745  }
   746  
   747  var _ api.RouteRepository = new(FakeRouteRepository)