github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/cf/requirements/requirementsfakes/fake_factory.go (about)

     1  // This file was generated by counterfeiter
     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  	NewApplicationRequirementStub        func(name string) requirements.ApplicationRequirement
    13  	newApplicationRequirementMutex       sync.RWMutex
    14  	newApplicationRequirementArgsForCall []struct {
    15  		name string
    16  	}
    17  	newApplicationRequirementReturns struct {
    18  		result1 requirements.ApplicationRequirement
    19  	}
    20  	NewDEAApplicationRequirementStub        func(name string) requirements.DEAApplicationRequirement
    21  	newDEAApplicationRequirementMutex       sync.RWMutex
    22  	newDEAApplicationRequirementArgsForCall []struct {
    23  		name string
    24  	}
    25  	newDEAApplicationRequirementReturns struct {
    26  		result1 requirements.DEAApplicationRequirement
    27  	}
    28  	NewDiegoApplicationRequirementStub        func(name string) requirements.DiegoApplicationRequirement
    29  	newDiegoApplicationRequirementMutex       sync.RWMutex
    30  	newDiegoApplicationRequirementArgsForCall []struct {
    31  		name string
    32  	}
    33  	newDiegoApplicationRequirementReturns struct {
    34  		result1 requirements.DiegoApplicationRequirement
    35  	}
    36  	NewServiceInstanceRequirementStub        func(name string) requirements.ServiceInstanceRequirement
    37  	newServiceInstanceRequirementMutex       sync.RWMutex
    38  	newServiceInstanceRequirementArgsForCall []struct {
    39  		name string
    40  	}
    41  	newServiceInstanceRequirementReturns struct {
    42  		result1 requirements.ServiceInstanceRequirement
    43  	}
    44  	NewLoginRequirementStub        func() requirements.Requirement
    45  	newLoginRequirementMutex       sync.RWMutex
    46  	newLoginRequirementArgsForCall []struct{}
    47  	newLoginRequirementReturns     struct {
    48  		result1 requirements.Requirement
    49  	}
    50  	NewRoutingAPIRequirementStub        func() requirements.Requirement
    51  	newRoutingAPIRequirementMutex       sync.RWMutex
    52  	newRoutingAPIRequirementArgsForCall []struct{}
    53  	newRoutingAPIRequirementReturns     struct {
    54  		result1 requirements.Requirement
    55  	}
    56  	NewSpaceRequirementStub        func(name string) requirements.SpaceRequirement
    57  	newSpaceRequirementMutex       sync.RWMutex
    58  	newSpaceRequirementArgsForCall []struct {
    59  		name string
    60  	}
    61  	newSpaceRequirementReturns struct {
    62  		result1 requirements.SpaceRequirement
    63  	}
    64  	NewTargetedSpaceRequirementStub        func() requirements.Requirement
    65  	newTargetedSpaceRequirementMutex       sync.RWMutex
    66  	newTargetedSpaceRequirementArgsForCall []struct{}
    67  	newTargetedSpaceRequirementReturns     struct {
    68  		result1 requirements.Requirement
    69  	}
    70  	NewTargetedOrgRequirementStub        func() requirements.TargetedOrgRequirement
    71  	newTargetedOrgRequirementMutex       sync.RWMutex
    72  	newTargetedOrgRequirementArgsForCall []struct{}
    73  	newTargetedOrgRequirementReturns     struct {
    74  		result1 requirements.TargetedOrgRequirement
    75  	}
    76  	NewOrganizationRequirementStub        func(name string) requirements.OrganizationRequirement
    77  	newOrganizationRequirementMutex       sync.RWMutex
    78  	newOrganizationRequirementArgsForCall []struct {
    79  		name string
    80  	}
    81  	newOrganizationRequirementReturns struct {
    82  		result1 requirements.OrganizationRequirement
    83  	}
    84  	NewDomainRequirementStub        func(name string) requirements.DomainRequirement
    85  	newDomainRequirementMutex       sync.RWMutex
    86  	newDomainRequirementArgsForCall []struct {
    87  		name string
    88  	}
    89  	newDomainRequirementReturns struct {
    90  		result1 requirements.DomainRequirement
    91  	}
    92  	NewUserRequirementStub        func(username string, wantGUID bool) requirements.UserRequirement
    93  	newUserRequirementMutex       sync.RWMutex
    94  	newUserRequirementArgsForCall []struct {
    95  		username string
    96  		wantGUID bool
    97  	}
    98  	newUserRequirementReturns struct {
    99  		result1 requirements.UserRequirement
   100  	}
   101  	NewBuildpackRequirementStub        func(buildpack string) requirements.BuildpackRequirement
   102  	newBuildpackRequirementMutex       sync.RWMutex
   103  	newBuildpackRequirementArgsForCall []struct {
   104  		buildpack string
   105  	}
   106  	newBuildpackRequirementReturns struct {
   107  		result1 requirements.BuildpackRequirement
   108  	}
   109  	NewAPIEndpointRequirementStub        func() requirements.Requirement
   110  	newAPIEndpointRequirementMutex       sync.RWMutex
   111  	newAPIEndpointRequirementArgsForCall []struct{}
   112  	newAPIEndpointRequirementReturns     struct {
   113  		result1 requirements.Requirement
   114  	}
   115  	NewMinAPIVersionRequirementStub        func(commandName string, requiredVersion semver.Version) requirements.Requirement
   116  	newMinAPIVersionRequirementMutex       sync.RWMutex
   117  	newMinAPIVersionRequirementArgsForCall []struct {
   118  		commandName     string
   119  		requiredVersion semver.Version
   120  	}
   121  	newMinAPIVersionRequirementReturns struct {
   122  		result1 requirements.Requirement
   123  	}
   124  	NewMaxAPIVersionRequirementStub        func(commandName string, maximumVersion semver.Version) requirements.Requirement
   125  	newMaxAPIVersionRequirementMutex       sync.RWMutex
   126  	newMaxAPIVersionRequirementArgsForCall []struct {
   127  		commandName    string
   128  		maximumVersion semver.Version
   129  	}
   130  	newMaxAPIVersionRequirementReturns struct {
   131  		result1 requirements.Requirement
   132  	}
   133  	NewUsageRequirementStub        func(requirements.Usable, string, func() bool) requirements.Requirement
   134  	newUsageRequirementMutex       sync.RWMutex
   135  	newUsageRequirementArgsForCall []struct {
   136  		arg1 requirements.Usable
   137  		arg2 string
   138  		arg3 func() bool
   139  	}
   140  	newUsageRequirementReturns struct {
   141  		result1 requirements.Requirement
   142  	}
   143  	NewNumberArgumentsStub        func([]string, ...string) requirements.Requirement
   144  	newNumberArgumentsMutex       sync.RWMutex
   145  	newNumberArgumentsArgsForCall []struct {
   146  		arg1 []string
   147  		arg2 []string
   148  	}
   149  	newNumberArgumentsReturns struct {
   150  		result1 requirements.Requirement
   151  	}
   152  	invocations      map[string][][]interface{}
   153  	invocationsMutex sync.RWMutex
   154  }
   155  
   156  func (fake *FakeFactory) NewApplicationRequirement(name string) requirements.ApplicationRequirement {
   157  	fake.newApplicationRequirementMutex.Lock()
   158  	fake.newApplicationRequirementArgsForCall = append(fake.newApplicationRequirementArgsForCall, struct {
   159  		name string
   160  	}{name})
   161  	fake.recordInvocation("NewApplicationRequirement", []interface{}{name})
   162  	fake.newApplicationRequirementMutex.Unlock()
   163  	if fake.NewApplicationRequirementStub != nil {
   164  		return fake.NewApplicationRequirementStub(name)
   165  	} else {
   166  		return fake.newApplicationRequirementReturns.result1
   167  	}
   168  }
   169  
   170  func (fake *FakeFactory) NewApplicationRequirementCallCount() int {
   171  	fake.newApplicationRequirementMutex.RLock()
   172  	defer fake.newApplicationRequirementMutex.RUnlock()
   173  	return len(fake.newApplicationRequirementArgsForCall)
   174  }
   175  
   176  func (fake *FakeFactory) NewApplicationRequirementArgsForCall(i int) string {
   177  	fake.newApplicationRequirementMutex.RLock()
   178  	defer fake.newApplicationRequirementMutex.RUnlock()
   179  	return fake.newApplicationRequirementArgsForCall[i].name
   180  }
   181  
   182  func (fake *FakeFactory) NewApplicationRequirementReturns(result1 requirements.ApplicationRequirement) {
   183  	fake.NewApplicationRequirementStub = nil
   184  	fake.newApplicationRequirementReturns = struct {
   185  		result1 requirements.ApplicationRequirement
   186  	}{result1}
   187  }
   188  
   189  func (fake *FakeFactory) NewDEAApplicationRequirement(name string) requirements.DEAApplicationRequirement {
   190  	fake.newDEAApplicationRequirementMutex.Lock()
   191  	fake.newDEAApplicationRequirementArgsForCall = append(fake.newDEAApplicationRequirementArgsForCall, struct {
   192  		name string
   193  	}{name})
   194  	fake.recordInvocation("NewDEAApplicationRequirement", []interface{}{name})
   195  	fake.newDEAApplicationRequirementMutex.Unlock()
   196  	if fake.NewDEAApplicationRequirementStub != nil {
   197  		return fake.NewDEAApplicationRequirementStub(name)
   198  	} else {
   199  		return fake.newDEAApplicationRequirementReturns.result1
   200  	}
   201  }
   202  
   203  func (fake *FakeFactory) NewDEAApplicationRequirementCallCount() int {
   204  	fake.newDEAApplicationRequirementMutex.RLock()
   205  	defer fake.newDEAApplicationRequirementMutex.RUnlock()
   206  	return len(fake.newDEAApplicationRequirementArgsForCall)
   207  }
   208  
   209  func (fake *FakeFactory) NewDEAApplicationRequirementArgsForCall(i int) string {
   210  	fake.newDEAApplicationRequirementMutex.RLock()
   211  	defer fake.newDEAApplicationRequirementMutex.RUnlock()
   212  	return fake.newDEAApplicationRequirementArgsForCall[i].name
   213  }
   214  
   215  func (fake *FakeFactory) NewDEAApplicationRequirementReturns(result1 requirements.DEAApplicationRequirement) {
   216  	fake.NewDEAApplicationRequirementStub = nil
   217  	fake.newDEAApplicationRequirementReturns = struct {
   218  		result1 requirements.DEAApplicationRequirement
   219  	}{result1}
   220  }
   221  
   222  func (fake *FakeFactory) NewDiegoApplicationRequirement(name string) requirements.DiegoApplicationRequirement {
   223  	fake.newDiegoApplicationRequirementMutex.Lock()
   224  	fake.newDiegoApplicationRequirementArgsForCall = append(fake.newDiegoApplicationRequirementArgsForCall, struct {
   225  		name string
   226  	}{name})
   227  	fake.recordInvocation("NewDiegoApplicationRequirement", []interface{}{name})
   228  	fake.newDiegoApplicationRequirementMutex.Unlock()
   229  	if fake.NewDiegoApplicationRequirementStub != nil {
   230  		return fake.NewDiegoApplicationRequirementStub(name)
   231  	} else {
   232  		return fake.newDiegoApplicationRequirementReturns.result1
   233  	}
   234  }
   235  
   236  func (fake *FakeFactory) NewDiegoApplicationRequirementCallCount() int {
   237  	fake.newDiegoApplicationRequirementMutex.RLock()
   238  	defer fake.newDiegoApplicationRequirementMutex.RUnlock()
   239  	return len(fake.newDiegoApplicationRequirementArgsForCall)
   240  }
   241  
   242  func (fake *FakeFactory) NewDiegoApplicationRequirementArgsForCall(i int) string {
   243  	fake.newDiegoApplicationRequirementMutex.RLock()
   244  	defer fake.newDiegoApplicationRequirementMutex.RUnlock()
   245  	return fake.newDiegoApplicationRequirementArgsForCall[i].name
   246  }
   247  
   248  func (fake *FakeFactory) NewDiegoApplicationRequirementReturns(result1 requirements.DiegoApplicationRequirement) {
   249  	fake.NewDiegoApplicationRequirementStub = nil
   250  	fake.newDiegoApplicationRequirementReturns = struct {
   251  		result1 requirements.DiegoApplicationRequirement
   252  	}{result1}
   253  }
   254  
   255  func (fake *FakeFactory) NewServiceInstanceRequirement(name string) requirements.ServiceInstanceRequirement {
   256  	fake.newServiceInstanceRequirementMutex.Lock()
   257  	fake.newServiceInstanceRequirementArgsForCall = append(fake.newServiceInstanceRequirementArgsForCall, struct {
   258  		name string
   259  	}{name})
   260  	fake.recordInvocation("NewServiceInstanceRequirement", []interface{}{name})
   261  	fake.newServiceInstanceRequirementMutex.Unlock()
   262  	if fake.NewServiceInstanceRequirementStub != nil {
   263  		return fake.NewServiceInstanceRequirementStub(name)
   264  	} else {
   265  		return fake.newServiceInstanceRequirementReturns.result1
   266  	}
   267  }
   268  
   269  func (fake *FakeFactory) NewServiceInstanceRequirementCallCount() int {
   270  	fake.newServiceInstanceRequirementMutex.RLock()
   271  	defer fake.newServiceInstanceRequirementMutex.RUnlock()
   272  	return len(fake.newServiceInstanceRequirementArgsForCall)
   273  }
   274  
   275  func (fake *FakeFactory) NewServiceInstanceRequirementArgsForCall(i int) string {
   276  	fake.newServiceInstanceRequirementMutex.RLock()
   277  	defer fake.newServiceInstanceRequirementMutex.RUnlock()
   278  	return fake.newServiceInstanceRequirementArgsForCall[i].name
   279  }
   280  
   281  func (fake *FakeFactory) NewServiceInstanceRequirementReturns(result1 requirements.ServiceInstanceRequirement) {
   282  	fake.NewServiceInstanceRequirementStub = nil
   283  	fake.newServiceInstanceRequirementReturns = struct {
   284  		result1 requirements.ServiceInstanceRequirement
   285  	}{result1}
   286  }
   287  
   288  func (fake *FakeFactory) NewLoginRequirement() requirements.Requirement {
   289  	fake.newLoginRequirementMutex.Lock()
   290  	fake.newLoginRequirementArgsForCall = append(fake.newLoginRequirementArgsForCall, struct{}{})
   291  	fake.recordInvocation("NewLoginRequirement", []interface{}{})
   292  	fake.newLoginRequirementMutex.Unlock()
   293  	if fake.NewLoginRequirementStub != nil {
   294  		return fake.NewLoginRequirementStub()
   295  	} else {
   296  		return fake.newLoginRequirementReturns.result1
   297  	}
   298  }
   299  
   300  func (fake *FakeFactory) NewLoginRequirementCallCount() int {
   301  	fake.newLoginRequirementMutex.RLock()
   302  	defer fake.newLoginRequirementMutex.RUnlock()
   303  	return len(fake.newLoginRequirementArgsForCall)
   304  }
   305  
   306  func (fake *FakeFactory) NewLoginRequirementReturns(result1 requirements.Requirement) {
   307  	fake.NewLoginRequirementStub = nil
   308  	fake.newLoginRequirementReturns = struct {
   309  		result1 requirements.Requirement
   310  	}{result1}
   311  }
   312  
   313  func (fake *FakeFactory) NewRoutingAPIRequirement() requirements.Requirement {
   314  	fake.newRoutingAPIRequirementMutex.Lock()
   315  	fake.newRoutingAPIRequirementArgsForCall = append(fake.newRoutingAPIRequirementArgsForCall, struct{}{})
   316  	fake.recordInvocation("NewRoutingAPIRequirement", []interface{}{})
   317  	fake.newRoutingAPIRequirementMutex.Unlock()
   318  	if fake.NewRoutingAPIRequirementStub != nil {
   319  		return fake.NewRoutingAPIRequirementStub()
   320  	} else {
   321  		return fake.newRoutingAPIRequirementReturns.result1
   322  	}
   323  }
   324  
   325  func (fake *FakeFactory) NewRoutingAPIRequirementCallCount() int {
   326  	fake.newRoutingAPIRequirementMutex.RLock()
   327  	defer fake.newRoutingAPIRequirementMutex.RUnlock()
   328  	return len(fake.newRoutingAPIRequirementArgsForCall)
   329  }
   330  
   331  func (fake *FakeFactory) NewRoutingAPIRequirementReturns(result1 requirements.Requirement) {
   332  	fake.NewRoutingAPIRequirementStub = nil
   333  	fake.newRoutingAPIRequirementReturns = struct {
   334  		result1 requirements.Requirement
   335  	}{result1}
   336  }
   337  
   338  func (fake *FakeFactory) NewSpaceRequirement(name string) requirements.SpaceRequirement {
   339  	fake.newSpaceRequirementMutex.Lock()
   340  	fake.newSpaceRequirementArgsForCall = append(fake.newSpaceRequirementArgsForCall, struct {
   341  		name string
   342  	}{name})
   343  	fake.recordInvocation("NewSpaceRequirement", []interface{}{name})
   344  	fake.newSpaceRequirementMutex.Unlock()
   345  	if fake.NewSpaceRequirementStub != nil {
   346  		return fake.NewSpaceRequirementStub(name)
   347  	} else {
   348  		return fake.newSpaceRequirementReturns.result1
   349  	}
   350  }
   351  
   352  func (fake *FakeFactory) NewSpaceRequirementCallCount() int {
   353  	fake.newSpaceRequirementMutex.RLock()
   354  	defer fake.newSpaceRequirementMutex.RUnlock()
   355  	return len(fake.newSpaceRequirementArgsForCall)
   356  }
   357  
   358  func (fake *FakeFactory) NewSpaceRequirementArgsForCall(i int) string {
   359  	fake.newSpaceRequirementMutex.RLock()
   360  	defer fake.newSpaceRequirementMutex.RUnlock()
   361  	return fake.newSpaceRequirementArgsForCall[i].name
   362  }
   363  
   364  func (fake *FakeFactory) NewSpaceRequirementReturns(result1 requirements.SpaceRequirement) {
   365  	fake.NewSpaceRequirementStub = nil
   366  	fake.newSpaceRequirementReturns = struct {
   367  		result1 requirements.SpaceRequirement
   368  	}{result1}
   369  }
   370  
   371  func (fake *FakeFactory) NewTargetedSpaceRequirement() requirements.Requirement {
   372  	fake.newTargetedSpaceRequirementMutex.Lock()
   373  	fake.newTargetedSpaceRequirementArgsForCall = append(fake.newTargetedSpaceRequirementArgsForCall, struct{}{})
   374  	fake.recordInvocation("NewTargetedSpaceRequirement", []interface{}{})
   375  	fake.newTargetedSpaceRequirementMutex.Unlock()
   376  	if fake.NewTargetedSpaceRequirementStub != nil {
   377  		return fake.NewTargetedSpaceRequirementStub()
   378  	} else {
   379  		return fake.newTargetedSpaceRequirementReturns.result1
   380  	}
   381  }
   382  
   383  func (fake *FakeFactory) NewTargetedSpaceRequirementCallCount() int {
   384  	fake.newTargetedSpaceRequirementMutex.RLock()
   385  	defer fake.newTargetedSpaceRequirementMutex.RUnlock()
   386  	return len(fake.newTargetedSpaceRequirementArgsForCall)
   387  }
   388  
   389  func (fake *FakeFactory) NewTargetedSpaceRequirementReturns(result1 requirements.Requirement) {
   390  	fake.NewTargetedSpaceRequirementStub = nil
   391  	fake.newTargetedSpaceRequirementReturns = struct {
   392  		result1 requirements.Requirement
   393  	}{result1}
   394  }
   395  
   396  func (fake *FakeFactory) NewTargetedOrgRequirement() requirements.TargetedOrgRequirement {
   397  	fake.newTargetedOrgRequirementMutex.Lock()
   398  	fake.newTargetedOrgRequirementArgsForCall = append(fake.newTargetedOrgRequirementArgsForCall, struct{}{})
   399  	fake.recordInvocation("NewTargetedOrgRequirement", []interface{}{})
   400  	fake.newTargetedOrgRequirementMutex.Unlock()
   401  	if fake.NewTargetedOrgRequirementStub != nil {
   402  		return fake.NewTargetedOrgRequirementStub()
   403  	} else {
   404  		return fake.newTargetedOrgRequirementReturns.result1
   405  	}
   406  }
   407  
   408  func (fake *FakeFactory) NewTargetedOrgRequirementCallCount() int {
   409  	fake.newTargetedOrgRequirementMutex.RLock()
   410  	defer fake.newTargetedOrgRequirementMutex.RUnlock()
   411  	return len(fake.newTargetedOrgRequirementArgsForCall)
   412  }
   413  
   414  func (fake *FakeFactory) NewTargetedOrgRequirementReturns(result1 requirements.TargetedOrgRequirement) {
   415  	fake.NewTargetedOrgRequirementStub = nil
   416  	fake.newTargetedOrgRequirementReturns = struct {
   417  		result1 requirements.TargetedOrgRequirement
   418  	}{result1}
   419  }
   420  
   421  func (fake *FakeFactory) NewOrganizationRequirement(name string) requirements.OrganizationRequirement {
   422  	fake.newOrganizationRequirementMutex.Lock()
   423  	fake.newOrganizationRequirementArgsForCall = append(fake.newOrganizationRequirementArgsForCall, struct {
   424  		name string
   425  	}{name})
   426  	fake.recordInvocation("NewOrganizationRequirement", []interface{}{name})
   427  	fake.newOrganizationRequirementMutex.Unlock()
   428  	if fake.NewOrganizationRequirementStub != nil {
   429  		return fake.NewOrganizationRequirementStub(name)
   430  	} else {
   431  		return fake.newOrganizationRequirementReturns.result1
   432  	}
   433  }
   434  
   435  func (fake *FakeFactory) NewOrganizationRequirementCallCount() int {
   436  	fake.newOrganizationRequirementMutex.RLock()
   437  	defer fake.newOrganizationRequirementMutex.RUnlock()
   438  	return len(fake.newOrganizationRequirementArgsForCall)
   439  }
   440  
   441  func (fake *FakeFactory) NewOrganizationRequirementArgsForCall(i int) string {
   442  	fake.newOrganizationRequirementMutex.RLock()
   443  	defer fake.newOrganizationRequirementMutex.RUnlock()
   444  	return fake.newOrganizationRequirementArgsForCall[i].name
   445  }
   446  
   447  func (fake *FakeFactory) NewOrganizationRequirementReturns(result1 requirements.OrganizationRequirement) {
   448  	fake.NewOrganizationRequirementStub = nil
   449  	fake.newOrganizationRequirementReturns = struct {
   450  		result1 requirements.OrganizationRequirement
   451  	}{result1}
   452  }
   453  
   454  func (fake *FakeFactory) NewDomainRequirement(name string) requirements.DomainRequirement {
   455  	fake.newDomainRequirementMutex.Lock()
   456  	fake.newDomainRequirementArgsForCall = append(fake.newDomainRequirementArgsForCall, struct {
   457  		name string
   458  	}{name})
   459  	fake.recordInvocation("NewDomainRequirement", []interface{}{name})
   460  	fake.newDomainRequirementMutex.Unlock()
   461  	if fake.NewDomainRequirementStub != nil {
   462  		return fake.NewDomainRequirementStub(name)
   463  	} else {
   464  		return fake.newDomainRequirementReturns.result1
   465  	}
   466  }
   467  
   468  func (fake *FakeFactory) NewDomainRequirementCallCount() int {
   469  	fake.newDomainRequirementMutex.RLock()
   470  	defer fake.newDomainRequirementMutex.RUnlock()
   471  	return len(fake.newDomainRequirementArgsForCall)
   472  }
   473  
   474  func (fake *FakeFactory) NewDomainRequirementArgsForCall(i int) string {
   475  	fake.newDomainRequirementMutex.RLock()
   476  	defer fake.newDomainRequirementMutex.RUnlock()
   477  	return fake.newDomainRequirementArgsForCall[i].name
   478  }
   479  
   480  func (fake *FakeFactory) NewDomainRequirementReturns(result1 requirements.DomainRequirement) {
   481  	fake.NewDomainRequirementStub = nil
   482  	fake.newDomainRequirementReturns = struct {
   483  		result1 requirements.DomainRequirement
   484  	}{result1}
   485  }
   486  
   487  func (fake *FakeFactory) NewUserRequirement(username string, wantGUID bool) requirements.UserRequirement {
   488  	fake.newUserRequirementMutex.Lock()
   489  	fake.newUserRequirementArgsForCall = append(fake.newUserRequirementArgsForCall, struct {
   490  		username string
   491  		wantGUID bool
   492  	}{username, wantGUID})
   493  	fake.recordInvocation("NewUserRequirement", []interface{}{username, wantGUID})
   494  	fake.newUserRequirementMutex.Unlock()
   495  	if fake.NewUserRequirementStub != nil {
   496  		return fake.NewUserRequirementStub(username, wantGUID)
   497  	} else {
   498  		return fake.newUserRequirementReturns.result1
   499  	}
   500  }
   501  
   502  func (fake *FakeFactory) NewUserRequirementCallCount() int {
   503  	fake.newUserRequirementMutex.RLock()
   504  	defer fake.newUserRequirementMutex.RUnlock()
   505  	return len(fake.newUserRequirementArgsForCall)
   506  }
   507  
   508  func (fake *FakeFactory) NewUserRequirementArgsForCall(i int) (string, bool) {
   509  	fake.newUserRequirementMutex.RLock()
   510  	defer fake.newUserRequirementMutex.RUnlock()
   511  	return fake.newUserRequirementArgsForCall[i].username, fake.newUserRequirementArgsForCall[i].wantGUID
   512  }
   513  
   514  func (fake *FakeFactory) NewUserRequirementReturns(result1 requirements.UserRequirement) {
   515  	fake.NewUserRequirementStub = nil
   516  	fake.newUserRequirementReturns = struct {
   517  		result1 requirements.UserRequirement
   518  	}{result1}
   519  }
   520  
   521  func (fake *FakeFactory) NewBuildpackRequirement(buildpack string) requirements.BuildpackRequirement {
   522  	fake.newBuildpackRequirementMutex.Lock()
   523  	fake.newBuildpackRequirementArgsForCall = append(fake.newBuildpackRequirementArgsForCall, struct {
   524  		buildpack string
   525  	}{buildpack})
   526  	fake.recordInvocation("NewBuildpackRequirement", []interface{}{buildpack})
   527  	fake.newBuildpackRequirementMutex.Unlock()
   528  	if fake.NewBuildpackRequirementStub != nil {
   529  		return fake.NewBuildpackRequirementStub(buildpack)
   530  	} else {
   531  		return fake.newBuildpackRequirementReturns.result1
   532  	}
   533  }
   534  
   535  func (fake *FakeFactory) NewBuildpackRequirementCallCount() int {
   536  	fake.newBuildpackRequirementMutex.RLock()
   537  	defer fake.newBuildpackRequirementMutex.RUnlock()
   538  	return len(fake.newBuildpackRequirementArgsForCall)
   539  }
   540  
   541  func (fake *FakeFactory) NewBuildpackRequirementArgsForCall(i int) string {
   542  	fake.newBuildpackRequirementMutex.RLock()
   543  	defer fake.newBuildpackRequirementMutex.RUnlock()
   544  	return fake.newBuildpackRequirementArgsForCall[i].buildpack
   545  }
   546  
   547  func (fake *FakeFactory) NewBuildpackRequirementReturns(result1 requirements.BuildpackRequirement) {
   548  	fake.NewBuildpackRequirementStub = nil
   549  	fake.newBuildpackRequirementReturns = struct {
   550  		result1 requirements.BuildpackRequirement
   551  	}{result1}
   552  }
   553  
   554  func (fake *FakeFactory) NewAPIEndpointRequirement() requirements.Requirement {
   555  	fake.newAPIEndpointRequirementMutex.Lock()
   556  	fake.newAPIEndpointRequirementArgsForCall = append(fake.newAPIEndpointRequirementArgsForCall, struct{}{})
   557  	fake.recordInvocation("NewAPIEndpointRequirement", []interface{}{})
   558  	fake.newAPIEndpointRequirementMutex.Unlock()
   559  	if fake.NewAPIEndpointRequirementStub != nil {
   560  		return fake.NewAPIEndpointRequirementStub()
   561  	} else {
   562  		return fake.newAPIEndpointRequirementReturns.result1
   563  	}
   564  }
   565  
   566  func (fake *FakeFactory) NewAPIEndpointRequirementCallCount() int {
   567  	fake.newAPIEndpointRequirementMutex.RLock()
   568  	defer fake.newAPIEndpointRequirementMutex.RUnlock()
   569  	return len(fake.newAPIEndpointRequirementArgsForCall)
   570  }
   571  
   572  func (fake *FakeFactory) NewAPIEndpointRequirementReturns(result1 requirements.Requirement) {
   573  	fake.NewAPIEndpointRequirementStub = nil
   574  	fake.newAPIEndpointRequirementReturns = struct {
   575  		result1 requirements.Requirement
   576  	}{result1}
   577  }
   578  
   579  func (fake *FakeFactory) NewMinAPIVersionRequirement(commandName string, requiredVersion semver.Version) requirements.Requirement {
   580  	fake.newMinAPIVersionRequirementMutex.Lock()
   581  	fake.newMinAPIVersionRequirementArgsForCall = append(fake.newMinAPIVersionRequirementArgsForCall, struct {
   582  		commandName     string
   583  		requiredVersion semver.Version
   584  	}{commandName, requiredVersion})
   585  	fake.recordInvocation("NewMinAPIVersionRequirement", []interface{}{commandName, requiredVersion})
   586  	fake.newMinAPIVersionRequirementMutex.Unlock()
   587  	if fake.NewMinAPIVersionRequirementStub != nil {
   588  		return fake.NewMinAPIVersionRequirementStub(commandName, requiredVersion)
   589  	} else {
   590  		return fake.newMinAPIVersionRequirementReturns.result1
   591  	}
   592  }
   593  
   594  func (fake *FakeFactory) NewMinAPIVersionRequirementCallCount() int {
   595  	fake.newMinAPIVersionRequirementMutex.RLock()
   596  	defer fake.newMinAPIVersionRequirementMutex.RUnlock()
   597  	return len(fake.newMinAPIVersionRequirementArgsForCall)
   598  }
   599  
   600  func (fake *FakeFactory) NewMinAPIVersionRequirementArgsForCall(i int) (string, semver.Version) {
   601  	fake.newMinAPIVersionRequirementMutex.RLock()
   602  	defer fake.newMinAPIVersionRequirementMutex.RUnlock()
   603  	return fake.newMinAPIVersionRequirementArgsForCall[i].commandName, fake.newMinAPIVersionRequirementArgsForCall[i].requiredVersion
   604  }
   605  
   606  func (fake *FakeFactory) NewMinAPIVersionRequirementReturns(result1 requirements.Requirement) {
   607  	fake.NewMinAPIVersionRequirementStub = nil
   608  	fake.newMinAPIVersionRequirementReturns = struct {
   609  		result1 requirements.Requirement
   610  	}{result1}
   611  }
   612  
   613  func (fake *FakeFactory) NewMaxAPIVersionRequirement(commandName string, maximumVersion semver.Version) requirements.Requirement {
   614  	fake.newMaxAPIVersionRequirementMutex.Lock()
   615  	fake.newMaxAPIVersionRequirementArgsForCall = append(fake.newMaxAPIVersionRequirementArgsForCall, struct {
   616  		commandName    string
   617  		maximumVersion semver.Version
   618  	}{commandName, maximumVersion})
   619  	fake.recordInvocation("NewMaxAPIVersionRequirement", []interface{}{commandName, maximumVersion})
   620  	fake.newMaxAPIVersionRequirementMutex.Unlock()
   621  	if fake.NewMaxAPIVersionRequirementStub != nil {
   622  		return fake.NewMaxAPIVersionRequirementStub(commandName, maximumVersion)
   623  	} else {
   624  		return fake.newMaxAPIVersionRequirementReturns.result1
   625  	}
   626  }
   627  
   628  func (fake *FakeFactory) NewMaxAPIVersionRequirementCallCount() int {
   629  	fake.newMaxAPIVersionRequirementMutex.RLock()
   630  	defer fake.newMaxAPIVersionRequirementMutex.RUnlock()
   631  	return len(fake.newMaxAPIVersionRequirementArgsForCall)
   632  }
   633  
   634  func (fake *FakeFactory) NewMaxAPIVersionRequirementArgsForCall(i int) (string, semver.Version) {
   635  	fake.newMaxAPIVersionRequirementMutex.RLock()
   636  	defer fake.newMaxAPIVersionRequirementMutex.RUnlock()
   637  	return fake.newMaxAPIVersionRequirementArgsForCall[i].commandName, fake.newMaxAPIVersionRequirementArgsForCall[i].maximumVersion
   638  }
   639  
   640  func (fake *FakeFactory) NewMaxAPIVersionRequirementReturns(result1 requirements.Requirement) {
   641  	fake.NewMaxAPIVersionRequirementStub = nil
   642  	fake.newMaxAPIVersionRequirementReturns = struct {
   643  		result1 requirements.Requirement
   644  	}{result1}
   645  }
   646  
   647  func (fake *FakeFactory) NewUsageRequirement(arg1 requirements.Usable, arg2 string, arg3 func() bool) requirements.Requirement {
   648  	fake.newUsageRequirementMutex.Lock()
   649  	fake.newUsageRequirementArgsForCall = append(fake.newUsageRequirementArgsForCall, struct {
   650  		arg1 requirements.Usable
   651  		arg2 string
   652  		arg3 func() bool
   653  	}{arg1, arg2, arg3})
   654  	fake.recordInvocation("NewUsageRequirement", []interface{}{arg1, arg2, arg3})
   655  	fake.newUsageRequirementMutex.Unlock()
   656  	if fake.NewUsageRequirementStub != nil {
   657  		return fake.NewUsageRequirementStub(arg1, arg2, arg3)
   658  	} else {
   659  		return fake.newUsageRequirementReturns.result1
   660  	}
   661  }
   662  
   663  func (fake *FakeFactory) NewUsageRequirementCallCount() int {
   664  	fake.newUsageRequirementMutex.RLock()
   665  	defer fake.newUsageRequirementMutex.RUnlock()
   666  	return len(fake.newUsageRequirementArgsForCall)
   667  }
   668  
   669  func (fake *FakeFactory) NewUsageRequirementArgsForCall(i int) (requirements.Usable, string, func() bool) {
   670  	fake.newUsageRequirementMutex.RLock()
   671  	defer fake.newUsageRequirementMutex.RUnlock()
   672  	return fake.newUsageRequirementArgsForCall[i].arg1, fake.newUsageRequirementArgsForCall[i].arg2, fake.newUsageRequirementArgsForCall[i].arg3
   673  }
   674  
   675  func (fake *FakeFactory) NewUsageRequirementReturns(result1 requirements.Requirement) {
   676  	fake.NewUsageRequirementStub = nil
   677  	fake.newUsageRequirementReturns = struct {
   678  		result1 requirements.Requirement
   679  	}{result1}
   680  }
   681  
   682  func (fake *FakeFactory) NewNumberArguments(arg1 []string, arg2 ...string) requirements.Requirement {
   683  	var arg1Copy []string
   684  	if arg1 != nil {
   685  		arg1Copy = make([]string, len(arg1))
   686  		copy(arg1Copy, arg1)
   687  	}
   688  	fake.newNumberArgumentsMutex.Lock()
   689  	fake.newNumberArgumentsArgsForCall = append(fake.newNumberArgumentsArgsForCall, struct {
   690  		arg1 []string
   691  		arg2 []string
   692  	}{arg1Copy, arg2})
   693  	fake.recordInvocation("NewNumberArguments", []interface{}{arg1Copy, arg2})
   694  	fake.newNumberArgumentsMutex.Unlock()
   695  	if fake.NewNumberArgumentsStub != nil {
   696  		return fake.NewNumberArgumentsStub(arg1, arg2...)
   697  	} else {
   698  		return fake.newNumberArgumentsReturns.result1
   699  	}
   700  }
   701  
   702  func (fake *FakeFactory) NewNumberArgumentsCallCount() int {
   703  	fake.newNumberArgumentsMutex.RLock()
   704  	defer fake.newNumberArgumentsMutex.RUnlock()
   705  	return len(fake.newNumberArgumentsArgsForCall)
   706  }
   707  
   708  func (fake *FakeFactory) NewNumberArgumentsArgsForCall(i int) ([]string, []string) {
   709  	fake.newNumberArgumentsMutex.RLock()
   710  	defer fake.newNumberArgumentsMutex.RUnlock()
   711  	return fake.newNumberArgumentsArgsForCall[i].arg1, fake.newNumberArgumentsArgsForCall[i].arg2
   712  }
   713  
   714  func (fake *FakeFactory) NewNumberArgumentsReturns(result1 requirements.Requirement) {
   715  	fake.NewNumberArgumentsStub = nil
   716  	fake.newNumberArgumentsReturns = struct {
   717  		result1 requirements.Requirement
   718  	}{result1}
   719  }
   720  
   721  func (fake *FakeFactory) Invocations() map[string][][]interface{} {
   722  	fake.invocationsMutex.RLock()
   723  	defer fake.invocationsMutex.RUnlock()
   724  	fake.newApplicationRequirementMutex.RLock()
   725  	defer fake.newApplicationRequirementMutex.RUnlock()
   726  	fake.newDEAApplicationRequirementMutex.RLock()
   727  	defer fake.newDEAApplicationRequirementMutex.RUnlock()
   728  	fake.newDiegoApplicationRequirementMutex.RLock()
   729  	defer fake.newDiegoApplicationRequirementMutex.RUnlock()
   730  	fake.newServiceInstanceRequirementMutex.RLock()
   731  	defer fake.newServiceInstanceRequirementMutex.RUnlock()
   732  	fake.newLoginRequirementMutex.RLock()
   733  	defer fake.newLoginRequirementMutex.RUnlock()
   734  	fake.newRoutingAPIRequirementMutex.RLock()
   735  	defer fake.newRoutingAPIRequirementMutex.RUnlock()
   736  	fake.newSpaceRequirementMutex.RLock()
   737  	defer fake.newSpaceRequirementMutex.RUnlock()
   738  	fake.newTargetedSpaceRequirementMutex.RLock()
   739  	defer fake.newTargetedSpaceRequirementMutex.RUnlock()
   740  	fake.newTargetedOrgRequirementMutex.RLock()
   741  	defer fake.newTargetedOrgRequirementMutex.RUnlock()
   742  	fake.newOrganizationRequirementMutex.RLock()
   743  	defer fake.newOrganizationRequirementMutex.RUnlock()
   744  	fake.newDomainRequirementMutex.RLock()
   745  	defer fake.newDomainRequirementMutex.RUnlock()
   746  	fake.newUserRequirementMutex.RLock()
   747  	defer fake.newUserRequirementMutex.RUnlock()
   748  	fake.newBuildpackRequirementMutex.RLock()
   749  	defer fake.newBuildpackRequirementMutex.RUnlock()
   750  	fake.newAPIEndpointRequirementMutex.RLock()
   751  	defer fake.newAPIEndpointRequirementMutex.RUnlock()
   752  	fake.newMinAPIVersionRequirementMutex.RLock()
   753  	defer fake.newMinAPIVersionRequirementMutex.RUnlock()
   754  	fake.newMaxAPIVersionRequirementMutex.RLock()
   755  	defer fake.newMaxAPIVersionRequirementMutex.RUnlock()
   756  	fake.newUsageRequirementMutex.RLock()
   757  	defer fake.newUsageRequirementMutex.RUnlock()
   758  	fake.newNumberArgumentsMutex.RLock()
   759  	defer fake.newNumberArgumentsMutex.RUnlock()
   760  	return fake.invocations
   761  }
   762  
   763  func (fake *FakeFactory) recordInvocation(key string, args []interface{}) {
   764  	fake.invocationsMutex.Lock()
   765  	defer fake.invocationsMutex.Unlock()
   766  	if fake.invocations == nil {
   767  		fake.invocations = map[string][][]interface{}{}
   768  	}
   769  	if fake.invocations[key] == nil {
   770  		fake.invocations[key] = [][]interface{}{}
   771  	}
   772  	fake.invocations[key] = append(fake.invocations[key], args)
   773  }
   774  
   775  var _ requirements.Factory = new(FakeFactory)