-
Notifications
You must be signed in to change notification settings - Fork 8
/
mock_environment.go
264 lines (226 loc) · 9.52 KB
/
mock_environment.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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ARM-software/golang-utils/utils/environment (interfaces: IEnvironmentVariable,IEnvironment)
// Package mocks is a generated GoMock package.
package mocks
import (
user "os/user"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
environment "github.com/ARM-software/golang-utils/utils/environment"
filesystem "github.com/ARM-software/golang-utils/utils/filesystem"
)
// MockIEnvironmentVariable is a mock of IEnvironmentVariable interface.
type MockIEnvironmentVariable struct {
ctrl *gomock.Controller
recorder *MockIEnvironmentVariableMockRecorder
}
// MockIEnvironmentVariableMockRecorder is the mock recorder for MockIEnvironmentVariable.
type MockIEnvironmentVariableMockRecorder struct {
mock *MockIEnvironmentVariable
}
// NewMockIEnvironmentVariable creates a new mock instance.
func NewMockIEnvironmentVariable(ctrl *gomock.Controller) *MockIEnvironmentVariable {
mock := &MockIEnvironmentVariable{ctrl: ctrl}
mock.recorder = &MockIEnvironmentVariableMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIEnvironmentVariable) EXPECT() *MockIEnvironmentVariableMockRecorder {
return m.recorder
}
// Equal mocks base method.
func (m *MockIEnvironmentVariable) Equal(arg0 environment.IEnvironmentVariable) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Equal", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// Equal indicates an expected call of Equal.
func (mr *MockIEnvironmentVariableMockRecorder) Equal(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Equal", reflect.TypeOf((*MockIEnvironmentVariable)(nil).Equal), arg0)
}
// GetKey mocks base method.
func (m *MockIEnvironmentVariable) GetKey() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetKey")
ret0, _ := ret[0].(string)
return ret0
}
// GetKey indicates an expected call of GetKey.
func (mr *MockIEnvironmentVariableMockRecorder) GetKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKey", reflect.TypeOf((*MockIEnvironmentVariable)(nil).GetKey))
}
// GetValue mocks base method.
func (m *MockIEnvironmentVariable) GetValue() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetValue")
ret0, _ := ret[0].(string)
return ret0
}
// GetValue indicates an expected call of GetValue.
func (mr *MockIEnvironmentVariableMockRecorder) GetValue() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValue", reflect.TypeOf((*MockIEnvironmentVariable)(nil).GetValue))
}
// MarshalText mocks base method.
func (m *MockIEnvironmentVariable) MarshalText() ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MarshalText")
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MarshalText indicates an expected call of MarshalText.
func (mr *MockIEnvironmentVariableMockRecorder) MarshalText() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarshalText", reflect.TypeOf((*MockIEnvironmentVariable)(nil).MarshalText))
}
// String mocks base method.
func (m *MockIEnvironmentVariable) String() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "String")
ret0, _ := ret[0].(string)
return ret0
}
// String indicates an expected call of String.
func (mr *MockIEnvironmentVariableMockRecorder) String() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockIEnvironmentVariable)(nil).String))
}
// UnmarshalText mocks base method.
func (m *MockIEnvironmentVariable) UnmarshalText(arg0 []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UnmarshalText", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// UnmarshalText indicates an expected call of UnmarshalText.
func (mr *MockIEnvironmentVariableMockRecorder) UnmarshalText(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnmarshalText", reflect.TypeOf((*MockIEnvironmentVariable)(nil).UnmarshalText), arg0)
}
// Validate mocks base method.
func (m *MockIEnvironmentVariable) Validate() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Validate")
ret0, _ := ret[0].(error)
return ret0
}
// Validate indicates an expected call of Validate.
func (mr *MockIEnvironmentVariableMockRecorder) Validate() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockIEnvironmentVariable)(nil).Validate))
}
// MockIEnvironment is a mock of IEnvironment interface.
type MockIEnvironment struct {
ctrl *gomock.Controller
recorder *MockIEnvironmentMockRecorder
}
// MockIEnvironmentMockRecorder is the mock recorder for MockIEnvironment.
type MockIEnvironmentMockRecorder struct {
mock *MockIEnvironment
}
// NewMockIEnvironment creates a new mock instance.
func NewMockIEnvironment(ctrl *gomock.Controller) *MockIEnvironment {
mock := &MockIEnvironment{ctrl: ctrl}
mock.recorder = &MockIEnvironmentMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIEnvironment) EXPECT() *MockIEnvironmentMockRecorder {
return m.recorder
}
// GetCurrentUser mocks base method.
func (m *MockIEnvironment) GetCurrentUser() *user.User {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCurrentUser")
ret0, _ := ret[0].(*user.User)
return ret0
}
// GetCurrentUser indicates an expected call of GetCurrentUser.
func (mr *MockIEnvironmentMockRecorder) GetCurrentUser() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrentUser", reflect.TypeOf((*MockIEnvironment)(nil).GetCurrentUser))
}
// GetEnvironmentVariable mocks base method.
func (m *MockIEnvironment) GetEnvironmentVariable(arg0 string, arg1 ...string) (environment.IEnvironmentVariable, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0}
for _, a := range arg1 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetEnvironmentVariable", varargs...)
ret0, _ := ret[0].(environment.IEnvironmentVariable)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetEnvironmentVariable indicates an expected call of GetEnvironmentVariable.
func (mr *MockIEnvironmentMockRecorder) GetEnvironmentVariable(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0}, arg1...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnvironmentVariable", reflect.TypeOf((*MockIEnvironment)(nil).GetEnvironmentVariable), varargs...)
}
// GetEnvironmentVariables mocks base method.
func (m *MockIEnvironment) GetEnvironmentVariables(arg0 ...string) []environment.IEnvironmentVariable {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetEnvironmentVariables", varargs...)
ret0, _ := ret[0].([]environment.IEnvironmentVariable)
return ret0
}
// GetEnvironmentVariables indicates an expected call of GetEnvironmentVariables.
func (mr *MockIEnvironmentMockRecorder) GetEnvironmentVariables(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnvironmentVariables", reflect.TypeOf((*MockIEnvironment)(nil).GetEnvironmentVariables), arg0...)
}
// GetExpandedEnvironmentVariable mocks base method.
func (m *MockIEnvironment) GetExpandedEnvironmentVariable(arg0 string, arg1 ...string) (environment.IEnvironmentVariable, error) {
m.ctrl.T.Helper()
varargs := []interface{}{arg0}
for _, a := range arg1 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetExpandedEnvironmentVariable", varargs...)
ret0, _ := ret[0].(environment.IEnvironmentVariable)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetExpandedEnvironmentVariable indicates an expected call of GetExpandedEnvironmentVariable.
func (mr *MockIEnvironmentMockRecorder) GetExpandedEnvironmentVariable(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{arg0}, arg1...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExpandedEnvironmentVariable", reflect.TypeOf((*MockIEnvironment)(nil).GetExpandedEnvironmentVariable), varargs...)
}
// GetExpandedEnvironmentVariables mocks base method.
func (m *MockIEnvironment) GetExpandedEnvironmentVariables(arg0 ...string) []environment.IEnvironmentVariable {
m.ctrl.T.Helper()
varargs := []interface{}{}
for _, a := range arg0 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetExpandedEnvironmentVariables", varargs...)
ret0, _ := ret[0].([]environment.IEnvironmentVariable)
return ret0
}
// GetExpandedEnvironmentVariables indicates an expected call of GetExpandedEnvironmentVariables.
func (mr *MockIEnvironmentMockRecorder) GetExpandedEnvironmentVariables(arg0 ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExpandedEnvironmentVariables", reflect.TypeOf((*MockIEnvironment)(nil).GetExpandedEnvironmentVariables), arg0...)
}
// GetFilesystem mocks base method.
func (m *MockIEnvironment) GetFilesystem() filesystem.FS {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetFilesystem")
ret0, _ := ret[0].(filesystem.FS)
return ret0
}
// GetFilesystem indicates an expected call of GetFilesystem.
func (mr *MockIEnvironmentMockRecorder) GetFilesystem() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFilesystem", reflect.TypeOf((*MockIEnvironment)(nil).GetFilesystem))
}