github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/command/v7/v7fakes/fake_unmap_route_actor.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package v7fakes
     3  
     4  import (
     5  	"sync"
     6  
     7  	"code.cloudfoundry.org/cli/actor/v7action"
     8  	v7 "code.cloudfoundry.org/cli/command/v7"
     9  )
    10  
    11  type FakeUnmapRouteActor struct {
    12  	GetApplicationByNameAndSpaceStub        func(string, string) (v7action.Application, v7action.Warnings, error)
    13  	getApplicationByNameAndSpaceMutex       sync.RWMutex
    14  	getApplicationByNameAndSpaceArgsForCall []struct {
    15  		arg1 string
    16  		arg2 string
    17  	}
    18  	getApplicationByNameAndSpaceReturns struct {
    19  		result1 v7action.Application
    20  		result2 v7action.Warnings
    21  		result3 error
    22  	}
    23  	getApplicationByNameAndSpaceReturnsOnCall map[int]struct {
    24  		result1 v7action.Application
    25  		result2 v7action.Warnings
    26  		result3 error
    27  	}
    28  	GetDomainByNameStub        func(string) (v7action.Domain, v7action.Warnings, error)
    29  	getDomainByNameMutex       sync.RWMutex
    30  	getDomainByNameArgsForCall []struct {
    31  		arg1 string
    32  	}
    33  	getDomainByNameReturns struct {
    34  		result1 v7action.Domain
    35  		result2 v7action.Warnings
    36  		result3 error
    37  	}
    38  	getDomainByNameReturnsOnCall map[int]struct {
    39  		result1 v7action.Domain
    40  		result2 v7action.Warnings
    41  		result3 error
    42  	}
    43  	GetRouteByAttributesStub        func(string, string, string, string) (v7action.Route, v7action.Warnings, error)
    44  	getRouteByAttributesMutex       sync.RWMutex
    45  	getRouteByAttributesArgsForCall []struct {
    46  		arg1 string
    47  		arg2 string
    48  		arg3 string
    49  		arg4 string
    50  	}
    51  	getRouteByAttributesReturns struct {
    52  		result1 v7action.Route
    53  		result2 v7action.Warnings
    54  		result3 error
    55  	}
    56  	getRouteByAttributesReturnsOnCall map[int]struct {
    57  		result1 v7action.Route
    58  		result2 v7action.Warnings
    59  		result3 error
    60  	}
    61  	GetRouteDestinationByAppGUIDStub        func(string, string) (v7action.RouteDestination, v7action.Warnings, error)
    62  	getRouteDestinationByAppGUIDMutex       sync.RWMutex
    63  	getRouteDestinationByAppGUIDArgsForCall []struct {
    64  		arg1 string
    65  		arg2 string
    66  	}
    67  	getRouteDestinationByAppGUIDReturns struct {
    68  		result1 v7action.RouteDestination
    69  		result2 v7action.Warnings
    70  		result3 error
    71  	}
    72  	getRouteDestinationByAppGUIDReturnsOnCall map[int]struct {
    73  		result1 v7action.RouteDestination
    74  		result2 v7action.Warnings
    75  		result3 error
    76  	}
    77  	UnmapRouteStub        func(string, string) (v7action.Warnings, error)
    78  	unmapRouteMutex       sync.RWMutex
    79  	unmapRouteArgsForCall []struct {
    80  		arg1 string
    81  		arg2 string
    82  	}
    83  	unmapRouteReturns struct {
    84  		result1 v7action.Warnings
    85  		result2 error
    86  	}
    87  	unmapRouteReturnsOnCall map[int]struct {
    88  		result1 v7action.Warnings
    89  		result2 error
    90  	}
    91  	invocations      map[string][][]interface{}
    92  	invocationsMutex sync.RWMutex
    93  }
    94  
    95  func (fake *FakeUnmapRouteActor) GetApplicationByNameAndSpace(arg1 string, arg2 string) (v7action.Application, v7action.Warnings, error) {
    96  	fake.getApplicationByNameAndSpaceMutex.Lock()
    97  	ret, specificReturn := fake.getApplicationByNameAndSpaceReturnsOnCall[len(fake.getApplicationByNameAndSpaceArgsForCall)]
    98  	fake.getApplicationByNameAndSpaceArgsForCall = append(fake.getApplicationByNameAndSpaceArgsForCall, struct {
    99  		arg1 string
   100  		arg2 string
   101  	}{arg1, arg2})
   102  	fake.recordInvocation("GetApplicationByNameAndSpace", []interface{}{arg1, arg2})
   103  	fake.getApplicationByNameAndSpaceMutex.Unlock()
   104  	if fake.GetApplicationByNameAndSpaceStub != nil {
   105  		return fake.GetApplicationByNameAndSpaceStub(arg1, arg2)
   106  	}
   107  	if specificReturn {
   108  		return ret.result1, ret.result2, ret.result3
   109  	}
   110  	fakeReturns := fake.getApplicationByNameAndSpaceReturns
   111  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   112  }
   113  
   114  func (fake *FakeUnmapRouteActor) GetApplicationByNameAndSpaceCallCount() int {
   115  	fake.getApplicationByNameAndSpaceMutex.RLock()
   116  	defer fake.getApplicationByNameAndSpaceMutex.RUnlock()
   117  	return len(fake.getApplicationByNameAndSpaceArgsForCall)
   118  }
   119  
   120  func (fake *FakeUnmapRouteActor) GetApplicationByNameAndSpaceCalls(stub func(string, string) (v7action.Application, v7action.Warnings, error)) {
   121  	fake.getApplicationByNameAndSpaceMutex.Lock()
   122  	defer fake.getApplicationByNameAndSpaceMutex.Unlock()
   123  	fake.GetApplicationByNameAndSpaceStub = stub
   124  }
   125  
   126  func (fake *FakeUnmapRouteActor) GetApplicationByNameAndSpaceArgsForCall(i int) (string, string) {
   127  	fake.getApplicationByNameAndSpaceMutex.RLock()
   128  	defer fake.getApplicationByNameAndSpaceMutex.RUnlock()
   129  	argsForCall := fake.getApplicationByNameAndSpaceArgsForCall[i]
   130  	return argsForCall.arg1, argsForCall.arg2
   131  }
   132  
   133  func (fake *FakeUnmapRouteActor) GetApplicationByNameAndSpaceReturns(result1 v7action.Application, result2 v7action.Warnings, result3 error) {
   134  	fake.getApplicationByNameAndSpaceMutex.Lock()
   135  	defer fake.getApplicationByNameAndSpaceMutex.Unlock()
   136  	fake.GetApplicationByNameAndSpaceStub = nil
   137  	fake.getApplicationByNameAndSpaceReturns = struct {
   138  		result1 v7action.Application
   139  		result2 v7action.Warnings
   140  		result3 error
   141  	}{result1, result2, result3}
   142  }
   143  
   144  func (fake *FakeUnmapRouteActor) GetApplicationByNameAndSpaceReturnsOnCall(i int, result1 v7action.Application, result2 v7action.Warnings, result3 error) {
   145  	fake.getApplicationByNameAndSpaceMutex.Lock()
   146  	defer fake.getApplicationByNameAndSpaceMutex.Unlock()
   147  	fake.GetApplicationByNameAndSpaceStub = nil
   148  	if fake.getApplicationByNameAndSpaceReturnsOnCall == nil {
   149  		fake.getApplicationByNameAndSpaceReturnsOnCall = make(map[int]struct {
   150  			result1 v7action.Application
   151  			result2 v7action.Warnings
   152  			result3 error
   153  		})
   154  	}
   155  	fake.getApplicationByNameAndSpaceReturnsOnCall[i] = struct {
   156  		result1 v7action.Application
   157  		result2 v7action.Warnings
   158  		result3 error
   159  	}{result1, result2, result3}
   160  }
   161  
   162  func (fake *FakeUnmapRouteActor) GetDomainByName(arg1 string) (v7action.Domain, v7action.Warnings, error) {
   163  	fake.getDomainByNameMutex.Lock()
   164  	ret, specificReturn := fake.getDomainByNameReturnsOnCall[len(fake.getDomainByNameArgsForCall)]
   165  	fake.getDomainByNameArgsForCall = append(fake.getDomainByNameArgsForCall, struct {
   166  		arg1 string
   167  	}{arg1})
   168  	fake.recordInvocation("GetDomainByName", []interface{}{arg1})
   169  	fake.getDomainByNameMutex.Unlock()
   170  	if fake.GetDomainByNameStub != nil {
   171  		return fake.GetDomainByNameStub(arg1)
   172  	}
   173  	if specificReturn {
   174  		return ret.result1, ret.result2, ret.result3
   175  	}
   176  	fakeReturns := fake.getDomainByNameReturns
   177  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   178  }
   179  
   180  func (fake *FakeUnmapRouteActor) GetDomainByNameCallCount() int {
   181  	fake.getDomainByNameMutex.RLock()
   182  	defer fake.getDomainByNameMutex.RUnlock()
   183  	return len(fake.getDomainByNameArgsForCall)
   184  }
   185  
   186  func (fake *FakeUnmapRouteActor) GetDomainByNameCalls(stub func(string) (v7action.Domain, v7action.Warnings, error)) {
   187  	fake.getDomainByNameMutex.Lock()
   188  	defer fake.getDomainByNameMutex.Unlock()
   189  	fake.GetDomainByNameStub = stub
   190  }
   191  
   192  func (fake *FakeUnmapRouteActor) GetDomainByNameArgsForCall(i int) string {
   193  	fake.getDomainByNameMutex.RLock()
   194  	defer fake.getDomainByNameMutex.RUnlock()
   195  	argsForCall := fake.getDomainByNameArgsForCall[i]
   196  	return argsForCall.arg1
   197  }
   198  
   199  func (fake *FakeUnmapRouteActor) GetDomainByNameReturns(result1 v7action.Domain, result2 v7action.Warnings, result3 error) {
   200  	fake.getDomainByNameMutex.Lock()
   201  	defer fake.getDomainByNameMutex.Unlock()
   202  	fake.GetDomainByNameStub = nil
   203  	fake.getDomainByNameReturns = struct {
   204  		result1 v7action.Domain
   205  		result2 v7action.Warnings
   206  		result3 error
   207  	}{result1, result2, result3}
   208  }
   209  
   210  func (fake *FakeUnmapRouteActor) GetDomainByNameReturnsOnCall(i int, result1 v7action.Domain, result2 v7action.Warnings, result3 error) {
   211  	fake.getDomainByNameMutex.Lock()
   212  	defer fake.getDomainByNameMutex.Unlock()
   213  	fake.GetDomainByNameStub = nil
   214  	if fake.getDomainByNameReturnsOnCall == nil {
   215  		fake.getDomainByNameReturnsOnCall = make(map[int]struct {
   216  			result1 v7action.Domain
   217  			result2 v7action.Warnings
   218  			result3 error
   219  		})
   220  	}
   221  	fake.getDomainByNameReturnsOnCall[i] = struct {
   222  		result1 v7action.Domain
   223  		result2 v7action.Warnings
   224  		result3 error
   225  	}{result1, result2, result3}
   226  }
   227  
   228  func (fake *FakeUnmapRouteActor) GetRouteByAttributes(arg1 string, arg2 string, arg3 string, arg4 string) (v7action.Route, v7action.Warnings, error) {
   229  	fake.getRouteByAttributesMutex.Lock()
   230  	ret, specificReturn := fake.getRouteByAttributesReturnsOnCall[len(fake.getRouteByAttributesArgsForCall)]
   231  	fake.getRouteByAttributesArgsForCall = append(fake.getRouteByAttributesArgsForCall, struct {
   232  		arg1 string
   233  		arg2 string
   234  		arg3 string
   235  		arg4 string
   236  	}{arg1, arg2, arg3, arg4})
   237  	fake.recordInvocation("GetRouteByAttributes", []interface{}{arg1, arg2, arg3, arg4})
   238  	fake.getRouteByAttributesMutex.Unlock()
   239  	if fake.GetRouteByAttributesStub != nil {
   240  		return fake.GetRouteByAttributesStub(arg1, arg2, arg3, arg4)
   241  	}
   242  	if specificReturn {
   243  		return ret.result1, ret.result2, ret.result3
   244  	}
   245  	fakeReturns := fake.getRouteByAttributesReturns
   246  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   247  }
   248  
   249  func (fake *FakeUnmapRouteActor) GetRouteByAttributesCallCount() int {
   250  	fake.getRouteByAttributesMutex.RLock()
   251  	defer fake.getRouteByAttributesMutex.RUnlock()
   252  	return len(fake.getRouteByAttributesArgsForCall)
   253  }
   254  
   255  func (fake *FakeUnmapRouteActor) GetRouteByAttributesCalls(stub func(string, string, string, string) (v7action.Route, v7action.Warnings, error)) {
   256  	fake.getRouteByAttributesMutex.Lock()
   257  	defer fake.getRouteByAttributesMutex.Unlock()
   258  	fake.GetRouteByAttributesStub = stub
   259  }
   260  
   261  func (fake *FakeUnmapRouteActor) GetRouteByAttributesArgsForCall(i int) (string, string, string, string) {
   262  	fake.getRouteByAttributesMutex.RLock()
   263  	defer fake.getRouteByAttributesMutex.RUnlock()
   264  	argsForCall := fake.getRouteByAttributesArgsForCall[i]
   265  	return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4
   266  }
   267  
   268  func (fake *FakeUnmapRouteActor) GetRouteByAttributesReturns(result1 v7action.Route, result2 v7action.Warnings, result3 error) {
   269  	fake.getRouteByAttributesMutex.Lock()
   270  	defer fake.getRouteByAttributesMutex.Unlock()
   271  	fake.GetRouteByAttributesStub = nil
   272  	fake.getRouteByAttributesReturns = struct {
   273  		result1 v7action.Route
   274  		result2 v7action.Warnings
   275  		result3 error
   276  	}{result1, result2, result3}
   277  }
   278  
   279  func (fake *FakeUnmapRouteActor) GetRouteByAttributesReturnsOnCall(i int, result1 v7action.Route, result2 v7action.Warnings, result3 error) {
   280  	fake.getRouteByAttributesMutex.Lock()
   281  	defer fake.getRouteByAttributesMutex.Unlock()
   282  	fake.GetRouteByAttributesStub = nil
   283  	if fake.getRouteByAttributesReturnsOnCall == nil {
   284  		fake.getRouteByAttributesReturnsOnCall = make(map[int]struct {
   285  			result1 v7action.Route
   286  			result2 v7action.Warnings
   287  			result3 error
   288  		})
   289  	}
   290  	fake.getRouteByAttributesReturnsOnCall[i] = struct {
   291  		result1 v7action.Route
   292  		result2 v7action.Warnings
   293  		result3 error
   294  	}{result1, result2, result3}
   295  }
   296  
   297  func (fake *FakeUnmapRouteActor) GetRouteDestinationByAppGUID(arg1 string, arg2 string) (v7action.RouteDestination, v7action.Warnings, error) {
   298  	fake.getRouteDestinationByAppGUIDMutex.Lock()
   299  	ret, specificReturn := fake.getRouteDestinationByAppGUIDReturnsOnCall[len(fake.getRouteDestinationByAppGUIDArgsForCall)]
   300  	fake.getRouteDestinationByAppGUIDArgsForCall = append(fake.getRouteDestinationByAppGUIDArgsForCall, struct {
   301  		arg1 string
   302  		arg2 string
   303  	}{arg1, arg2})
   304  	fake.recordInvocation("GetRouteDestinationByAppGUID", []interface{}{arg1, arg2})
   305  	fake.getRouteDestinationByAppGUIDMutex.Unlock()
   306  	if fake.GetRouteDestinationByAppGUIDStub != nil {
   307  		return fake.GetRouteDestinationByAppGUIDStub(arg1, arg2)
   308  	}
   309  	if specificReturn {
   310  		return ret.result1, ret.result2, ret.result3
   311  	}
   312  	fakeReturns := fake.getRouteDestinationByAppGUIDReturns
   313  	return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3
   314  }
   315  
   316  func (fake *FakeUnmapRouteActor) GetRouteDestinationByAppGUIDCallCount() int {
   317  	fake.getRouteDestinationByAppGUIDMutex.RLock()
   318  	defer fake.getRouteDestinationByAppGUIDMutex.RUnlock()
   319  	return len(fake.getRouteDestinationByAppGUIDArgsForCall)
   320  }
   321  
   322  func (fake *FakeUnmapRouteActor) GetRouteDestinationByAppGUIDCalls(stub func(string, string) (v7action.RouteDestination, v7action.Warnings, error)) {
   323  	fake.getRouteDestinationByAppGUIDMutex.Lock()
   324  	defer fake.getRouteDestinationByAppGUIDMutex.Unlock()
   325  	fake.GetRouteDestinationByAppGUIDStub = stub
   326  }
   327  
   328  func (fake *FakeUnmapRouteActor) GetRouteDestinationByAppGUIDArgsForCall(i int) (string, string) {
   329  	fake.getRouteDestinationByAppGUIDMutex.RLock()
   330  	defer fake.getRouteDestinationByAppGUIDMutex.RUnlock()
   331  	argsForCall := fake.getRouteDestinationByAppGUIDArgsForCall[i]
   332  	return argsForCall.arg1, argsForCall.arg2
   333  }
   334  
   335  func (fake *FakeUnmapRouteActor) GetRouteDestinationByAppGUIDReturns(result1 v7action.RouteDestination, result2 v7action.Warnings, result3 error) {
   336  	fake.getRouteDestinationByAppGUIDMutex.Lock()
   337  	defer fake.getRouteDestinationByAppGUIDMutex.Unlock()
   338  	fake.GetRouteDestinationByAppGUIDStub = nil
   339  	fake.getRouteDestinationByAppGUIDReturns = struct {
   340  		result1 v7action.RouteDestination
   341  		result2 v7action.Warnings
   342  		result3 error
   343  	}{result1, result2, result3}
   344  }
   345  
   346  func (fake *FakeUnmapRouteActor) GetRouteDestinationByAppGUIDReturnsOnCall(i int, result1 v7action.RouteDestination, result2 v7action.Warnings, result3 error) {
   347  	fake.getRouteDestinationByAppGUIDMutex.Lock()
   348  	defer fake.getRouteDestinationByAppGUIDMutex.Unlock()
   349  	fake.GetRouteDestinationByAppGUIDStub = nil
   350  	if fake.getRouteDestinationByAppGUIDReturnsOnCall == nil {
   351  		fake.getRouteDestinationByAppGUIDReturnsOnCall = make(map[int]struct {
   352  			result1 v7action.RouteDestination
   353  			result2 v7action.Warnings
   354  			result3 error
   355  		})
   356  	}
   357  	fake.getRouteDestinationByAppGUIDReturnsOnCall[i] = struct {
   358  		result1 v7action.RouteDestination
   359  		result2 v7action.Warnings
   360  		result3 error
   361  	}{result1, result2, result3}
   362  }
   363  
   364  func (fake *FakeUnmapRouteActor) UnmapRoute(arg1 string, arg2 string) (v7action.Warnings, error) {
   365  	fake.unmapRouteMutex.Lock()
   366  	ret, specificReturn := fake.unmapRouteReturnsOnCall[len(fake.unmapRouteArgsForCall)]
   367  	fake.unmapRouteArgsForCall = append(fake.unmapRouteArgsForCall, struct {
   368  		arg1 string
   369  		arg2 string
   370  	}{arg1, arg2})
   371  	fake.recordInvocation("UnmapRoute", []interface{}{arg1, arg2})
   372  	fake.unmapRouteMutex.Unlock()
   373  	if fake.UnmapRouteStub != nil {
   374  		return fake.UnmapRouteStub(arg1, arg2)
   375  	}
   376  	if specificReturn {
   377  		return ret.result1, ret.result2
   378  	}
   379  	fakeReturns := fake.unmapRouteReturns
   380  	return fakeReturns.result1, fakeReturns.result2
   381  }
   382  
   383  func (fake *FakeUnmapRouteActor) UnmapRouteCallCount() int {
   384  	fake.unmapRouteMutex.RLock()
   385  	defer fake.unmapRouteMutex.RUnlock()
   386  	return len(fake.unmapRouteArgsForCall)
   387  }
   388  
   389  func (fake *FakeUnmapRouteActor) UnmapRouteCalls(stub func(string, string) (v7action.Warnings, error)) {
   390  	fake.unmapRouteMutex.Lock()
   391  	defer fake.unmapRouteMutex.Unlock()
   392  	fake.UnmapRouteStub = stub
   393  }
   394  
   395  func (fake *FakeUnmapRouteActor) UnmapRouteArgsForCall(i int) (string, string) {
   396  	fake.unmapRouteMutex.RLock()
   397  	defer fake.unmapRouteMutex.RUnlock()
   398  	argsForCall := fake.unmapRouteArgsForCall[i]
   399  	return argsForCall.arg1, argsForCall.arg2
   400  }
   401  
   402  func (fake *FakeUnmapRouteActor) UnmapRouteReturns(result1 v7action.Warnings, result2 error) {
   403  	fake.unmapRouteMutex.Lock()
   404  	defer fake.unmapRouteMutex.Unlock()
   405  	fake.UnmapRouteStub = nil
   406  	fake.unmapRouteReturns = struct {
   407  		result1 v7action.Warnings
   408  		result2 error
   409  	}{result1, result2}
   410  }
   411  
   412  func (fake *FakeUnmapRouteActor) UnmapRouteReturnsOnCall(i int, result1 v7action.Warnings, result2 error) {
   413  	fake.unmapRouteMutex.Lock()
   414  	defer fake.unmapRouteMutex.Unlock()
   415  	fake.UnmapRouteStub = nil
   416  	if fake.unmapRouteReturnsOnCall == nil {
   417  		fake.unmapRouteReturnsOnCall = make(map[int]struct {
   418  			result1 v7action.Warnings
   419  			result2 error
   420  		})
   421  	}
   422  	fake.unmapRouteReturnsOnCall[i] = struct {
   423  		result1 v7action.Warnings
   424  		result2 error
   425  	}{result1, result2}
   426  }
   427  
   428  func (fake *FakeUnmapRouteActor) Invocations() map[string][][]interface{} {
   429  	fake.invocationsMutex.RLock()
   430  	defer fake.invocationsMutex.RUnlock()
   431  	fake.getApplicationByNameAndSpaceMutex.RLock()
   432  	defer fake.getApplicationByNameAndSpaceMutex.RUnlock()
   433  	fake.getDomainByNameMutex.RLock()
   434  	defer fake.getDomainByNameMutex.RUnlock()
   435  	fake.getRouteByAttributesMutex.RLock()
   436  	defer fake.getRouteByAttributesMutex.RUnlock()
   437  	fake.getRouteDestinationByAppGUIDMutex.RLock()
   438  	defer fake.getRouteDestinationByAppGUIDMutex.RUnlock()
   439  	fake.unmapRouteMutex.RLock()
   440  	defer fake.unmapRouteMutex.RUnlock()
   441  	copiedInvocations := map[string][][]interface{}{}
   442  	for key, value := range fake.invocations {
   443  		copiedInvocations[key] = value
   444  	}
   445  	return copiedInvocations
   446  }
   447  
   448  func (fake *FakeUnmapRouteActor) recordInvocation(key string, args []interface{}) {
   449  	fake.invocationsMutex.Lock()
   450  	defer fake.invocationsMutex.Unlock()
   451  	if fake.invocations == nil {
   452  		fake.invocations = map[string][][]interface{}{}
   453  	}
   454  	if fake.invocations[key] == nil {
   455  		fake.invocations[key] = [][]interface{}{}
   456  	}
   457  	fake.invocations[key] = append(fake.invocations[key], args)
   458  }
   459  
   460  var _ v7.UnmapRouteActor = new(FakeUnmapRouteActor)