forked from cloudfoundry/cli
/
fake_security_group_space_binder.go
95 lines (83 loc) · 2.57 KB
/
fake_security_group_space_binder.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
// This file was generated by counterfeiter
package tmp
import (
. "github.com/cloudfoundry/cli/cf/api/security_groups/spaces"
"sync"
)
type FakeSecurityGroupSpaceBinder struct {
BindSpaceStub func(securityGroupGuid string, spaceGuid string) error
bindSpaceMutex sync.RWMutex
bindSpaceArgsForCall []struct {
arg1 string
arg2 string
}
bindSpaceReturns struct {
result1 error
}
UnbindSpaceStub func(securityGroupGuid string, spaceGuid string) error
unbindSpaceMutex sync.RWMutex
unbindSpaceArgsForCall []struct {
arg1 string
arg2 string
}
unbindSpaceReturns struct {
result1 error
}
}
func (fake *FakeSecurityGroupSpaceBinder) BindSpace(arg1 string, arg2 string) error {
fake.bindSpaceMutex.Lock()
defer fake.bindSpaceMutex.Unlock()
fake.bindSpaceArgsForCall = append(fake.bindSpaceArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
if fake.BindSpaceStub != nil {
return fake.BindSpaceStub(arg1, arg2)
} else {
return fake.bindSpaceReturns.result1
}
}
func (fake *FakeSecurityGroupSpaceBinder) BindSpaceCallCount() int {
fake.bindSpaceMutex.RLock()
defer fake.bindSpaceMutex.RUnlock()
return len(fake.bindSpaceArgsForCall)
}
func (fake *FakeSecurityGroupSpaceBinder) BindSpaceArgsForCall(i int) (string, string) {
fake.bindSpaceMutex.RLock()
defer fake.bindSpaceMutex.RUnlock()
return fake.bindSpaceArgsForCall[i].arg1, fake.bindSpaceArgsForCall[i].arg2
}
func (fake *FakeSecurityGroupSpaceBinder) BindSpaceReturns(result1 error) {
fake.bindSpaceReturns = struct {
result1 error
}{result1}
}
func (fake *FakeSecurityGroupSpaceBinder) UnbindSpace(arg1 string, arg2 string) error {
fake.unbindSpaceMutex.Lock()
defer fake.unbindSpaceMutex.Unlock()
fake.unbindSpaceArgsForCall = append(fake.unbindSpaceArgsForCall, struct {
arg1 string
arg2 string
}{arg1, arg2})
if fake.UnbindSpaceStub != nil {
return fake.UnbindSpaceStub(arg1, arg2)
} else {
return fake.unbindSpaceReturns.result1
}
}
func (fake *FakeSecurityGroupSpaceBinder) UnbindSpaceCallCount() int {
fake.unbindSpaceMutex.RLock()
defer fake.unbindSpaceMutex.RUnlock()
return len(fake.unbindSpaceArgsForCall)
}
func (fake *FakeSecurityGroupSpaceBinder) UnbindSpaceArgsForCall(i int) (string, string) {
fake.unbindSpaceMutex.RLock()
defer fake.unbindSpaceMutex.RUnlock()
return fake.unbindSpaceArgsForCall[i].arg1, fake.unbindSpaceArgsForCall[i].arg2
}
func (fake *FakeSecurityGroupSpaceBinder) UnbindSpaceReturns(result1 error) {
fake.unbindSpaceReturns = struct {
result1 error
}{result1}
}
var _ SecurityGroupSpaceBinder = new(FakeSecurityGroupSpaceBinder)