/
eebus_test_mock.go
350 lines (301 loc) Β· 12.9 KB
/
eebus_test_mock.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/enbility/cemd/emobility (interfaces: EmobilityI)
//
// Generated by this command:
//
// mockgen -package charger -destination eebus_test_mock.go github.com/enbility/cemd/emobility EmobilityI
//
// Package charger is a generated GoMock package.
package charger
import (
reflect "reflect"
emobility "github.com/enbility/cemd/emobility"
gomock "go.uber.org/mock/gomock"
)
// MockEmobilityI is a mock of EmobilityI interface.
type MockEmobilityI struct {
ctrl *gomock.Controller
recorder *MockEmobilityIMockRecorder
}
// MockEmobilityIMockRecorder is the mock recorder for MockEmobilityI.
type MockEmobilityIMockRecorder struct {
mock *MockEmobilityI
}
// NewMockEmobilityI creates a new mock instance.
func NewMockEmobilityI(ctrl *gomock.Controller) *MockEmobilityI {
mock := &MockEmobilityI{ctrl: ctrl}
mock.recorder = &MockEmobilityIMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEmobilityI) EXPECT() *MockEmobilityIMockRecorder {
return m.recorder
}
// EVChargeStrategy mocks base method.
func (m *MockEmobilityI) EVChargeStrategy() emobility.EVChargeStrategyType {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVChargeStrategy")
ret0, _ := ret[0].(emobility.EVChargeStrategyType)
return ret0
}
// EVChargeStrategy indicates an expected call of EVChargeStrategy.
func (mr *MockEmobilityIMockRecorder) EVChargeStrategy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVChargeStrategy", reflect.TypeOf((*MockEmobilityI)(nil).EVChargeStrategy))
}
// EVChargedEnergy mocks base method.
func (m *MockEmobilityI) EVChargedEnergy() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVChargedEnergy")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVChargedEnergy indicates an expected call of EVChargedEnergy.
func (mr *MockEmobilityIMockRecorder) EVChargedEnergy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVChargedEnergy", reflect.TypeOf((*MockEmobilityI)(nil).EVChargedEnergy))
}
// EVCommunicationStandard mocks base method.
func (m *MockEmobilityI) EVCommunicationStandard() (emobility.EVCommunicationStandardType, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVCommunicationStandard")
ret0, _ := ret[0].(emobility.EVCommunicationStandardType)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVCommunicationStandard indicates an expected call of EVCommunicationStandard.
func (mr *MockEmobilityIMockRecorder) EVCommunicationStandard() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVCommunicationStandard", reflect.TypeOf((*MockEmobilityI)(nil).EVCommunicationStandard))
}
// EVConnected mocks base method.
func (m *MockEmobilityI) EVConnected() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVConnected")
ret0, _ := ret[0].(bool)
return ret0
}
// EVConnected indicates an expected call of EVConnected.
func (mr *MockEmobilityIMockRecorder) EVConnected() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVConnected", reflect.TypeOf((*MockEmobilityI)(nil).EVConnected))
}
// EVConnectedPhases mocks base method.
func (m *MockEmobilityI) EVConnectedPhases() (uint, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVConnectedPhases")
ret0, _ := ret[0].(uint)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVConnectedPhases indicates an expected call of EVConnectedPhases.
func (mr *MockEmobilityIMockRecorder) EVConnectedPhases() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVConnectedPhases", reflect.TypeOf((*MockEmobilityI)(nil).EVConnectedPhases))
}
// EVCoordinatedChargingSupported mocks base method.
func (m *MockEmobilityI) EVCoordinatedChargingSupported() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVCoordinatedChargingSupported")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVCoordinatedChargingSupported indicates an expected call of EVCoordinatedChargingSupported.
func (mr *MockEmobilityIMockRecorder) EVCoordinatedChargingSupported() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVCoordinatedChargingSupported", reflect.TypeOf((*MockEmobilityI)(nil).EVCoordinatedChargingSupported))
}
// EVCurrentChargeState mocks base method.
func (m *MockEmobilityI) EVCurrentChargeState() (emobility.EVChargeStateType, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVCurrentChargeState")
ret0, _ := ret[0].(emobility.EVChargeStateType)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVCurrentChargeState indicates an expected call of EVCurrentChargeState.
func (mr *MockEmobilityIMockRecorder) EVCurrentChargeState() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVCurrentChargeState", reflect.TypeOf((*MockEmobilityI)(nil).EVCurrentChargeState))
}
// EVCurrentLimits mocks base method.
func (m *MockEmobilityI) EVCurrentLimits() ([]float64, []float64, []float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVCurrentLimits")
ret0, _ := ret[0].([]float64)
ret1, _ := ret[1].([]float64)
ret2, _ := ret[2].([]float64)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// EVCurrentLimits indicates an expected call of EVCurrentLimits.
func (mr *MockEmobilityIMockRecorder) EVCurrentLimits() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVCurrentLimits", reflect.TypeOf((*MockEmobilityI)(nil).EVCurrentLimits))
}
// EVCurrentsPerPhase mocks base method.
func (m *MockEmobilityI) EVCurrentsPerPhase() ([]float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVCurrentsPerPhase")
ret0, _ := ret[0].([]float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVCurrentsPerPhase indicates an expected call of EVCurrentsPerPhase.
func (mr *MockEmobilityIMockRecorder) EVCurrentsPerPhase() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVCurrentsPerPhase", reflect.TypeOf((*MockEmobilityI)(nil).EVCurrentsPerPhase))
}
// EVEnergyDemand mocks base method.
func (m *MockEmobilityI) EVEnergyDemand() (emobility.EVDemand, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVEnergyDemand")
ret0, _ := ret[0].(emobility.EVDemand)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVEnergyDemand indicates an expected call of EVEnergyDemand.
func (mr *MockEmobilityIMockRecorder) EVEnergyDemand() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVEnergyDemand", reflect.TypeOf((*MockEmobilityI)(nil).EVEnergyDemand))
}
// EVGetIncentiveConstraints mocks base method.
func (m *MockEmobilityI) EVGetIncentiveConstraints() emobility.EVIncentiveSlotConstraints {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVGetIncentiveConstraints")
ret0, _ := ret[0].(emobility.EVIncentiveSlotConstraints)
return ret0
}
// EVGetIncentiveConstraints indicates an expected call of EVGetIncentiveConstraints.
func (mr *MockEmobilityIMockRecorder) EVGetIncentiveConstraints() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVGetIncentiveConstraints", reflect.TypeOf((*MockEmobilityI)(nil).EVGetIncentiveConstraints))
}
// EVGetPowerConstraints mocks base method.
func (m *MockEmobilityI) EVGetPowerConstraints() emobility.EVTimeSlotConstraints {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVGetPowerConstraints")
ret0, _ := ret[0].(emobility.EVTimeSlotConstraints)
return ret0
}
// EVGetPowerConstraints indicates an expected call of EVGetPowerConstraints.
func (mr *MockEmobilityIMockRecorder) EVGetPowerConstraints() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVGetPowerConstraints", reflect.TypeOf((*MockEmobilityI)(nil).EVGetPowerConstraints))
}
// EVIdentification mocks base method.
func (m *MockEmobilityI) EVIdentification() (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVIdentification")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVIdentification indicates an expected call of EVIdentification.
func (mr *MockEmobilityIMockRecorder) EVIdentification() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVIdentification", reflect.TypeOf((*MockEmobilityI)(nil).EVIdentification))
}
// EVLoadControlObligationLimits mocks base method.
func (m *MockEmobilityI) EVLoadControlObligationLimits() ([]float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVLoadControlObligationLimits")
ret0, _ := ret[0].([]float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVLoadControlObligationLimits indicates an expected call of EVLoadControlObligationLimits.
func (mr *MockEmobilityIMockRecorder) EVLoadControlObligationLimits() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVLoadControlObligationLimits", reflect.TypeOf((*MockEmobilityI)(nil).EVLoadControlObligationLimits))
}
// EVOptimizationOfSelfConsumptionSupported mocks base method.
func (m *MockEmobilityI) EVOptimizationOfSelfConsumptionSupported() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVOptimizationOfSelfConsumptionSupported")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVOptimizationOfSelfConsumptionSupported indicates an expected call of EVOptimizationOfSelfConsumptionSupported.
func (mr *MockEmobilityIMockRecorder) EVOptimizationOfSelfConsumptionSupported() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVOptimizationOfSelfConsumptionSupported", reflect.TypeOf((*MockEmobilityI)(nil).EVOptimizationOfSelfConsumptionSupported))
}
// EVPowerPerPhase mocks base method.
func (m *MockEmobilityI) EVPowerPerPhase() ([]float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVPowerPerPhase")
ret0, _ := ret[0].([]float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVPowerPerPhase indicates an expected call of EVPowerPerPhase.
func (mr *MockEmobilityIMockRecorder) EVPowerPerPhase() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVPowerPerPhase", reflect.TypeOf((*MockEmobilityI)(nil).EVPowerPerPhase))
}
// EVSoC mocks base method.
func (m *MockEmobilityI) EVSoC() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVSoC")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVSoC indicates an expected call of EVSoC.
func (mr *MockEmobilityIMockRecorder) EVSoC() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVSoC", reflect.TypeOf((*MockEmobilityI)(nil).EVSoC))
}
// EVSoCSupported mocks base method.
func (m *MockEmobilityI) EVSoCSupported() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVSoCSupported")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EVSoCSupported indicates an expected call of EVSoCSupported.
func (mr *MockEmobilityIMockRecorder) EVSoCSupported() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVSoCSupported", reflect.TypeOf((*MockEmobilityI)(nil).EVSoCSupported))
}
// EVWriteIncentives mocks base method.
func (m *MockEmobilityI) EVWriteIncentives(arg0 []emobility.EVDurationSlotValue) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVWriteIncentives", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// EVWriteIncentives indicates an expected call of EVWriteIncentives.
func (mr *MockEmobilityIMockRecorder) EVWriteIncentives(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVWriteIncentives", reflect.TypeOf((*MockEmobilityI)(nil).EVWriteIncentives), arg0)
}
// EVWriteLoadControlLimits mocks base method.
func (m *MockEmobilityI) EVWriteLoadControlLimits(arg0, arg1 []float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVWriteLoadControlLimits", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// EVWriteLoadControlLimits indicates an expected call of EVWriteLoadControlLimits.
func (mr *MockEmobilityIMockRecorder) EVWriteLoadControlLimits(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVWriteLoadControlLimits", reflect.TypeOf((*MockEmobilityI)(nil).EVWriteLoadControlLimits), arg0, arg1)
}
// EVWritePowerLimits mocks base method.
func (m *MockEmobilityI) EVWritePowerLimits(arg0 []emobility.EVDurationSlotValue) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EVWritePowerLimits", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// EVWritePowerLimits indicates an expected call of EVWritePowerLimits.
func (mr *MockEmobilityIMockRecorder) EVWritePowerLimits(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EVWritePowerLimits", reflect.TypeOf((*MockEmobilityI)(nil).EVWritePowerLimits), arg0)
}