forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_plugin_configuration.go
131 lines (115 loc) · 3.75 KB
/
fake_plugin_configuration.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
// This file was generated by counterfeiter
package pluginconfigfakes
import (
"sync"
"github.com/cloudfoundry/cli/cf/configuration/pluginconfig"
)
type FakePluginConfiguration struct {
PluginsStub func() map[string]pluginconfig.PluginMetadata
pluginsMutex sync.RWMutex
pluginsArgsForCall []struct{}
pluginsReturns struct {
result1 map[string]pluginconfig.PluginMetadata
}
SetPluginStub func(string, pluginconfig.PluginMetadata)
setPluginMutex sync.RWMutex
setPluginArgsForCall []struct {
arg1 string
arg2 pluginconfig.PluginMetadata
}
GetPluginPathStub func() string
getPluginPathMutex sync.RWMutex
getPluginPathArgsForCall []struct{}
getPluginPathReturns struct {
result1 string
}
RemovePluginStub func(string)
removePluginMutex sync.RWMutex
removePluginArgsForCall []struct {
arg1 string
}
}
func (fake *FakePluginConfiguration) Plugins() map[string]pluginconfig.PluginMetadata {
fake.pluginsMutex.Lock()
fake.pluginsArgsForCall = append(fake.pluginsArgsForCall, struct{}{})
fake.pluginsMutex.Unlock()
if fake.PluginsStub != nil {
return fake.PluginsStub()
} else {
return fake.pluginsReturns.result1
}
}
func (fake *FakePluginConfiguration) PluginsCallCount() int {
fake.pluginsMutex.RLock()
defer fake.pluginsMutex.RUnlock()
return len(fake.pluginsArgsForCall)
}
func (fake *FakePluginConfiguration) PluginsReturns(result1 map[string]pluginconfig.PluginMetadata) {
fake.PluginsStub = nil
fake.pluginsReturns = struct {
result1 map[string]pluginconfig.PluginMetadata
}{result1}
}
func (fake *FakePluginConfiguration) SetPlugin(arg1 string, arg2 pluginconfig.PluginMetadata) {
fake.setPluginMutex.Lock()
fake.setPluginArgsForCall = append(fake.setPluginArgsForCall, struct {
arg1 string
arg2 pluginconfig.PluginMetadata
}{arg1, arg2})
fake.setPluginMutex.Unlock()
if fake.SetPluginStub != nil {
fake.SetPluginStub(arg1, arg2)
}
}
func (fake *FakePluginConfiguration) SetPluginCallCount() int {
fake.setPluginMutex.RLock()
defer fake.setPluginMutex.RUnlock()
return len(fake.setPluginArgsForCall)
}
func (fake *FakePluginConfiguration) SetPluginArgsForCall(i int) (string, pluginconfig.PluginMetadata) {
fake.setPluginMutex.RLock()
defer fake.setPluginMutex.RUnlock()
return fake.setPluginArgsForCall[i].arg1, fake.setPluginArgsForCall[i].arg2
}
func (fake *FakePluginConfiguration) GetPluginPath() string {
fake.getPluginPathMutex.Lock()
fake.getPluginPathArgsForCall = append(fake.getPluginPathArgsForCall, struct{}{})
fake.getPluginPathMutex.Unlock()
if fake.GetPluginPathStub != nil {
return fake.GetPluginPathStub()
} else {
return fake.getPluginPathReturns.result1
}
}
func (fake *FakePluginConfiguration) GetPluginPathCallCount() int {
fake.getPluginPathMutex.RLock()
defer fake.getPluginPathMutex.RUnlock()
return len(fake.getPluginPathArgsForCall)
}
func (fake *FakePluginConfiguration) GetPluginPathReturns(result1 string) {
fake.GetPluginPathStub = nil
fake.getPluginPathReturns = struct {
result1 string
}{result1}
}
func (fake *FakePluginConfiguration) RemovePlugin(arg1 string) {
fake.removePluginMutex.Lock()
fake.removePluginArgsForCall = append(fake.removePluginArgsForCall, struct {
arg1 string
}{arg1})
fake.removePluginMutex.Unlock()
if fake.RemovePluginStub != nil {
fake.RemovePluginStub(arg1)
}
}
func (fake *FakePluginConfiguration) RemovePluginCallCount() int {
fake.removePluginMutex.RLock()
defer fake.removePluginMutex.RUnlock()
return len(fake.removePluginArgsForCall)
}
func (fake *FakePluginConfiguration) RemovePluginArgsForCall(i int) string {
fake.removePluginMutex.RLock()
defer fake.removePluginMutex.RUnlock()
return fake.removePluginArgsForCall[i].arg1
}
var _ pluginconfig.PluginConfiguration = new(FakePluginConfiguration)