forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_route_service_binding_repository.go
103 lines (91 loc) · 3 KB
/
fake_route_service_binding_repository.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
// This file was generated by counterfeiter
package apifakes
import (
"sync"
"github.com/cloudfoundry/cli/cf/api"
)
type FakeRouteServiceBindingRepository struct {
BindStub func(instanceGuid, routeGuid string, userProvided bool, parameters string) error
bindMutex sync.RWMutex
bindArgsForCall []struct {
instanceGuid string
routeGuid string
userProvided bool
parameters string
}
bindReturns struct {
result1 error
}
UnbindStub func(instanceGuid, routeGuid string, userProvided bool) error
unbindMutex sync.RWMutex
unbindArgsForCall []struct {
instanceGuid string
routeGuid string
userProvided bool
}
unbindReturns struct {
result1 error
}
}
func (fake *FakeRouteServiceBindingRepository) Bind(instanceGuid string, routeGuid string, userProvided bool, parameters string) error {
fake.bindMutex.Lock()
fake.bindArgsForCall = append(fake.bindArgsForCall, struct {
instanceGuid string
routeGuid string
userProvided bool
parameters string
}{instanceGuid, routeGuid, userProvided, parameters})
fake.bindMutex.Unlock()
if fake.BindStub != nil {
return fake.BindStub(instanceGuid, routeGuid, userProvided, parameters)
} else {
return fake.bindReturns.result1
}
}
func (fake *FakeRouteServiceBindingRepository) BindCallCount() int {
fake.bindMutex.RLock()
defer fake.bindMutex.RUnlock()
return len(fake.bindArgsForCall)
}
func (fake *FakeRouteServiceBindingRepository) BindArgsForCall(i int) (string, string, bool, string) {
fake.bindMutex.RLock()
defer fake.bindMutex.RUnlock()
return fake.bindArgsForCall[i].instanceGuid, fake.bindArgsForCall[i].routeGuid, fake.bindArgsForCall[i].userProvided, fake.bindArgsForCall[i].parameters
}
func (fake *FakeRouteServiceBindingRepository) BindReturns(result1 error) {
fake.BindStub = nil
fake.bindReturns = struct {
result1 error
}{result1}
}
func (fake *FakeRouteServiceBindingRepository) Unbind(instanceGuid string, routeGuid string, userProvided bool) error {
fake.unbindMutex.Lock()
fake.unbindArgsForCall = append(fake.unbindArgsForCall, struct {
instanceGuid string
routeGuid string
userProvided bool
}{instanceGuid, routeGuid, userProvided})
fake.unbindMutex.Unlock()
if fake.UnbindStub != nil {
return fake.UnbindStub(instanceGuid, routeGuid, userProvided)
} else {
return fake.unbindReturns.result1
}
}
func (fake *FakeRouteServiceBindingRepository) UnbindCallCount() int {
fake.unbindMutex.RLock()
defer fake.unbindMutex.RUnlock()
return len(fake.unbindArgsForCall)
}
func (fake *FakeRouteServiceBindingRepository) UnbindArgsForCall(i int) (string, string, bool) {
fake.unbindMutex.RLock()
defer fake.unbindMutex.RUnlock()
return fake.unbindArgsForCall[i].instanceGuid, fake.unbindArgsForCall[i].routeGuid, fake.unbindArgsForCall[i].userProvided
}
func (fake *FakeRouteServiceBindingRepository) UnbindReturns(result1 error) {
fake.UnbindStub = nil
fake.unbindReturns = struct {
result1 error
}{result1}
}
var _ api.RouteServiceBindingRepository = new(FakeRouteServiceBindingRepository)