chore: rebuild mocks
This commit is contained in:
parent
7e5a543de1
commit
0c343c1c0b
4 changed files with 107 additions and 88 deletions
72
api/mock.go
72
api/mock.go
|
|
@ -19,6 +19,7 @@ import (
|
|||
type MockCharger struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockChargerMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockChargerMockRecorder is the mock recorder for MockCharger.
|
||||
|
|
@ -39,17 +40,17 @@ func (m *MockCharger) EXPECT() *MockChargerMockRecorder {
|
|||
}
|
||||
|
||||
// Enable mocks base method.
|
||||
func (m *MockCharger) Enable(arg0 bool) error {
|
||||
func (m *MockCharger) Enable(enable bool) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Enable", arg0)
|
||||
ret := m.ctrl.Call(m, "Enable", enable)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Enable indicates an expected call of Enable.
|
||||
func (mr *MockChargerMockRecorder) Enable(arg0 any) *gomock.Call {
|
||||
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), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Enable", reflect.TypeOf((*MockCharger)(nil).Enable), enable)
|
||||
}
|
||||
|
||||
// Enabled mocks base method.
|
||||
|
|
@ -68,17 +69,17 @@ func (mr *MockChargerMockRecorder) Enabled() *gomock.Call {
|
|||
}
|
||||
|
||||
// MaxCurrent mocks base method.
|
||||
func (m *MockCharger) MaxCurrent(arg0 int64) error {
|
||||
func (m *MockCharger) MaxCurrent(current int64) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "MaxCurrent", arg0)
|
||||
ret := m.ctrl.Call(m, "MaxCurrent", current)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// MaxCurrent indicates an expected call of MaxCurrent.
|
||||
func (mr *MockChargerMockRecorder) MaxCurrent(arg0 any) *gomock.Call {
|
||||
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), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaxCurrent", reflect.TypeOf((*MockCharger)(nil).MaxCurrent), current)
|
||||
}
|
||||
|
||||
// Status mocks base method.
|
||||
|
|
@ -100,6 +101,7 @@ func (mr *MockChargerMockRecorder) Status() *gomock.Call {
|
|||
type MockChargeState struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockChargeStateMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockChargeStateMockRecorder is the mock recorder for MockChargeState.
|
||||
|
|
@ -138,6 +140,7 @@ func (mr *MockChargeStateMockRecorder) Status() *gomock.Call {
|
|||
type MockCurrentLimiter struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockCurrentLimiterMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockCurrentLimiterMockRecorder is the mock recorder for MockCurrentLimiter.
|
||||
|
|
@ -177,6 +180,7 @@ func (mr *MockCurrentLimiterMockRecorder) GetMinMaxCurrent() *gomock.Call {
|
|||
type MockCurrentGetter struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockCurrentGetterMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockCurrentGetterMockRecorder is the mock recorder for MockCurrentGetter.
|
||||
|
|
@ -215,6 +219,7 @@ func (mr *MockCurrentGetterMockRecorder) GetMaxCurrent() *gomock.Call {
|
|||
type MockPhaseSwitcher struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockPhaseSwitcherMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockPhaseSwitcherMockRecorder is the mock recorder for MockPhaseSwitcher.
|
||||
|
|
@ -235,23 +240,24 @@ func (m *MockPhaseSwitcher) EXPECT() *MockPhaseSwitcherMockRecorder {
|
|||
}
|
||||
|
||||
// Phases1p3p mocks base method.
|
||||
func (m *MockPhaseSwitcher) Phases1p3p(arg0 int) error {
|
||||
func (m *MockPhaseSwitcher) Phases1p3p(phases int) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Phases1p3p", arg0)
|
||||
ret := m.ctrl.Call(m, "Phases1p3p", phases)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Phases1p3p indicates an expected call of Phases1p3p.
|
||||
func (mr *MockPhaseSwitcherMockRecorder) Phases1p3p(arg0 any) *gomock.Call {
|
||||
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), arg0)
|
||||
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.
|
||||
|
|
@ -290,6 +296,7 @@ func (mr *MockPhaseGetterMockRecorder) GetPhases() *gomock.Call {
|
|||
type MockIdentifier struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockIdentifierMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockIdentifierMockRecorder is the mock recorder for MockIdentifier.
|
||||
|
|
@ -328,6 +335,7 @@ func (mr *MockIdentifierMockRecorder) Identify() *gomock.Call {
|
|||
type MockMeter struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockMeterMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockMeterMockRecorder is the mock recorder for MockMeter.
|
||||
|
|
@ -366,6 +374,7 @@ func (mr *MockMeterMockRecorder) CurrentPower() *gomock.Call {
|
|||
type MockMeterEnergy struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockMeterEnergyMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockMeterEnergyMockRecorder is the mock recorder for MockMeterEnergy.
|
||||
|
|
@ -404,6 +413,7 @@ func (mr *MockMeterEnergyMockRecorder) TotalEnergy() *gomock.Call {
|
|||
type MockPhaseCurrents struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockPhaseCurrentsMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockPhaseCurrentsMockRecorder is the mock recorder for MockPhaseCurrents.
|
||||
|
|
@ -444,6 +454,7 @@ func (mr *MockPhaseCurrentsMockRecorder) Currents() *gomock.Call {
|
|||
type MockVehicle struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockVehicleMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockVehicleMockRecorder is the mock recorder for MockVehicle.
|
||||
|
|
@ -592,6 +603,7 @@ func (mr *MockVehicleMockRecorder) Title() *gomock.Call {
|
|||
type MockChargeRater struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockChargeRaterMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockChargeRaterMockRecorder is the mock recorder for MockChargeRater.
|
||||
|
|
@ -630,6 +642,7 @@ func (mr *MockChargeRaterMockRecorder) ChargedEnergy() *gomock.Call {
|
|||
type MockBattery struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockBatteryMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockBatteryMockRecorder is the mock recorder for MockBattery.
|
||||
|
|
@ -668,6 +681,7 @@ func (mr *MockBatteryMockRecorder) Soc() *gomock.Call {
|
|||
type MockTariff struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockTariffMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockTariffMockRecorder is the mock recorder for MockTariff.
|
||||
|
|
@ -720,6 +734,7 @@ func (mr *MockTariffMockRecorder) Type() *gomock.Call {
|
|||
type MockBatteryController struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockBatteryControllerMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockBatteryControllerMockRecorder is the mock recorder for MockBatteryController.
|
||||
|
|
@ -757,6 +772,7 @@ func (mr *MockBatteryControllerMockRecorder) SetBatteryMode(arg0 any) *gomock.Ca
|
|||
type MockCircuit struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockCircuitMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockCircuitMockRecorder is the mock recorder for MockCircuit.
|
||||
|
|
@ -875,15 +891,15 @@ func (mr *MockCircuitMockRecorder) HasMeter() *gomock.Call {
|
|||
}
|
||||
|
||||
// RegisterChild mocks base method.
|
||||
func (m *MockCircuit) RegisterChild(arg0 Circuit) {
|
||||
func (m *MockCircuit) RegisterChild(child Circuit) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "RegisterChild", arg0)
|
||||
m.ctrl.Call(m, "RegisterChild", child)
|
||||
}
|
||||
|
||||
// RegisterChild indicates an expected call of RegisterChild.
|
||||
func (mr *MockCircuitMockRecorder) RegisterChild(arg0 any) *gomock.Call {
|
||||
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), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterChild", reflect.TypeOf((*MockCircuit)(nil).RegisterChild), child)
|
||||
}
|
||||
|
||||
// SetMaxCurrent mocks base method.
|
||||
|
|
@ -937,43 +953,43 @@ func (mr *MockCircuitMockRecorder) Update(arg0 any) *gomock.Call {
|
|||
}
|
||||
|
||||
// ValidateCurrent mocks base method.
|
||||
func (m *MockCircuit) ValidateCurrent(arg0, arg1 float64) float64 {
|
||||
func (m *MockCircuit) ValidateCurrent(old, new float64) float64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ValidateCurrent", arg0, arg1)
|
||||
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(arg0, arg1 any) *gomock.Call {
|
||||
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), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateCurrent", reflect.TypeOf((*MockCircuit)(nil).ValidateCurrent), old, new)
|
||||
}
|
||||
|
||||
// ValidatePower mocks base method.
|
||||
func (m *MockCircuit) ValidatePower(arg0, arg1 float64) float64 {
|
||||
func (m *MockCircuit) ValidatePower(old, new float64) float64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "ValidatePower", arg0, arg1)
|
||||
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(arg0, arg1 any) *gomock.Call {
|
||||
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), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidatePower", reflect.TypeOf((*MockCircuit)(nil).ValidatePower), old, new)
|
||||
}
|
||||
|
||||
// Wrap mocks base method.
|
||||
func (m *MockCircuit) Wrap(arg0 Circuit) error {
|
||||
func (m *MockCircuit) Wrap(parent Circuit) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "Wrap", arg0)
|
||||
ret := m.ctrl.Call(m, "Wrap", parent)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// Wrap indicates an expected call of Wrap.
|
||||
func (mr *MockCircuitMockRecorder) Wrap(arg0 any) *gomock.Call {
|
||||
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), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wrap", reflect.TypeOf((*MockCircuit)(nil).Wrap), parent)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import (
|
|||
type MockAPI struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockAPIMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockAPIMockRecorder is the mock recorder for MockAPI.
|
||||
|
|
@ -321,18 +322,18 @@ func (mr *MockAPIMockRecorder) GetPhases() *gomock.Call {
|
|||
}
|
||||
|
||||
// GetPlan mocks base method.
|
||||
func (m *MockAPI) GetPlan(arg0 time.Time, arg1 time.Duration) (api.Rates, error) {
|
||||
func (m *MockAPI) GetPlan(targetTime time.Time, requiredDuration time.Duration) (api.Rates, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetPlan", arg0, arg1)
|
||||
ret := m.ctrl.Call(m, "GetPlan", targetTime, requiredDuration)
|
||||
ret0, _ := ret[0].(api.Rates)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// GetPlan indicates an expected call of GetPlan.
|
||||
func (mr *MockAPIMockRecorder) GetPlan(arg0, arg1 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) GetPlan(targetTime, requiredDuration any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlan", reflect.TypeOf((*MockAPI)(nil).GetPlan), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlan", reflect.TypeOf((*MockAPI)(nil).GetPlan), targetTime, requiredDuration)
|
||||
}
|
||||
|
||||
// GetPlanEnergy mocks base method.
|
||||
|
|
@ -366,17 +367,17 @@ func (mr *MockAPIMockRecorder) GetPlanGoal() *gomock.Call {
|
|||
}
|
||||
|
||||
// GetPlanRequiredDuration mocks base method.
|
||||
func (m *MockAPI) GetPlanRequiredDuration(arg0, arg1 float64) time.Duration {
|
||||
func (m *MockAPI) GetPlanRequiredDuration(goal, maxPower float64) time.Duration {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetPlanRequiredDuration", arg0, arg1)
|
||||
ret := m.ctrl.Call(m, "GetPlanRequiredDuration", goal, maxPower)
|
||||
ret0, _ := ret[0].(time.Duration)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetPlanRequiredDuration indicates an expected call of GetPlanRequiredDuration.
|
||||
func (mr *MockAPIMockRecorder) GetPlanRequiredDuration(arg0, arg1 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) GetPlanRequiredDuration(goal, maxPower any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanRequiredDuration", reflect.TypeOf((*MockAPI)(nil).GetPlanRequiredDuration), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanRequiredDuration", reflect.TypeOf((*MockAPI)(nil).GetPlanRequiredDuration), goal, maxPower)
|
||||
}
|
||||
|
||||
// GetPriority mocks base method.
|
||||
|
|
@ -516,89 +517,89 @@ func (mr *MockAPIMockRecorder) RemoteControl(arg0, arg1 any) *gomock.Call {
|
|||
}
|
||||
|
||||
// SetBatteryBoost mocks base method.
|
||||
func (m *MockAPI) SetBatteryBoost(arg0 bool) error {
|
||||
func (m *MockAPI) SetBatteryBoost(enable bool) error {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "SetBatteryBoost", arg0)
|
||||
ret := m.ctrl.Call(m, "SetBatteryBoost", enable)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// SetBatteryBoost indicates an expected call of SetBatteryBoost.
|
||||
func (mr *MockAPIMockRecorder) SetBatteryBoost(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetBatteryBoost(enable any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBatteryBoost", reflect.TypeOf((*MockAPI)(nil).SetBatteryBoost), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBatteryBoost", reflect.TypeOf((*MockAPI)(nil).SetBatteryBoost), enable)
|
||||
}
|
||||
|
||||
// SetDisableDelay mocks base method.
|
||||
func (m *MockAPI) SetDisableDelay(arg0 time.Duration) {
|
||||
func (m *MockAPI) SetDisableDelay(delay time.Duration) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetDisableDelay", arg0)
|
||||
m.ctrl.Call(m, "SetDisableDelay", delay)
|
||||
}
|
||||
|
||||
// SetDisableDelay indicates an expected call of SetDisableDelay.
|
||||
func (mr *MockAPIMockRecorder) SetDisableDelay(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetDisableDelay(delay any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDisableDelay", reflect.TypeOf((*MockAPI)(nil).SetDisableDelay), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDisableDelay", reflect.TypeOf((*MockAPI)(nil).SetDisableDelay), delay)
|
||||
}
|
||||
|
||||
// SetDisableThreshold mocks base method.
|
||||
func (m *MockAPI) SetDisableThreshold(arg0 float64) {
|
||||
func (m *MockAPI) SetDisableThreshold(threshold float64) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetDisableThreshold", arg0)
|
||||
m.ctrl.Call(m, "SetDisableThreshold", threshold)
|
||||
}
|
||||
|
||||
// SetDisableThreshold indicates an expected call of SetDisableThreshold.
|
||||
func (mr *MockAPIMockRecorder) SetDisableThreshold(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetDisableThreshold(threshold any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDisableThreshold", reflect.TypeOf((*MockAPI)(nil).SetDisableThreshold), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDisableThreshold", reflect.TypeOf((*MockAPI)(nil).SetDisableThreshold), threshold)
|
||||
}
|
||||
|
||||
// SetEnableDelay mocks base method.
|
||||
func (m *MockAPI) SetEnableDelay(arg0 time.Duration) {
|
||||
func (m *MockAPI) SetEnableDelay(delay time.Duration) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetEnableDelay", arg0)
|
||||
m.ctrl.Call(m, "SetEnableDelay", delay)
|
||||
}
|
||||
|
||||
// SetEnableDelay indicates an expected call of SetEnableDelay.
|
||||
func (mr *MockAPIMockRecorder) SetEnableDelay(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetEnableDelay(delay any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEnableDelay", reflect.TypeOf((*MockAPI)(nil).SetEnableDelay), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEnableDelay", reflect.TypeOf((*MockAPI)(nil).SetEnableDelay), delay)
|
||||
}
|
||||
|
||||
// SetEnableThreshold mocks base method.
|
||||
func (m *MockAPI) SetEnableThreshold(arg0 float64) {
|
||||
func (m *MockAPI) SetEnableThreshold(threshold float64) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetEnableThreshold", arg0)
|
||||
m.ctrl.Call(m, "SetEnableThreshold", threshold)
|
||||
}
|
||||
|
||||
// SetEnableThreshold indicates an expected call of SetEnableThreshold.
|
||||
func (mr *MockAPIMockRecorder) SetEnableThreshold(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetEnableThreshold(threshold any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEnableThreshold", reflect.TypeOf((*MockAPI)(nil).SetEnableThreshold), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetEnableThreshold", reflect.TypeOf((*MockAPI)(nil).SetEnableThreshold), threshold)
|
||||
}
|
||||
|
||||
// SetLimitEnergy mocks base method.
|
||||
func (m *MockAPI) SetLimitEnergy(arg0 float64) {
|
||||
func (m *MockAPI) SetLimitEnergy(energy float64) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetLimitEnergy", arg0)
|
||||
m.ctrl.Call(m, "SetLimitEnergy", energy)
|
||||
}
|
||||
|
||||
// SetLimitEnergy indicates an expected call of SetLimitEnergy.
|
||||
func (mr *MockAPIMockRecorder) SetLimitEnergy(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetLimitEnergy(energy any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLimitEnergy", reflect.TypeOf((*MockAPI)(nil).SetLimitEnergy), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLimitEnergy", reflect.TypeOf((*MockAPI)(nil).SetLimitEnergy), energy)
|
||||
}
|
||||
|
||||
// SetLimitSoc mocks base method.
|
||||
func (m *MockAPI) SetLimitSoc(arg0 int) {
|
||||
func (m *MockAPI) SetLimitSoc(soc int) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetLimitSoc", arg0)
|
||||
m.ctrl.Call(m, "SetLimitSoc", soc)
|
||||
}
|
||||
|
||||
// SetLimitSoc indicates an expected call of SetLimitSoc.
|
||||
func (mr *MockAPIMockRecorder) SetLimitSoc(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetLimitSoc(soc any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLimitSoc", reflect.TypeOf((*MockAPI)(nil).SetLimitSoc), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLimitSoc", reflect.TypeOf((*MockAPI)(nil).SetLimitSoc), soc)
|
||||
}
|
||||
|
||||
// SetMaxCurrent mocks base method.
|
||||
|
|
@ -682,27 +683,27 @@ func (mr *MockAPIMockRecorder) SetPriority(arg0 any) *gomock.Call {
|
|||
}
|
||||
|
||||
// SetSmartCostLimit mocks base method.
|
||||
func (m *MockAPI) SetSmartCostLimit(arg0 *float64) {
|
||||
func (m *MockAPI) SetSmartCostLimit(limit *float64) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetSmartCostLimit", arg0)
|
||||
m.ctrl.Call(m, "SetSmartCostLimit", limit)
|
||||
}
|
||||
|
||||
// SetSmartCostLimit indicates an expected call of SetSmartCostLimit.
|
||||
func (mr *MockAPIMockRecorder) SetSmartCostLimit(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetSmartCostLimit(limit any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSmartCostLimit", reflect.TypeOf((*MockAPI)(nil).SetSmartCostLimit), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSmartCostLimit", reflect.TypeOf((*MockAPI)(nil).SetSmartCostLimit), limit)
|
||||
}
|
||||
|
||||
// SetVehicle mocks base method.
|
||||
func (m *MockAPI) SetVehicle(arg0 api.Vehicle) {
|
||||
func (m *MockAPI) SetVehicle(vehicle api.Vehicle) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetVehicle", arg0)
|
||||
m.ctrl.Call(m, "SetVehicle", vehicle)
|
||||
}
|
||||
|
||||
// SetVehicle indicates an expected call of SetVehicle.
|
||||
func (mr *MockAPIMockRecorder) SetVehicle(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetVehicle(vehicle any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVehicle", reflect.TypeOf((*MockAPI)(nil).SetVehicle), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetVehicle", reflect.TypeOf((*MockAPI)(nil).SetVehicle), vehicle)
|
||||
}
|
||||
|
||||
// SocBasedPlanning mocks base method.
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import (
|
|||
type MockAPI struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockAPIMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockAPIMockRecorder is the mock recorder for MockAPI.
|
||||
|
|
@ -112,27 +113,27 @@ func (mr *MockAPIMockRecorder) Name() *gomock.Call {
|
|||
}
|
||||
|
||||
// SetLimitSoc mocks base method.
|
||||
func (m *MockAPI) SetLimitSoc(arg0 int) {
|
||||
func (m *MockAPI) SetLimitSoc(soc int) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetLimitSoc", arg0)
|
||||
m.ctrl.Call(m, "SetLimitSoc", soc)
|
||||
}
|
||||
|
||||
// SetLimitSoc indicates an expected call of SetLimitSoc.
|
||||
func (mr *MockAPIMockRecorder) SetLimitSoc(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetLimitSoc(soc any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLimitSoc", reflect.TypeOf((*MockAPI)(nil).SetLimitSoc), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLimitSoc", reflect.TypeOf((*MockAPI)(nil).SetLimitSoc), soc)
|
||||
}
|
||||
|
||||
// SetMinSoc mocks base method.
|
||||
func (m *MockAPI) SetMinSoc(arg0 int) {
|
||||
func (m *MockAPI) SetMinSoc(soc int) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetMinSoc", arg0)
|
||||
m.ctrl.Call(m, "SetMinSoc", soc)
|
||||
}
|
||||
|
||||
// SetMinSoc indicates an expected call of SetMinSoc.
|
||||
func (mr *MockAPIMockRecorder) SetMinSoc(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetMinSoc(soc any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMinSoc", reflect.TypeOf((*MockAPI)(nil).SetMinSoc), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMinSoc", reflect.TypeOf((*MockAPI)(nil).SetMinSoc), soc)
|
||||
}
|
||||
|
||||
// SetPlanSoc mocks base method.
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ import (
|
|||
type MockAPI struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockAPIMockRecorder
|
||||
isgomock struct{}
|
||||
}
|
||||
|
||||
// MockAPIMockRecorder is the mock recorder for MockAPI.
|
||||
|
|
@ -39,28 +40,28 @@ func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
|
|||
}
|
||||
|
||||
// SetString mocks base method.
|
||||
func (m *MockAPI) SetString(arg0, arg1 string) {
|
||||
func (m *MockAPI) SetString(key, value string) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "SetString", arg0, arg1)
|
||||
m.ctrl.Call(m, "SetString", key, value)
|
||||
}
|
||||
|
||||
// SetString indicates an expected call of SetString.
|
||||
func (mr *MockAPIMockRecorder) SetString(arg0, arg1 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) SetString(key, value any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetString", reflect.TypeOf((*MockAPI)(nil).SetString), arg0, arg1)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetString", reflect.TypeOf((*MockAPI)(nil).SetString), key, value)
|
||||
}
|
||||
|
||||
// String mocks base method.
|
||||
func (m *MockAPI) String(arg0 string) (string, error) {
|
||||
func (m *MockAPI) String(key string) (string, error) {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "String", arg0)
|
||||
ret := m.ctrl.Call(m, "String", key)
|
||||
ret0, _ := ret[0].(string)
|
||||
ret1, _ := ret[1].(error)
|
||||
return ret0, ret1
|
||||
}
|
||||
|
||||
// String indicates an expected call of String.
|
||||
func (mr *MockAPIMockRecorder) String(arg0 any) *gomock.Call {
|
||||
func (mr *MockAPIMockRecorder) String(key any) *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockAPI)(nil).String), arg0)
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockAPI)(nil).String), key)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue