github.com/asifdxtreme/cli@v6.1.3-0.20150123051144-9ead8700b4ae+incompatible/cf/actors/fakes/fake_service_plan_actor.go (about) 1 // This file was generated by counterfeiter 2 package fakes 3 4 import ( 5 "github.com/cloudfoundry/cli/cf/actors" 6 "sync" 7 ) 8 9 type FakeServicePlanActor struct { 10 FindServiceAccessStub func(string, string) (actors.ServiceAccess, error) 11 findServiceAccessMutex sync.RWMutex 12 findServiceAccessArgsForCall []struct { 13 arg1 string 14 arg2 string 15 } 16 findServiceAccessReturns struct { 17 result1 actors.ServiceAccess 18 result2 error 19 } 20 UpdateAllPlansForServiceStub func(string, bool) (bool, error) 21 updateAllPlansForServiceMutex sync.RWMutex 22 updateAllPlansForServiceArgsForCall []struct { 23 arg1 string 24 arg2 bool 25 } 26 updateAllPlansForServiceReturns struct { 27 result1 bool 28 result2 error 29 } 30 UpdateOrgForServiceStub func(string, string, bool) (bool, error) 31 updateOrgForServiceMutex sync.RWMutex 32 updateOrgForServiceArgsForCall []struct { 33 arg1 string 34 arg2 string 35 arg3 bool 36 } 37 updateOrgForServiceReturns struct { 38 result1 bool 39 result2 error 40 } 41 UpdateSinglePlanForServiceStub func(string, string, bool) (actors.PlanAccess, error) 42 updateSinglePlanForServiceMutex sync.RWMutex 43 updateSinglePlanForServiceArgsForCall []struct { 44 arg1 string 45 arg2 string 46 arg3 bool 47 } 48 updateSinglePlanForServiceReturns struct { 49 result1 actors.PlanAccess 50 result2 error 51 } 52 UpdatePlanAndOrgForServiceStub func(string, string, string, bool) (actors.PlanAccess, error) 53 updatePlanAndOrgForServiceMutex sync.RWMutex 54 updatePlanAndOrgForServiceArgsForCall []struct { 55 arg1 string 56 arg2 string 57 arg3 string 58 arg4 bool 59 } 60 updatePlanAndOrgForServiceReturns struct { 61 result1 actors.PlanAccess 62 result2 error 63 } 64 } 65 66 func (fake *FakeServicePlanActor) FindServiceAccess(arg1 string, arg2 string) (actors.ServiceAccess, error) { 67 fake.findServiceAccessMutex.Lock() 68 defer fake.findServiceAccessMutex.Unlock() 69 fake.findServiceAccessArgsForCall = append(fake.findServiceAccessArgsForCall, struct { 70 arg1 string 71 arg2 string 72 }{arg1, arg2}) 73 if fake.FindServiceAccessStub != nil { 74 return fake.FindServiceAccessStub(arg1, arg2) 75 } else { 76 return fake.findServiceAccessReturns.result1, fake.findServiceAccessReturns.result2 77 } 78 } 79 80 func (fake *FakeServicePlanActor) FindServiceAccessCallCount() int { 81 fake.findServiceAccessMutex.RLock() 82 defer fake.findServiceAccessMutex.RUnlock() 83 return len(fake.findServiceAccessArgsForCall) 84 } 85 86 func (fake *FakeServicePlanActor) FindServiceAccessArgsForCall(i int) (string, string) { 87 fake.findServiceAccessMutex.RLock() 88 defer fake.findServiceAccessMutex.RUnlock() 89 return fake.findServiceAccessArgsForCall[i].arg1, fake.findServiceAccessArgsForCall[i].arg2 90 } 91 92 func (fake *FakeServicePlanActor) FindServiceAccessReturns(result1 actors.ServiceAccess, result2 error) { 93 fake.FindServiceAccessStub = nil 94 fake.findServiceAccessReturns = struct { 95 result1 actors.ServiceAccess 96 result2 error 97 }{result1, result2} 98 } 99 100 func (fake *FakeServicePlanActor) UpdateAllPlansForService(arg1 string, arg2 bool) (bool, error) { 101 fake.updateAllPlansForServiceMutex.Lock() 102 defer fake.updateAllPlansForServiceMutex.Unlock() 103 fake.updateAllPlansForServiceArgsForCall = append(fake.updateAllPlansForServiceArgsForCall, struct { 104 arg1 string 105 arg2 bool 106 }{arg1, arg2}) 107 if fake.UpdateAllPlansForServiceStub != nil { 108 return fake.UpdateAllPlansForServiceStub(arg1, arg2) 109 } else { 110 return fake.updateAllPlansForServiceReturns.result1, fake.updateAllPlansForServiceReturns.result2 111 } 112 } 113 114 func (fake *FakeServicePlanActor) UpdateAllPlansForServiceCallCount() int { 115 fake.updateAllPlansForServiceMutex.RLock() 116 defer fake.updateAllPlansForServiceMutex.RUnlock() 117 return len(fake.updateAllPlansForServiceArgsForCall) 118 } 119 120 func (fake *FakeServicePlanActor) UpdateAllPlansForServiceArgsForCall(i int) (string, bool) { 121 fake.updateAllPlansForServiceMutex.RLock() 122 defer fake.updateAllPlansForServiceMutex.RUnlock() 123 return fake.updateAllPlansForServiceArgsForCall[i].arg1, fake.updateAllPlansForServiceArgsForCall[i].arg2 124 } 125 126 func (fake *FakeServicePlanActor) UpdateAllPlansForServiceReturns(result1 bool, result2 error) { 127 fake.UpdateAllPlansForServiceStub = nil 128 fake.updateAllPlansForServiceReturns = struct { 129 result1 bool 130 result2 error 131 }{result1, result2} 132 } 133 134 func (fake *FakeServicePlanActor) UpdateOrgForService(arg1 string, arg2 string, arg3 bool) (bool, error) { 135 fake.updateOrgForServiceMutex.Lock() 136 defer fake.updateOrgForServiceMutex.Unlock() 137 fake.updateOrgForServiceArgsForCall = append(fake.updateOrgForServiceArgsForCall, struct { 138 arg1 string 139 arg2 string 140 arg3 bool 141 }{arg1, arg2, arg3}) 142 if fake.UpdateOrgForServiceStub != nil { 143 return fake.UpdateOrgForServiceStub(arg1, arg2, arg3) 144 } else { 145 return fake.updateOrgForServiceReturns.result1, fake.updateOrgForServiceReturns.result2 146 } 147 } 148 149 func (fake *FakeServicePlanActor) UpdateOrgForServiceCallCount() int { 150 fake.updateOrgForServiceMutex.RLock() 151 defer fake.updateOrgForServiceMutex.RUnlock() 152 return len(fake.updateOrgForServiceArgsForCall) 153 } 154 155 func (fake *FakeServicePlanActor) UpdateOrgForServiceArgsForCall(i int) (string, string, bool) { 156 fake.updateOrgForServiceMutex.RLock() 157 defer fake.updateOrgForServiceMutex.RUnlock() 158 return fake.updateOrgForServiceArgsForCall[i].arg1, fake.updateOrgForServiceArgsForCall[i].arg2, fake.updateOrgForServiceArgsForCall[i].arg3 159 } 160 161 func (fake *FakeServicePlanActor) UpdateOrgForServiceReturns(result1 bool, result2 error) { 162 fake.UpdateOrgForServiceStub = nil 163 fake.updateOrgForServiceReturns = struct { 164 result1 bool 165 result2 error 166 }{result1, result2} 167 } 168 169 func (fake *FakeServicePlanActor) UpdateSinglePlanForService(arg1 string, arg2 string, arg3 bool) (actors.PlanAccess, error) { 170 fake.updateSinglePlanForServiceMutex.Lock() 171 defer fake.updateSinglePlanForServiceMutex.Unlock() 172 fake.updateSinglePlanForServiceArgsForCall = append(fake.updateSinglePlanForServiceArgsForCall, struct { 173 arg1 string 174 arg2 string 175 arg3 bool 176 }{arg1, arg2, arg3}) 177 if fake.UpdateSinglePlanForServiceStub != nil { 178 return fake.UpdateSinglePlanForServiceStub(arg1, arg2, arg3) 179 } else { 180 return fake.updateSinglePlanForServiceReturns.result1, fake.updateSinglePlanForServiceReturns.result2 181 } 182 } 183 184 func (fake *FakeServicePlanActor) UpdateSinglePlanForServiceCallCount() int { 185 fake.updateSinglePlanForServiceMutex.RLock() 186 defer fake.updateSinglePlanForServiceMutex.RUnlock() 187 return len(fake.updateSinglePlanForServiceArgsForCall) 188 } 189 190 func (fake *FakeServicePlanActor) UpdateSinglePlanForServiceArgsForCall(i int) (string, string, bool) { 191 fake.updateSinglePlanForServiceMutex.RLock() 192 defer fake.updateSinglePlanForServiceMutex.RUnlock() 193 return fake.updateSinglePlanForServiceArgsForCall[i].arg1, fake.updateSinglePlanForServiceArgsForCall[i].arg2, fake.updateSinglePlanForServiceArgsForCall[i].arg3 194 } 195 196 func (fake *FakeServicePlanActor) UpdateSinglePlanForServiceReturns(result1 actors.PlanAccess, result2 error) { 197 fake.UpdateSinglePlanForServiceStub = nil 198 fake.updateSinglePlanForServiceReturns = struct { 199 result1 actors.PlanAccess 200 result2 error 201 }{result1, result2} 202 } 203 204 func (fake *FakeServicePlanActor) UpdatePlanAndOrgForService(arg1 string, arg2 string, arg3 string, arg4 bool) (actors.PlanAccess, error) { 205 fake.updatePlanAndOrgForServiceMutex.Lock() 206 defer fake.updatePlanAndOrgForServiceMutex.Unlock() 207 fake.updatePlanAndOrgForServiceArgsForCall = append(fake.updatePlanAndOrgForServiceArgsForCall, struct { 208 arg1 string 209 arg2 string 210 arg3 string 211 arg4 bool 212 }{arg1, arg2, arg3, arg4}) 213 if fake.UpdatePlanAndOrgForServiceStub != nil { 214 return fake.UpdatePlanAndOrgForServiceStub(arg1, arg2, arg3, arg4) 215 } else { 216 return fake.updatePlanAndOrgForServiceReturns.result1, fake.updatePlanAndOrgForServiceReturns.result2 217 } 218 } 219 220 func (fake *FakeServicePlanActor) UpdatePlanAndOrgForServiceCallCount() int { 221 fake.updatePlanAndOrgForServiceMutex.RLock() 222 defer fake.updatePlanAndOrgForServiceMutex.RUnlock() 223 return len(fake.updatePlanAndOrgForServiceArgsForCall) 224 } 225 226 func (fake *FakeServicePlanActor) UpdatePlanAndOrgForServiceArgsForCall(i int) (string, string, string, bool) { 227 fake.updatePlanAndOrgForServiceMutex.RLock() 228 defer fake.updatePlanAndOrgForServiceMutex.RUnlock() 229 return fake.updatePlanAndOrgForServiceArgsForCall[i].arg1, fake.updatePlanAndOrgForServiceArgsForCall[i].arg2, fake.updatePlanAndOrgForServiceArgsForCall[i].arg3, fake.updatePlanAndOrgForServiceArgsForCall[i].arg4 230 } 231 232 func (fake *FakeServicePlanActor) UpdatePlanAndOrgForServiceReturns(result1 actors.PlanAccess, result2 error) { 233 fake.UpdatePlanAndOrgForServiceStub = nil 234 fake.updatePlanAndOrgForServiceReturns = struct { 235 result1 actors.PlanAccess 236 result2 error 237 }{result1, result2} 238 } 239 240 var _ actors.ServicePlanActor = new(FakeServicePlanActor)