forked from evcc-io/evcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock.go
995 lines (844 loc) Β· 30.5 KB
/
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
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
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/evcc-io/evcc/api (interfaces: Charger,ChargeState,CurrentLimiter,CurrentGetter,PhaseSwitcher,PhaseGetter,Identifier,Meter,MeterEnergy,PhaseCurrents,Vehicle,ChargeRater,Battery,Tariff,BatteryController,Circuit)
//
// Generated by this command:
//
// mockgen -package api -destination mock.go github.com/evcc-io/evcc/api Charger,ChargeState,CurrentLimiter,CurrentGetter,PhaseSwitcher,PhaseGetter,Identifier,Meter,MeterEnergy,PhaseCurrents,Vehicle,ChargeRater,Battery,Tariff,BatteryController,Circuit
//
// Package api is a generated GoMock package.
package api
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockCharger is a mock of Charger interface.
type MockCharger struct {
ctrl *gomock.Controller
recorder *MockChargerMockRecorder
isgomock struct{}
}
// 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(enable bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Enable", enable)
ret0, _ := ret[0].(error)
return ret0
}
// Enable indicates an expected call of Enable.
func (mr *MockChargerMockRecorder) Enable(enable any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enable", reflect.TypeOf((*MockCharger)(nil).Enable), enable)
}
// 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(current int64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MaxCurrent", current)
ret0, _ := ret[0].(error)
return ret0
}
// MaxCurrent indicates an expected call of MaxCurrent.
func (mr *MockChargerMockRecorder) MaxCurrent(current any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxCurrent", reflect.TypeOf((*MockCharger)(nil).MaxCurrent), current)
}
// Status mocks base method.
func (m *MockCharger) Status() (ChargeStatus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Status")
ret0, _ := ret[0].(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
isgomock struct{}
}
// 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() (ChargeStatus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Status")
ret0, _ := ret[0].(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))
}
// MockCurrentLimiter is a mock of CurrentLimiter interface.
type MockCurrentLimiter struct {
ctrl *gomock.Controller
recorder *MockCurrentLimiterMockRecorder
isgomock struct{}
}
// MockCurrentLimiterMockRecorder is the mock recorder for MockCurrentLimiter.
type MockCurrentLimiterMockRecorder struct {
mock *MockCurrentLimiter
}
// NewMockCurrentLimiter creates a new mock instance.
func NewMockCurrentLimiter(ctrl *gomock.Controller) *MockCurrentLimiter {
mock := &MockCurrentLimiter{ctrl: ctrl}
mock.recorder = &MockCurrentLimiterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCurrentLimiter) EXPECT() *MockCurrentLimiterMockRecorder {
return m.recorder
}
// GetMinMaxCurrent mocks base method.
func (m *MockCurrentLimiter) GetMinMaxCurrent() (float64, float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMinMaxCurrent")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(float64)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetMinMaxCurrent indicates an expected call of GetMinMaxCurrent.
func (mr *MockCurrentLimiterMockRecorder) GetMinMaxCurrent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinMaxCurrent", reflect.TypeOf((*MockCurrentLimiter)(nil).GetMinMaxCurrent))
}
// MockCurrentGetter is a mock of CurrentGetter interface.
type MockCurrentGetter struct {
ctrl *gomock.Controller
recorder *MockCurrentGetterMockRecorder
isgomock struct{}
}
// MockCurrentGetterMockRecorder is the mock recorder for MockCurrentGetter.
type MockCurrentGetterMockRecorder struct {
mock *MockCurrentGetter
}
// NewMockCurrentGetter creates a new mock instance.
func NewMockCurrentGetter(ctrl *gomock.Controller) *MockCurrentGetter {
mock := &MockCurrentGetter{ctrl: ctrl}
mock.recorder = &MockCurrentGetterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCurrentGetter) EXPECT() *MockCurrentGetterMockRecorder {
return m.recorder
}
// GetMaxCurrent mocks base method.
func (m *MockCurrentGetter) GetMaxCurrent() (float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMaxCurrent")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMaxCurrent indicates an expected call of GetMaxCurrent.
func (mr *MockCurrentGetterMockRecorder) GetMaxCurrent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxCurrent", reflect.TypeOf((*MockCurrentGetter)(nil).GetMaxCurrent))
}
// MockPhaseSwitcher is a mock of PhaseSwitcher interface.
type MockPhaseSwitcher struct {
ctrl *gomock.Controller
recorder *MockPhaseSwitcherMockRecorder
isgomock struct{}
}
// MockPhaseSwitcherMockRecorder is the mock recorder for MockPhaseSwitcher.
type MockPhaseSwitcherMockRecorder struct {
mock *MockPhaseSwitcher
}
// NewMockPhaseSwitcher creates a new mock instance.
func NewMockPhaseSwitcher(ctrl *gomock.Controller) *MockPhaseSwitcher {
mock := &MockPhaseSwitcher{ctrl: ctrl}
mock.recorder = &MockPhaseSwitcherMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPhaseSwitcher) EXPECT() *MockPhaseSwitcherMockRecorder {
return m.recorder
}
// Phases1p3p mocks base method.
func (m *MockPhaseSwitcher) Phases1p3p(phases int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Phases1p3p", phases)
ret0, _ := ret[0].(error)
return ret0
}
// Phases1p3p indicates an expected call of Phases1p3p.
func (mr *MockPhaseSwitcherMockRecorder) Phases1p3p(phases any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Phases1p3p", reflect.TypeOf((*MockPhaseSwitcher)(nil).Phases1p3p), phases)
}
// MockPhaseGetter is a mock of PhaseGetter interface.
type MockPhaseGetter struct {
ctrl *gomock.Controller
recorder *MockPhaseGetterMockRecorder
isgomock struct{}
}
// MockPhaseGetterMockRecorder is the mock recorder for MockPhaseGetter.
type MockPhaseGetterMockRecorder struct {
mock *MockPhaseGetter
}
// NewMockPhaseGetter creates a new mock instance.
func NewMockPhaseGetter(ctrl *gomock.Controller) *MockPhaseGetter {
mock := &MockPhaseGetter{ctrl: ctrl}
mock.recorder = &MockPhaseGetterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPhaseGetter) EXPECT() *MockPhaseGetterMockRecorder {
return m.recorder
}
// GetPhases mocks base method.
func (m *MockPhaseGetter) GetPhases() (int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPhases")
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetPhases indicates an expected call of GetPhases.
func (mr *MockPhaseGetterMockRecorder) GetPhases() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPhases", reflect.TypeOf((*MockPhaseGetter)(nil).GetPhases))
}
// MockIdentifier is a mock of Identifier interface.
type MockIdentifier struct {
ctrl *gomock.Controller
recorder *MockIdentifierMockRecorder
isgomock struct{}
}
// 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
isgomock struct{}
}
// 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
isgomock struct{}
}
// 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))
}
// MockPhaseCurrents is a mock of PhaseCurrents interface.
type MockPhaseCurrents struct {
ctrl *gomock.Controller
recorder *MockPhaseCurrentsMockRecorder
isgomock struct{}
}
// MockPhaseCurrentsMockRecorder is the mock recorder for MockPhaseCurrents.
type MockPhaseCurrentsMockRecorder struct {
mock *MockPhaseCurrents
}
// NewMockPhaseCurrents creates a new mock instance.
func NewMockPhaseCurrents(ctrl *gomock.Controller) *MockPhaseCurrents {
mock := &MockPhaseCurrents{ctrl: ctrl}
mock.recorder = &MockPhaseCurrentsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPhaseCurrents) EXPECT() *MockPhaseCurrentsMockRecorder {
return m.recorder
}
// Currents mocks base method.
func (m *MockPhaseCurrents) Currents() (float64, float64, float64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Currents")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(float64)
ret2, _ := ret[2].(float64)
ret3, _ := ret[3].(error)
return ret0, ret1, ret2, ret3
}
// Currents indicates an expected call of Currents.
func (mr *MockPhaseCurrentsMockRecorder) Currents() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Currents", reflect.TypeOf((*MockPhaseCurrents)(nil).Currents))
}
// MockVehicle is a mock of Vehicle interface.
type MockVehicle struct {
ctrl *gomock.Controller
recorder *MockVehicleMockRecorder
isgomock struct{}
}
// 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() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Capacity")
ret0, _ := ret[0].(float64)
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))
}
// Features mocks base method.
func (m *MockVehicle) Features() []Feature {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Features")
ret0, _ := ret[0].([]Feature)
return ret0
}
// Features indicates an expected call of Features.
func (mr *MockVehicleMockRecorder) Features() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Features", reflect.TypeOf((*MockVehicle)(nil).Features))
}
// Icon mocks base method.
func (m *MockVehicle) Icon() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Icon")
ret0, _ := ret[0].(string)
return ret0
}
// Icon indicates an expected call of Icon.
func (mr *MockVehicleMockRecorder) Icon() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Icon", reflect.TypeOf((*MockVehicle)(nil).Icon))
}
// 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() ActionConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "OnIdentified")
ret0, _ := ret[0].(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))
}
// SetTitle mocks base method.
func (m *MockVehicle) SetTitle(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetTitle", arg0)
}
// SetTitle indicates an expected call of SetTitle.
func (mr *MockVehicleMockRecorder) SetTitle(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTitle", reflect.TypeOf((*MockVehicle)(nil).SetTitle), arg0)
}
// 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
isgomock struct{}
}
// 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
isgomock struct{}
}
// 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))
}
// MockTariff is a mock of Tariff interface.
type MockTariff struct {
ctrl *gomock.Controller
recorder *MockTariffMockRecorder
isgomock struct{}
}
// MockTariffMockRecorder is the mock recorder for MockTariff.
type MockTariffMockRecorder struct {
mock *MockTariff
}
// NewMockTariff creates a new mock instance.
func NewMockTariff(ctrl *gomock.Controller) *MockTariff {
mock := &MockTariff{ctrl: ctrl}
mock.recorder = &MockTariffMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTariff) EXPECT() *MockTariffMockRecorder {
return m.recorder
}
// Rates mocks base method.
func (m *MockTariff) Rates() (Rates, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Rates")
ret0, _ := ret[0].(Rates)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Rates indicates an expected call of Rates.
func (mr *MockTariffMockRecorder) Rates() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Rates", reflect.TypeOf((*MockTariff)(nil).Rates))
}
// Type mocks base method.
func (m *MockTariff) Type() TariffType {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Type")
ret0, _ := ret[0].(TariffType)
return ret0
}
// Type indicates an expected call of Type.
func (mr *MockTariffMockRecorder) Type() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockTariff)(nil).Type))
}
// MockBatteryController is a mock of BatteryController interface.
type MockBatteryController struct {
ctrl *gomock.Controller
recorder *MockBatteryControllerMockRecorder
isgomock struct{}
}
// MockBatteryControllerMockRecorder is the mock recorder for MockBatteryController.
type MockBatteryControllerMockRecorder struct {
mock *MockBatteryController
}
// NewMockBatteryController creates a new mock instance.
func NewMockBatteryController(ctrl *gomock.Controller) *MockBatteryController {
mock := &MockBatteryController{ctrl: ctrl}
mock.recorder = &MockBatteryControllerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBatteryController) EXPECT() *MockBatteryControllerMockRecorder {
return m.recorder
}
// SetBatteryMode mocks base method.
func (m *MockBatteryController) SetBatteryMode(arg0 BatteryMode) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetBatteryMode", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetBatteryMode indicates an expected call of SetBatteryMode.
func (mr *MockBatteryControllerMockRecorder) SetBatteryMode(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBatteryMode", reflect.TypeOf((*MockBatteryController)(nil).SetBatteryMode), arg0)
}
// MockCircuit is a mock of Circuit interface.
type MockCircuit struct {
ctrl *gomock.Controller
recorder *MockCircuitMockRecorder
isgomock struct{}
}
// MockCircuitMockRecorder is the mock recorder for MockCircuit.
type MockCircuitMockRecorder struct {
mock *MockCircuit
}
// NewMockCircuit creates a new mock instance.
func NewMockCircuit(ctrl *gomock.Controller) *MockCircuit {
mock := &MockCircuit{ctrl: ctrl}
mock.recorder = &MockCircuitMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCircuit) EXPECT() *MockCircuitMockRecorder {
return m.recorder
}
// GetChargePower mocks base method.
func (m *MockCircuit) GetChargePower() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChargePower")
ret0, _ := ret[0].(float64)
return ret0
}
// GetChargePower indicates an expected call of GetChargePower.
func (mr *MockCircuitMockRecorder) GetChargePower() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargePower", reflect.TypeOf((*MockCircuit)(nil).GetChargePower))
}
// GetMaxCurrent mocks base method.
func (m *MockCircuit) GetMaxCurrent() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMaxCurrent")
ret0, _ := ret[0].(float64)
return ret0
}
// GetMaxCurrent indicates an expected call of GetMaxCurrent.
func (mr *MockCircuitMockRecorder) GetMaxCurrent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxCurrent", reflect.TypeOf((*MockCircuit)(nil).GetMaxCurrent))
}
// GetMaxPhaseCurrent mocks base method.
func (m *MockCircuit) GetMaxPhaseCurrent() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMaxPhaseCurrent")
ret0, _ := ret[0].(float64)
return ret0
}
// GetMaxPhaseCurrent indicates an expected call of GetMaxPhaseCurrent.
func (mr *MockCircuitMockRecorder) GetMaxPhaseCurrent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxPhaseCurrent", reflect.TypeOf((*MockCircuit)(nil).GetMaxPhaseCurrent))
}
// GetMaxPower mocks base method.
func (m *MockCircuit) GetMaxPower() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMaxPower")
ret0, _ := ret[0].(float64)
return ret0
}
// GetMaxPower indicates an expected call of GetMaxPower.
func (mr *MockCircuitMockRecorder) GetMaxPower() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxPower", reflect.TypeOf((*MockCircuit)(nil).GetMaxPower))
}
// GetParent mocks base method.
func (m *MockCircuit) GetParent() Circuit {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetParent")
ret0, _ := ret[0].(Circuit)
return ret0
}
// GetParent indicates an expected call of GetParent.
func (mr *MockCircuitMockRecorder) GetParent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParent", reflect.TypeOf((*MockCircuit)(nil).GetParent))
}
// GetTitle mocks base method.
func (m *MockCircuit) GetTitle() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetTitle")
ret0, _ := ret[0].(string)
return ret0
}
// GetTitle indicates an expected call of GetTitle.
func (mr *MockCircuitMockRecorder) GetTitle() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTitle", reflect.TypeOf((*MockCircuit)(nil).GetTitle))
}
// HasMeter mocks base method.
func (m *MockCircuit) HasMeter() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HasMeter")
ret0, _ := ret[0].(bool)
return ret0
}
// HasMeter indicates an expected call of HasMeter.
func (mr *MockCircuitMockRecorder) HasMeter() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasMeter", reflect.TypeOf((*MockCircuit)(nil).HasMeter))
}
// RegisterChild mocks base method.
func (m *MockCircuit) RegisterChild(child Circuit) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "RegisterChild", child)
}
// RegisterChild indicates an expected call of RegisterChild.
func (mr *MockCircuitMockRecorder) RegisterChild(child any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterChild", reflect.TypeOf((*MockCircuit)(nil).RegisterChild), child)
}
// SetMaxCurrent mocks base method.
func (m *MockCircuit) SetMaxCurrent(arg0 float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetMaxCurrent", arg0)
}
// SetMaxCurrent indicates an expected call of SetMaxCurrent.
func (mr *MockCircuitMockRecorder) SetMaxCurrent(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxCurrent", reflect.TypeOf((*MockCircuit)(nil).SetMaxCurrent), arg0)
}
// SetMaxPower mocks base method.
func (m *MockCircuit) SetMaxPower(arg0 float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetMaxPower", arg0)
}
// SetMaxPower indicates an expected call of SetMaxPower.
func (mr *MockCircuitMockRecorder) SetMaxPower(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxPower", reflect.TypeOf((*MockCircuit)(nil).SetMaxPower), arg0)
}
// SetTitle mocks base method.
func (m *MockCircuit) SetTitle(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetTitle", arg0)
}
// SetTitle indicates an expected call of SetTitle.
func (mr *MockCircuitMockRecorder) SetTitle(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTitle", reflect.TypeOf((*MockCircuit)(nil).SetTitle), arg0)
}
// Update mocks base method.
func (m *MockCircuit) Update(arg0 []CircuitLoad) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Update indicates an expected call of Update.
func (mr *MockCircuitMockRecorder) Update(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockCircuit)(nil).Update), arg0)
}
// ValidateCurrent mocks base method.
func (m *MockCircuit) ValidateCurrent(old, new float64) float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ValidateCurrent", old, new)
ret0, _ := ret[0].(float64)
return ret0
}
// ValidateCurrent indicates an expected call of ValidateCurrent.
func (mr *MockCircuitMockRecorder) ValidateCurrent(old, new any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateCurrent", reflect.TypeOf((*MockCircuit)(nil).ValidateCurrent), old, new)
}
// ValidatePower mocks base method.
func (m *MockCircuit) ValidatePower(old, new float64) float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ValidatePower", old, new)
ret0, _ := ret[0].(float64)
return ret0
}
// ValidatePower indicates an expected call of ValidatePower.
func (mr *MockCircuitMockRecorder) ValidatePower(old, new any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatePower", reflect.TypeOf((*MockCircuit)(nil).ValidatePower), old, new)
}
// Wrap mocks base method.
func (m *MockCircuit) Wrap(parent Circuit) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Wrap", parent)
ret0, _ := ret[0].(error)
return ret0
}
// Wrap indicates an expected call of Wrap.
func (mr *MockCircuitMockRecorder) Wrap(parent any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wrap", reflect.TypeOf((*MockCircuit)(nil).Wrap), parent)
}