forked from cloudfoundry-community/cloudfoundry-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_service_actor.go
141 lines (125 loc) · 4.64 KB
/
fake_service_actor.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// This file was generated by counterfeiter
package fakes
import (
"sync"
. "github.com/cloudfoundry/cli/cf/actors"
"github.com/cloudfoundry/cli/cf/models"
)
type FakeServiceActor struct {
FilterBrokersStub func(brokerFlag string, serviceFlag string, orgFlag string) ([]models.ServiceBroker, error)
filterBrokersMutex sync.RWMutex
filterBrokersArgsForCall []struct {
arg1 string
arg2 string
arg3 string
}
filterBrokersReturns struct {
result1 []models.ServiceBroker
result2 error
}
AttachPlansToServiceStub func(models.ServiceOffering) (models.ServiceOffering, error)
attachPlansToServiceMutex sync.RWMutex
attachPlansToServiceArgsForCall []struct {
arg1 models.ServiceOffering
}
attachPlansToServiceReturns struct {
result1 models.ServiceOffering
result2 error
}
AttachOrgsToPlansStub func([]models.ServicePlanFields) ([]models.ServicePlanFields, error)
attachOrgsToPlansMutex sync.RWMutex
attachOrgsToPlansArgsForCall []struct {
arg1 []models.ServicePlanFields
}
attachOrgsToPlansReturns struct {
result1 []models.ServicePlanFields
result2 error
}
}
func (fake *FakeServiceActor) FilterBrokers(arg1 string, arg2 string, arg3 string) ([]models.ServiceBroker, error) {
fake.filterBrokersMutex.Lock()
defer fake.filterBrokersMutex.Unlock()
fake.filterBrokersArgsForCall = append(fake.filterBrokersArgsForCall, struct {
arg1 string
arg2 string
arg3 string
}{arg1, arg2, arg3})
if fake.FilterBrokersStub != nil {
return fake.FilterBrokersStub(arg1, arg2, arg3)
} else {
return fake.filterBrokersReturns.result1, fake.filterBrokersReturns.result2
}
}
func (fake *FakeServiceActor) FilterBrokersCallCount() int {
fake.filterBrokersMutex.RLock()
defer fake.filterBrokersMutex.RUnlock()
return len(fake.filterBrokersArgsForCall)
}
func (fake *FakeServiceActor) FilterBrokersArgsForCall(i int) (string, string, string) {
fake.filterBrokersMutex.RLock()
defer fake.filterBrokersMutex.RUnlock()
return fake.filterBrokersArgsForCall[i].arg1, fake.filterBrokersArgsForCall[i].arg2, fake.filterBrokersArgsForCall[i].arg3
}
func (fake *FakeServiceActor) FilterBrokersReturns(result1 []models.ServiceBroker, result2 error) {
fake.filterBrokersReturns = struct {
result1 []models.ServiceBroker
result2 error
}{result1, result2}
}
func (fake *FakeServiceActor) AttachPlansToService(arg1 models.ServiceOffering) (models.ServiceOffering, error) {
fake.attachPlansToServiceMutex.Lock()
defer fake.attachPlansToServiceMutex.Unlock()
fake.attachPlansToServiceArgsForCall = append(fake.attachPlansToServiceArgsForCall, struct {
arg1 models.ServiceOffering
}{arg1})
if fake.AttachPlansToServiceStub != nil {
return fake.AttachPlansToServiceStub(arg1)
} else {
return fake.attachPlansToServiceReturns.result1, fake.attachPlansToServiceReturns.result2
}
}
func (fake *FakeServiceActor) AttachPlansToServiceCallCount() int {
fake.attachPlansToServiceMutex.RLock()
defer fake.attachPlansToServiceMutex.RUnlock()
return len(fake.attachPlansToServiceArgsForCall)
}
func (fake *FakeServiceActor) AttachPlansToServiceArgsForCall(i int) models.ServiceOffering {
fake.attachPlansToServiceMutex.RLock()
defer fake.attachPlansToServiceMutex.RUnlock()
return fake.attachPlansToServiceArgsForCall[i].arg1
}
func (fake *FakeServiceActor) AttachPlansToServiceReturns(result1 models.ServiceOffering, result2 error) {
fake.attachPlansToServiceReturns = struct {
result1 models.ServiceOffering
result2 error
}{result1, result2}
}
func (fake *FakeServiceActor) AttachOrgsToPlans(arg1 []models.ServicePlanFields) ([]models.ServicePlanFields, error) {
fake.attachOrgsToPlansMutex.Lock()
defer fake.attachOrgsToPlansMutex.Unlock()
fake.attachOrgsToPlansArgsForCall = append(fake.attachOrgsToPlansArgsForCall, struct {
arg1 []models.ServicePlanFields
}{arg1})
if fake.AttachOrgsToPlansStub != nil {
return fake.AttachOrgsToPlansStub(arg1)
} else {
return fake.attachOrgsToPlansReturns.result1, fake.attachOrgsToPlansReturns.result2
}
}
func (fake *FakeServiceActor) AttachOrgsToPlansCallCount() int {
fake.attachOrgsToPlansMutex.RLock()
defer fake.attachOrgsToPlansMutex.RUnlock()
return len(fake.attachOrgsToPlansArgsForCall)
}
func (fake *FakeServiceActor) AttachOrgsToPlansArgsForCall(i int) []models.ServicePlanFields {
fake.attachOrgsToPlansMutex.RLock()
defer fake.attachOrgsToPlansMutex.RUnlock()
return fake.attachOrgsToPlansArgsForCall[i].arg1
}
func (fake *FakeServiceActor) AttachOrgsToPlansReturns(result1 []models.ServicePlanFields, result2 error) {
fake.attachOrgsToPlansReturns = struct {
result1 []models.ServicePlanFields
result2 error
}{result1, result2}
}
var _ ServiceActor = new(FakeServiceActor)