forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_api.go
466 lines (393 loc) · 13.8 KB
/
mock_api.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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/evcc-io/evcc/api (interfaces: Charger,ChargeState,ChargePhases,Identifier,Meter,MeterEnergy,Vehicle,ChargeRater,Battery)
// Package mock is a generated GoMock package.
package mock
import (
reflect "reflect"
api "github.com/evcc-io/evcc/api"
gomock "github.com/golang/mock/gomock"
)
// MockCharger is a mock of Charger interface.
type MockCharger struct {
ctrl *gomock.Controller
recorder *MockChargerMockRecorder
}
// MockChargerMockRecorder is the mock recorder for MockCharger.
type MockChargerMockRecorder struct {
mock *MockCharger
}
// NewMockCharger creates a new mock instance.
func NewMockCharger(ctrl *gomock.Controller) *MockCharger {
mock := &MockCharger{ctrl: ctrl}
mock.recorder = &MockChargerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCharger) EXPECT() *MockChargerMockRecorder {
return m.recorder
}
// Enable mocks base method.
func (m *MockCharger) Enable(arg0 bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Enable", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Enable indicates an expected call of Enable.
func (mr *MockChargerMockRecorder) Enable(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enable", reflect.TypeOf((*MockCharger)(nil).Enable), arg0)
}
// Enabled mocks base method.
func (m *MockCharger) Enabled() (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Enabled")
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Enabled indicates an expected call of Enabled.
func (mr *MockChargerMockRecorder) Enabled() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enabled", reflect.TypeOf((*MockCharger)(nil).Enabled))
}
// MaxCurrent mocks base method.
func (m *MockCharger) MaxCurrent(arg0 int64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MaxCurrent", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// MaxCurrent indicates an expected call of MaxCurrent.
func (mr *MockChargerMockRecorder) MaxCurrent(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxCurrent", reflect.TypeOf((*MockCharger)(nil).MaxCurrent), arg0)
}
// Status mocks base method.
func (m *MockCharger) Status() (api.ChargeStatus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Status")
ret0, _ := ret[0].(api.ChargeStatus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Status indicates an expected call of Status.
func (mr *MockChargerMockRecorder) Status() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockCharger)(nil).Status))
}
// MockChargeState is a mock of ChargeState interface.
type MockChargeState struct {
ctrl *gomock.Controller
recorder *MockChargeStateMockRecorder
}
// MockChargeStateMockRecorder is the mock recorder for MockChargeState.
type MockChargeStateMockRecorder struct {
mock *MockChargeState
}
// NewMockChargeState creates a new mock instance.
func NewMockChargeState(ctrl *gomock.Controller) *MockChargeState {
mock := &MockChargeState{ctrl: ctrl}
mock.recorder = &MockChargeStateMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockChargeState) EXPECT() *MockChargeStateMockRecorder {
return m.recorder
}
// Status mocks base method.
func (m *MockChargeState) Status() (api.ChargeStatus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Status")
ret0, _ := ret[0].(api.ChargeStatus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Status indicates an expected call of Status.
func (mr *MockChargeStateMockRecorder) Status() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockChargeState)(nil).Status))
}
// MockChargePhases is a mock of ChargePhases interface.
type MockChargePhases struct {
ctrl *gomock.Controller
recorder *MockChargePhasesMockRecorder
}
// MockChargePhasesMockRecorder is the mock recorder for MockChargePhases.
type MockChargePhasesMockRecorder struct {
mock *MockChargePhases
}
// NewMockChargePhases creates a new mock instance.
func NewMockChargePhases(ctrl *gomock.Controller) *MockChargePhases {
mock := &MockChargePhases{ctrl: ctrl}
mock.recorder = &MockChargePhasesMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockChargePhases) EXPECT() *MockChargePhasesMockRecorder {
return m.recorder
}
// Phases1p3p mocks base method.
func (m *MockChargePhases) Phases1p3p(arg0 int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Phases1p3p", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Phases1p3p indicates an expected call of Phases1p3p.
func (mr *MockChargePhasesMockRecorder) Phases1p3p(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Phases1p3p", reflect.TypeOf((*MockChargePhases)(nil).Phases1p3p), arg0)
}
// MockIdentifier is a mock of Identifier interface.
type MockIdentifier struct {
ctrl *gomock.Controller
recorder *MockIdentifierMockRecorder
}
// MockIdentifierMockRecorder is the mock recorder for MockIdentifier.
type MockIdentifierMockRecorder struct {
mock *MockIdentifier
}
// NewMockIdentifier creates a new mock instance.
func NewMockIdentifier(ctrl *gomock.Controller) *MockIdentifier {
mock := &MockIdentifier{ctrl: ctrl}
mock.recorder = &MockIdentifierMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIdentifier) EXPECT() *MockIdentifierMockRecorder {
return m.recorder
}
// Identify mocks base method.
func (m *MockIdentifier) Identify() (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Identify")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Identify indicates an expected call of Identify.
func (mr *MockIdentifierMockRecorder) Identify() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identify", reflect.TypeOf((*MockIdentifier)(nil).Identify))
}
// MockMeter is a mock of Meter interface.
type MockMeter struct {
ctrl *gomock.Controller
recorder *MockMeterMockRecorder
}
// MockMeterMockRecorder is the mock recorder for MockMeter.
type MockMeterMockRecorder struct {
mock *MockMeter
}
// NewMockMeter creates a new mock instance.
func NewMockMeter(ctrl *gomock.Controller) *MockMeter {
mock := &MockMeter{ctrl: ctrl}
mock.recorder = &MockMeterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMeter) EXPECT() *MockMeterMockRecorder {
return m.recorder
}
// CurrentPower mocks base method.
func (m *MockMeter) CurrentPower() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CurrentPower")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CurrentPower indicates an expected call of CurrentPower.
func (mr *MockMeterMockRecorder) CurrentPower() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentPower", reflect.TypeOf((*MockMeter)(nil).CurrentPower))
}
// MockMeterEnergy is a mock of MeterEnergy interface.
type MockMeterEnergy struct {
ctrl *gomock.Controller
recorder *MockMeterEnergyMockRecorder
}
// MockMeterEnergyMockRecorder is the mock recorder for MockMeterEnergy.
type MockMeterEnergyMockRecorder struct {
mock *MockMeterEnergy
}
// NewMockMeterEnergy creates a new mock instance.
func NewMockMeterEnergy(ctrl *gomock.Controller) *MockMeterEnergy {
mock := &MockMeterEnergy{ctrl: ctrl}
mock.recorder = &MockMeterEnergyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMeterEnergy) EXPECT() *MockMeterEnergyMockRecorder {
return m.recorder
}
// TotalEnergy mocks base method.
func (m *MockMeterEnergy) TotalEnergy() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "TotalEnergy")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// TotalEnergy indicates an expected call of TotalEnergy.
func (mr *MockMeterEnergyMockRecorder) TotalEnergy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TotalEnergy", reflect.TypeOf((*MockMeterEnergy)(nil).TotalEnergy))
}
// MockVehicle is a mock of Vehicle interface.
type MockVehicle struct {
ctrl *gomock.Controller
recorder *MockVehicleMockRecorder
}
// MockVehicleMockRecorder is the mock recorder for MockVehicle.
type MockVehicleMockRecorder struct {
mock *MockVehicle
}
// NewMockVehicle creates a new mock instance.
func NewMockVehicle(ctrl *gomock.Controller) *MockVehicle {
mock := &MockVehicle{ctrl: ctrl}
mock.recorder = &MockVehicleMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockVehicle) EXPECT() *MockVehicleMockRecorder {
return m.recorder
}
// Capacity mocks base method.
func (m *MockVehicle) Capacity() int64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Capacity")
ret0, _ := ret[0].(int64)
return ret0
}
// Capacity indicates an expected call of Capacity.
func (mr *MockVehicleMockRecorder) Capacity() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Capacity", reflect.TypeOf((*MockVehicle)(nil).Capacity))
}
// Identifiers mocks base method.
func (m *MockVehicle) Identifiers() []string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Identifiers")
ret0, _ := ret[0].([]string)
return ret0
}
// Identifiers indicates an expected call of Identifiers.
func (mr *MockVehicleMockRecorder) Identifiers() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Identifiers", reflect.TypeOf((*MockVehicle)(nil).Identifiers))
}
// OnIdentified mocks base method.
func (m *MockVehicle) OnIdentified() api.ActionConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnIdentified")
ret0, _ := ret[0].(api.ActionConfig)
return ret0
}
// OnIdentified indicates an expected call of OnIdentified.
func (mr *MockVehicleMockRecorder) OnIdentified() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnIdentified", reflect.TypeOf((*MockVehicle)(nil).OnIdentified))
}
// Phases mocks base method.
func (m *MockVehicle) Phases() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Phases")
ret0, _ := ret[0].(int)
return ret0
}
// Phases indicates an expected call of Phases.
func (mr *MockVehicleMockRecorder) Phases() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Phases", reflect.TypeOf((*MockVehicle)(nil).Phases))
}
// SoC mocks base method.
func (m *MockVehicle) SoC() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SoC")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SoC indicates an expected call of SoC.
func (mr *MockVehicleMockRecorder) SoC() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoC", reflect.TypeOf((*MockVehicle)(nil).SoC))
}
// Title mocks base method.
func (m *MockVehicle) Title() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Title")
ret0, _ := ret[0].(string)
return ret0
}
// Title indicates an expected call of Title.
func (mr *MockVehicleMockRecorder) Title() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Title", reflect.TypeOf((*MockVehicle)(nil).Title))
}
// MockChargeRater is a mock of ChargeRater interface.
type MockChargeRater struct {
ctrl *gomock.Controller
recorder *MockChargeRaterMockRecorder
}
// MockChargeRaterMockRecorder is the mock recorder for MockChargeRater.
type MockChargeRaterMockRecorder struct {
mock *MockChargeRater
}
// NewMockChargeRater creates a new mock instance.
func NewMockChargeRater(ctrl *gomock.Controller) *MockChargeRater {
mock := &MockChargeRater{ctrl: ctrl}
mock.recorder = &MockChargeRaterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockChargeRater) EXPECT() *MockChargeRaterMockRecorder {
return m.recorder
}
// ChargedEnergy mocks base method.
func (m *MockChargeRater) ChargedEnergy() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChargedEnergy")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ChargedEnergy indicates an expected call of ChargedEnergy.
func (mr *MockChargeRaterMockRecorder) ChargedEnergy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChargedEnergy", reflect.TypeOf((*MockChargeRater)(nil).ChargedEnergy))
}
// MockBattery is a mock of Battery interface.
type MockBattery struct {
ctrl *gomock.Controller
recorder *MockBatteryMockRecorder
}
// MockBatteryMockRecorder is the mock recorder for MockBattery.
type MockBatteryMockRecorder struct {
mock *MockBattery
}
// NewMockBattery creates a new mock instance.
func NewMockBattery(ctrl *gomock.Controller) *MockBattery {
mock := &MockBattery{ctrl: ctrl}
mock.recorder = &MockBatteryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBattery) EXPECT() *MockBatteryMockRecorder {
return m.recorder
}
// SoC mocks base method.
func (m *MockBattery) SoC() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SoC")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SoC indicates an expected call of SoC.
func (mr *MockBatteryMockRecorder) SoC() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoC", reflect.TypeOf((*MockBattery)(nil).SoC))
}