github.com/franc20/ayesa_sap@v7.0.0-beta.28.0.20200124003224-302d4d52fa6c+incompatible/command/v6/v6fakes/fake_v3set_health_check_actor.go (about) 1 // Code generated by counterfeiter. DO NOT EDIT. 2 package v6fakes 3 4 import ( 5 "sync" 6 7 "code.cloudfoundry.org/cli/actor/v3action" 8 "code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant" 9 v6 "code.cloudfoundry.org/cli/command/v6" 10 ) 11 12 type FakeV3SetHealthCheckActor struct { 13 SetApplicationProcessHealthCheckTypeByNameAndSpaceStub func(string, string, constant.HealthCheckType, string, string, int64) (v3action.Application, v3action.Warnings, error) 14 setApplicationProcessHealthCheckTypeByNameAndSpaceMutex sync.RWMutex 15 setApplicationProcessHealthCheckTypeByNameAndSpaceArgsForCall []struct { 16 arg1 string 17 arg2 string 18 arg3 constant.HealthCheckType 19 arg4 string 20 arg5 string 21 arg6 int64 22 } 23 setApplicationProcessHealthCheckTypeByNameAndSpaceReturns struct { 24 result1 v3action.Application 25 result2 v3action.Warnings 26 result3 error 27 } 28 setApplicationProcessHealthCheckTypeByNameAndSpaceReturnsOnCall map[int]struct { 29 result1 v3action.Application 30 result2 v3action.Warnings 31 result3 error 32 } 33 invocations map[string][][]interface{} 34 invocationsMutex sync.RWMutex 35 } 36 37 func (fake *FakeV3SetHealthCheckActor) SetApplicationProcessHealthCheckTypeByNameAndSpace(arg1 string, arg2 string, arg3 constant.HealthCheckType, arg4 string, arg5 string, arg6 int64) (v3action.Application, v3action.Warnings, error) { 38 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Lock() 39 ret, specificReturn := fake.setApplicationProcessHealthCheckTypeByNameAndSpaceReturnsOnCall[len(fake.setApplicationProcessHealthCheckTypeByNameAndSpaceArgsForCall)] 40 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceArgsForCall = append(fake.setApplicationProcessHealthCheckTypeByNameAndSpaceArgsForCall, struct { 41 arg1 string 42 arg2 string 43 arg3 constant.HealthCheckType 44 arg4 string 45 arg5 string 46 arg6 int64 47 }{arg1, arg2, arg3, arg4, arg5, arg6}) 48 fake.recordInvocation("SetApplicationProcessHealthCheckTypeByNameAndSpace", []interface{}{arg1, arg2, arg3, arg4, arg5, arg6}) 49 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Unlock() 50 if fake.SetApplicationProcessHealthCheckTypeByNameAndSpaceStub != nil { 51 return fake.SetApplicationProcessHealthCheckTypeByNameAndSpaceStub(arg1, arg2, arg3, arg4, arg5, arg6) 52 } 53 if specificReturn { 54 return ret.result1, ret.result2, ret.result3 55 } 56 fakeReturns := fake.setApplicationProcessHealthCheckTypeByNameAndSpaceReturns 57 return fakeReturns.result1, fakeReturns.result2, fakeReturns.result3 58 } 59 60 func (fake *FakeV3SetHealthCheckActor) SetApplicationProcessHealthCheckTypeByNameAndSpaceCallCount() int { 61 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.RLock() 62 defer fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.RUnlock() 63 return len(fake.setApplicationProcessHealthCheckTypeByNameAndSpaceArgsForCall) 64 } 65 66 func (fake *FakeV3SetHealthCheckActor) SetApplicationProcessHealthCheckTypeByNameAndSpaceCalls(stub func(string, string, constant.HealthCheckType, string, string, int64) (v3action.Application, v3action.Warnings, error)) { 67 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Lock() 68 defer fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Unlock() 69 fake.SetApplicationProcessHealthCheckTypeByNameAndSpaceStub = stub 70 } 71 72 func (fake *FakeV3SetHealthCheckActor) SetApplicationProcessHealthCheckTypeByNameAndSpaceArgsForCall(i int) (string, string, constant.HealthCheckType, string, string, int64) { 73 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.RLock() 74 defer fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.RUnlock() 75 argsForCall := fake.setApplicationProcessHealthCheckTypeByNameAndSpaceArgsForCall[i] 76 return argsForCall.arg1, argsForCall.arg2, argsForCall.arg3, argsForCall.arg4, argsForCall.arg5, argsForCall.arg6 77 } 78 79 func (fake *FakeV3SetHealthCheckActor) SetApplicationProcessHealthCheckTypeByNameAndSpaceReturns(result1 v3action.Application, result2 v3action.Warnings, result3 error) { 80 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Lock() 81 defer fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Unlock() 82 fake.SetApplicationProcessHealthCheckTypeByNameAndSpaceStub = nil 83 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceReturns = struct { 84 result1 v3action.Application 85 result2 v3action.Warnings 86 result3 error 87 }{result1, result2, result3} 88 } 89 90 func (fake *FakeV3SetHealthCheckActor) SetApplicationProcessHealthCheckTypeByNameAndSpaceReturnsOnCall(i int, result1 v3action.Application, result2 v3action.Warnings, result3 error) { 91 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Lock() 92 defer fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.Unlock() 93 fake.SetApplicationProcessHealthCheckTypeByNameAndSpaceStub = nil 94 if fake.setApplicationProcessHealthCheckTypeByNameAndSpaceReturnsOnCall == nil { 95 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceReturnsOnCall = make(map[int]struct { 96 result1 v3action.Application 97 result2 v3action.Warnings 98 result3 error 99 }) 100 } 101 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceReturnsOnCall[i] = struct { 102 result1 v3action.Application 103 result2 v3action.Warnings 104 result3 error 105 }{result1, result2, result3} 106 } 107 108 func (fake *FakeV3SetHealthCheckActor) Invocations() map[string][][]interface{} { 109 fake.invocationsMutex.RLock() 110 defer fake.invocationsMutex.RUnlock() 111 fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.RLock() 112 defer fake.setApplicationProcessHealthCheckTypeByNameAndSpaceMutex.RUnlock() 113 copiedInvocations := map[string][][]interface{}{} 114 for key, value := range fake.invocations { 115 copiedInvocations[key] = value 116 } 117 return copiedInvocations 118 } 119 120 func (fake *FakeV3SetHealthCheckActor) recordInvocation(key string, args []interface{}) { 121 fake.invocationsMutex.Lock() 122 defer fake.invocationsMutex.Unlock() 123 if fake.invocations == nil { 124 fake.invocations = map[string][][]interface{}{} 125 } 126 if fake.invocations[key] == nil { 127 fake.invocations[key] = [][]interface{}{} 128 } 129 fake.invocations[key] = append(fake.invocations[key], args) 130 } 131 132 var _ v6.V3SetHealthCheckActor = new(FakeV3SetHealthCheckActor)