evcc-io/core/loadpoint/mock.go

1025 lines
35 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/evcc-io/evcc/core/loadpoint (interfaces: API)
//
// Generated by this command:
//
// mockgen -package loadpoint -destination mock.go -mock_names API=MockAPI github.com/evcc-io/evcc/core/loadpoint API
//
// Package loadpoint is a generated GoMock package.
package loadpoint
import (
reflect "reflect"
time "time"
api "github.com/evcc-io/evcc/api"
gomock "go.uber.org/mock/gomock"
)
// MockAPI is a mock of API interface.
type MockAPI struct {
ctrl *gomock.Controller
recorder *MockAPIMockRecorder
isgomock struct{}
}
// MockAPIMockRecorder is the mock recorder for MockAPI.
type MockAPIMockRecorder struct {
mock *MockAPI
}
// NewMockAPI creates a new mock instance.
func NewMockAPI(ctrl *gomock.Controller) *MockAPI {
mock := &MockAPI{ctrl: ctrl}
mock.recorder = &MockAPIMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAPI) EXPECT() *MockAPIMockRecorder {
return m.recorder
}
// ActivePhases mocks base method.
func (m *MockAPI) ActivePhases() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ActivePhases")
ret0, _ := ret[0].(int)
return ret0
}
// ActivePhases indicates an expected call of ActivePhases.
func (mr *MockAPIMockRecorder) ActivePhases() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivePhases", reflect.TypeOf((*MockAPI)(nil).ActivePhases))
}
// EffectiveLimitSoc mocks base method.
func (m *MockAPI) EffectiveLimitSoc() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EffectiveLimitSoc")
ret0, _ := ret[0].(int)
return ret0
}
// EffectiveLimitSoc indicates an expected call of EffectiveLimitSoc.
func (mr *MockAPIMockRecorder) EffectiveLimitSoc() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectiveLimitSoc", reflect.TypeOf((*MockAPI)(nil).EffectiveLimitSoc))
}
// EffectiveMaxPower mocks base method.
func (m *MockAPI) EffectiveMaxPower() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EffectiveMaxPower")
ret0, _ := ret[0].(float64)
return ret0
}
// EffectiveMaxPower indicates an expected call of EffectiveMaxPower.
func (mr *MockAPIMockRecorder) EffectiveMaxPower() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectiveMaxPower", reflect.TypeOf((*MockAPI)(nil).EffectiveMaxPower))
}
// EffectiveMinPower mocks base method.
func (m *MockAPI) EffectiveMinPower() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EffectiveMinPower")
ret0, _ := ret[0].(float64)
return ret0
}
// EffectiveMinPower indicates an expected call of EffectiveMinPower.
func (mr *MockAPIMockRecorder) EffectiveMinPower() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectiveMinPower", reflect.TypeOf((*MockAPI)(nil).EffectiveMinPower))
}
// EffectivePlanId mocks base method.
func (m *MockAPI) EffectivePlanId() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EffectivePlanId")
ret0, _ := ret[0].(int)
return ret0
}
// EffectivePlanId indicates an expected call of EffectivePlanId.
func (mr *MockAPIMockRecorder) EffectivePlanId() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectivePlanId", reflect.TypeOf((*MockAPI)(nil).EffectivePlanId))
}
// EffectivePlanTime mocks base method.
func (m *MockAPI) EffectivePlanTime() time.Time {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EffectivePlanTime")
ret0, _ := ret[0].(time.Time)
return ret0
}
// EffectivePlanTime indicates an expected call of EffectivePlanTime.
func (mr *MockAPIMockRecorder) EffectivePlanTime() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectivePlanTime", reflect.TypeOf((*MockAPI)(nil).EffectivePlanTime))
}
// EffectivePriority mocks base method.
func (m *MockAPI) EffectivePriority() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EffectivePriority")
ret0, _ := ret[0].(int)
return ret0
}
// EffectivePriority indicates an expected call of EffectivePriority.
func (mr *MockAPIMockRecorder) EffectivePriority() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EffectivePriority", reflect.TypeOf((*MockAPI)(nil).EffectivePriority))
}
// GetBatteryBoost mocks base method.
func (m *MockAPI) GetBatteryBoost() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBatteryBoost")
ret0, _ := ret[0].(int)
return ret0
}
// GetBatteryBoost indicates an expected call of GetBatteryBoost.
func (mr *MockAPIMockRecorder) GetBatteryBoost() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBatteryBoost", reflect.TypeOf((*MockAPI)(nil).GetBatteryBoost))
}
// GetChargePower mocks base method.
func (m *MockAPI) 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 *MockAPIMockRecorder) GetChargePower() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargePower", reflect.TypeOf((*MockAPI)(nil).GetChargePower))
}
// GetChargePowerFlexibility mocks base method.
func (m *MockAPI) GetChargePowerFlexibility(rates api.Rates) float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChargePowerFlexibility", rates)
ret0, _ := ret[0].(float64)
return ret0
}
// GetChargePowerFlexibility indicates an expected call of GetChargePowerFlexibility.
func (mr *MockAPIMockRecorder) GetChargePowerFlexibility(rates any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargePowerFlexibility", reflect.TypeOf((*MockAPI)(nil).GetChargePowerFlexibility), rates)
}
// GetChargerRef mocks base method.
func (m *MockAPI) GetChargerRef() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChargerRef")
ret0, _ := ret[0].(string)
return ret0
}
// GetChargerRef indicates an expected call of GetChargerRef.
func (mr *MockAPIMockRecorder) GetChargerRef() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargerRef", reflect.TypeOf((*MockAPI)(nil).GetChargerRef))
}
// GetCircuit mocks base method.
func (m *MockAPI) GetCircuit() api.Circuit {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCircuit")
ret0, _ := ret[0].(api.Circuit)
return ret0
}
// GetCircuit indicates an expected call of GetCircuit.
func (mr *MockAPIMockRecorder) GetCircuit() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCircuit", reflect.TypeOf((*MockAPI)(nil).GetCircuit))
}
// GetCircuitRef mocks base method.
func (m *MockAPI) GetCircuitRef() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetCircuitRef")
ret0, _ := ret[0].(string)
return ret0
}
// GetCircuitRef indicates an expected call of GetCircuitRef.
func (mr *MockAPIMockRecorder) GetCircuitRef() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCircuitRef", reflect.TypeOf((*MockAPI)(nil).GetCircuitRef))
}
// GetDefaultMode mocks base method.
func (m *MockAPI) GetDefaultMode() api.ChargeMode {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDefaultMode")
ret0, _ := ret[0].(api.ChargeMode)
return ret0
}
// GetDefaultMode indicates an expected call of GetDefaultMode.
func (mr *MockAPIMockRecorder) GetDefaultMode() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultMode", reflect.TypeOf((*MockAPI)(nil).GetDefaultMode))
}
// GetDefaultVehicleRef mocks base method.
func (m *MockAPI) GetDefaultVehicleRef() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDefaultVehicleRef")
ret0, _ := ret[0].(string)
return ret0
}
// GetDefaultVehicleRef indicates an expected call of GetDefaultVehicleRef.
func (mr *MockAPIMockRecorder) GetDefaultVehicleRef() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDefaultVehicleRef", reflect.TypeOf((*MockAPI)(nil).GetDefaultVehicleRef))
}
// GetDisableDelay mocks base method.
func (m *MockAPI) GetDisableDelay() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDisableDelay")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// GetDisableDelay indicates an expected call of GetDisableDelay.
func (mr *MockAPIMockRecorder) GetDisableDelay() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDisableDelay", reflect.TypeOf((*MockAPI)(nil).GetDisableDelay))
}
// GetDisableThreshold mocks base method.
func (m *MockAPI) GetDisableThreshold() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetDisableThreshold")
ret0, _ := ret[0].(float64)
return ret0
}
// GetDisableThreshold indicates an expected call of GetDisableThreshold.
func (mr *MockAPIMockRecorder) GetDisableThreshold() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDisableThreshold", reflect.TypeOf((*MockAPI)(nil).GetDisableThreshold))
}
// GetEnableDelay mocks base method.
func (m *MockAPI) GetEnableDelay() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEnableDelay")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// GetEnableDelay indicates an expected call of GetEnableDelay.
func (mr *MockAPIMockRecorder) GetEnableDelay() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnableDelay", reflect.TypeOf((*MockAPI)(nil).GetEnableDelay))
}
// GetEnableThreshold mocks base method.
func (m *MockAPI) GetEnableThreshold() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetEnableThreshold")
ret0, _ := ret[0].(float64)
return ret0
}
// GetEnableThreshold indicates an expected call of GetEnableThreshold.
func (mr *MockAPIMockRecorder) GetEnableThreshold() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnableThreshold", reflect.TypeOf((*MockAPI)(nil).GetEnableThreshold))
}
// GetLimitEnergy mocks base method.
func (m *MockAPI) GetLimitEnergy() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLimitEnergy")
ret0, _ := ret[0].(float64)
return ret0
}
// GetLimitEnergy indicates an expected call of GetLimitEnergy.
func (mr *MockAPIMockRecorder) GetLimitEnergy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLimitEnergy", reflect.TypeOf((*MockAPI)(nil).GetLimitEnergy))
}
// GetLimitSoc mocks base method.
func (m *MockAPI) GetLimitSoc() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetLimitSoc")
ret0, _ := ret[0].(int)
return ret0
}
// GetLimitSoc indicates an expected call of GetLimitSoc.
func (mr *MockAPIMockRecorder) GetLimitSoc() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLimitSoc", reflect.TypeOf((*MockAPI)(nil).GetLimitSoc))
}
// GetMaxCurrent mocks base method.
func (m *MockAPI) 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 *MockAPIMockRecorder) GetMaxCurrent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxCurrent", reflect.TypeOf((*MockAPI)(nil).GetMaxCurrent))
}
// GetMaxPhaseCurrent mocks base method.
func (m *MockAPI) 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 *MockAPIMockRecorder) GetMaxPhaseCurrent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMaxPhaseCurrent", reflect.TypeOf((*MockAPI)(nil).GetMaxPhaseCurrent))
}
// GetMeterRef mocks base method.
func (m *MockAPI) GetMeterRef() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMeterRef")
ret0, _ := ret[0].(string)
return ret0
}
// GetMeterRef indicates an expected call of GetMeterRef.
func (mr *MockAPIMockRecorder) GetMeterRef() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMeterRef", reflect.TypeOf((*MockAPI)(nil).GetMeterRef))
}
// GetMinCurrent mocks base method.
func (m *MockAPI) GetMinCurrent() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMinCurrent")
ret0, _ := ret[0].(float64)
return ret0
}
// GetMinCurrent indicates an expected call of GetMinCurrent.
func (mr *MockAPIMockRecorder) GetMinCurrent() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinCurrent", reflect.TypeOf((*MockAPI)(nil).GetMinCurrent))
}
// GetMode mocks base method.
func (m *MockAPI) GetMode() api.ChargeMode {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMode")
ret0, _ := ret[0].(api.ChargeMode)
return ret0
}
// GetMode indicates an expected call of GetMode.
func (mr *MockAPIMockRecorder) GetMode() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMode", reflect.TypeOf((*MockAPI)(nil).GetMode))
}
// GetPhases mocks base method.
func (m *MockAPI) GetPhases() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPhases")
ret0, _ := ret[0].(int)
return ret0
}
// GetPhases indicates an expected call of GetPhases.
func (mr *MockAPIMockRecorder) GetPhases() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPhases", reflect.TypeOf((*MockAPI)(nil).GetPhases))
}
// GetPhasesConfigured mocks base method.
func (m *MockAPI) GetPhasesConfigured() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPhasesConfigured")
ret0, _ := ret[0].(int)
return ret0
}
// GetPhasesConfigured indicates an expected call of GetPhasesConfigured.
func (mr *MockAPIMockRecorder) GetPhasesConfigured() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPhasesConfigured", reflect.TypeOf((*MockAPI)(nil).GetPhasesConfigured))
}
// GetPlan mocks base method.
func (m *MockAPI) GetPlan(targetTime time.Time, requiredDuration, precondition time.Duration) api.Rates {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPlan", targetTime, requiredDuration, precondition)
ret0, _ := ret[0].(api.Rates)
return ret0
}
// GetPlan indicates an expected call of GetPlan.
func (mr *MockAPIMockRecorder) GetPlan(targetTime, requiredDuration, precondition any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlan", reflect.TypeOf((*MockAPI)(nil).GetPlan), targetTime, requiredDuration, precondition)
}
// GetPlanEnergy mocks base method.
func (m *MockAPI) GetPlanEnergy() (time.Time, time.Duration, float64) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPlanEnergy")
ret0, _ := ret[0].(time.Time)
ret1, _ := ret[1].(time.Duration)
ret2, _ := ret[2].(float64)
return ret0, ret1, ret2
}
// GetPlanEnergy indicates an expected call of GetPlanEnergy.
func (mr *MockAPIMockRecorder) GetPlanEnergy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanEnergy", reflect.TypeOf((*MockAPI)(nil).GetPlanEnergy))
}
// GetPlanGoal mocks base method.
func (m *MockAPI) GetPlanGoal() (float64, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPlanGoal")
ret0, _ := ret[0].(float64)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetPlanGoal indicates an expected call of GetPlanGoal.
func (mr *MockAPIMockRecorder) GetPlanGoal() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanGoal", reflect.TypeOf((*MockAPI)(nil).GetPlanGoal))
}
// GetPlanPreCondDuration mocks base method.
func (m *MockAPI) GetPlanPreCondDuration() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPlanPreCondDuration")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// GetPlanPreCondDuration indicates an expected call of GetPlanPreCondDuration.
func (mr *MockAPIMockRecorder) GetPlanPreCondDuration() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanPreCondDuration", reflect.TypeOf((*MockAPI)(nil).GetPlanPreCondDuration))
}
// GetPlanRequiredDuration mocks base method.
func (m *MockAPI) GetPlanRequiredDuration(goal, maxPower float64) time.Duration {
m.ctrl.T.Helper()
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(goal, maxPower any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanRequiredDuration", reflect.TypeOf((*MockAPI)(nil).GetPlanRequiredDuration), goal, maxPower)
}
// GetPriority mocks base method.
func (m *MockAPI) GetPriority() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetPriority")
ret0, _ := ret[0].(int)
return ret0
}
// GetPriority indicates an expected call of GetPriority.
func (mr *MockAPIMockRecorder) GetPriority() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPriority", reflect.TypeOf((*MockAPI)(nil).GetPriority))
}
// GetRemainingDuration mocks base method.
func (m *MockAPI) GetRemainingDuration() time.Duration {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRemainingDuration")
ret0, _ := ret[0].(time.Duration)
return ret0
}
// GetRemainingDuration indicates an expected call of GetRemainingDuration.
func (mr *MockAPIMockRecorder) GetRemainingDuration() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemainingDuration", reflect.TypeOf((*MockAPI)(nil).GetRemainingDuration))
}
// GetRemainingEnergy mocks base method.
func (m *MockAPI) GetRemainingEnergy() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRemainingEnergy")
ret0, _ := ret[0].(float64)
return ret0
}
// GetRemainingEnergy indicates an expected call of GetRemainingEnergy.
func (mr *MockAPIMockRecorder) GetRemainingEnergy() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRemainingEnergy", reflect.TypeOf((*MockAPI)(nil).GetRemainingEnergy))
}
// GetSmartCostLimit mocks base method.
func (m *MockAPI) GetSmartCostLimit() *float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSmartCostLimit")
ret0, _ := ret[0].(*float64)
return ret0
}
// GetSmartCostLimit indicates an expected call of GetSmartCostLimit.
func (mr *MockAPIMockRecorder) GetSmartCostLimit() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSmartCostLimit", reflect.TypeOf((*MockAPI)(nil).GetSmartCostLimit))
}
// GetSmartFeedInPriorityLimit mocks base method.
func (m *MockAPI) GetSmartFeedInPriorityLimit() *float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSmartFeedInPriorityLimit")
ret0, _ := ret[0].(*float64)
return ret0
}
// GetSmartFeedInPriorityLimit indicates an expected call of GetSmartFeedInPriorityLimit.
func (mr *MockAPIMockRecorder) GetSmartFeedInPriorityLimit() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSmartFeedInPriorityLimit", reflect.TypeOf((*MockAPI)(nil).GetSmartFeedInPriorityLimit))
}
// GetSoc mocks base method.
func (m *MockAPI) GetSoc() float64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSoc")
ret0, _ := ret[0].(float64)
return ret0
}
// GetSoc indicates an expected call of GetSoc.
func (mr *MockAPIMockRecorder) GetSoc() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSoc", reflect.TypeOf((*MockAPI)(nil).GetSoc))
}
// GetSocConfig mocks base method.
func (m *MockAPI) GetSocConfig() SocConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSocConfig")
ret0, _ := ret[0].(SocConfig)
return ret0
}
// GetSocConfig indicates an expected call of GetSocConfig.
func (mr *MockAPIMockRecorder) GetSocConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSocConfig", reflect.TypeOf((*MockAPI)(nil).GetSocConfig))
}
// GetStatus mocks base method.
func (m *MockAPI) GetStatus() api.ChargeStatus {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetStatus")
ret0, _ := ret[0].(api.ChargeStatus)
return ret0
}
// GetStatus indicates an expected call of GetStatus.
func (mr *MockAPIMockRecorder) GetStatus() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatus", reflect.TypeOf((*MockAPI)(nil).GetStatus))
}
// GetThresholds mocks base method.
func (m *MockAPI) GetThresholds() ThresholdsConfig {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetThresholds")
ret0, _ := ret[0].(ThresholdsConfig)
return ret0
}
// GetThresholds indicates an expected call of GetThresholds.
func (mr *MockAPIMockRecorder) GetThresholds() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetThresholds", reflect.TypeOf((*MockAPI)(nil).GetThresholds))
}
// GetTitle mocks base method.
func (m *MockAPI) 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 *MockAPIMockRecorder) GetTitle() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTitle", reflect.TypeOf((*MockAPI)(nil).GetTitle))
}
// GetVehicle mocks base method.
func (m *MockAPI) GetVehicle() api.Vehicle {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetVehicle")
ret0, _ := ret[0].(api.Vehicle)
return ret0
}
// GetVehicle indicates an expected call of GetVehicle.
func (mr *MockAPIMockRecorder) GetVehicle() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVehicle", reflect.TypeOf((*MockAPI)(nil).GetVehicle))
}
// HasChargeMeter mocks base method.
func (m *MockAPI) HasChargeMeter() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HasChargeMeter")
ret0, _ := ret[0].(bool)
return ret0
}
// HasChargeMeter indicates an expected call of HasChargeMeter.
func (mr *MockAPIMockRecorder) HasChargeMeter() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasChargeMeter", reflect.TypeOf((*MockAPI)(nil).HasChargeMeter))
}
// IsFastChargingActive mocks base method.
func (m *MockAPI) IsFastChargingActive() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsFastChargingActive")
ret0, _ := ret[0].(bool)
return ret0
}
// IsFastChargingActive indicates an expected call of IsFastChargingActive.
func (mr *MockAPIMockRecorder) IsFastChargingActive() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsFastChargingActive", reflect.TypeOf((*MockAPI)(nil).IsFastChargingActive))
}
// PublishEffectiveValues mocks base method.
func (m *MockAPI) PublishEffectiveValues() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "PublishEffectiveValues")
}
// PublishEffectiveValues indicates an expected call of PublishEffectiveValues.
func (mr *MockAPIMockRecorder) PublishEffectiveValues() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PublishEffectiveValues", reflect.TypeOf((*MockAPI)(nil).PublishEffectiveValues))
}
// SetBatteryBoost mocks base method.
func (m *MockAPI) SetBatteryBoost(enable bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetBatteryBoost", enable)
ret0, _ := ret[0].(error)
return ret0
}
// SetBatteryBoost indicates an expected call of SetBatteryBoost.
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), enable)
}
// SetChargerRef mocks base method.
func (m *MockAPI) SetChargerRef(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetChargerRef", arg0)
}
// SetChargerRef indicates an expected call of SetChargerRef.
func (mr *MockAPIMockRecorder) SetChargerRef(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetChargerRef", reflect.TypeOf((*MockAPI)(nil).SetChargerRef), arg0)
}
// SetCircuitRef mocks base method.
func (m *MockAPI) SetCircuitRef(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetCircuitRef", arg0)
}
// SetCircuitRef indicates an expected call of SetCircuitRef.
func (mr *MockAPIMockRecorder) SetCircuitRef(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCircuitRef", reflect.TypeOf((*MockAPI)(nil).SetCircuitRef), arg0)
}
// SetDefaultMode mocks base method.
func (m *MockAPI) SetDefaultMode(arg0 api.ChargeMode) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetDefaultMode", arg0)
}
// SetDefaultMode indicates an expected call of SetDefaultMode.
func (mr *MockAPIMockRecorder) SetDefaultMode(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultMode", reflect.TypeOf((*MockAPI)(nil).SetDefaultMode), arg0)
}
// SetDefaultVehicleRef mocks base method.
func (m *MockAPI) SetDefaultVehicleRef(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetDefaultVehicleRef", arg0)
}
// SetDefaultVehicleRef indicates an expected call of SetDefaultVehicleRef.
func (mr *MockAPIMockRecorder) SetDefaultVehicleRef(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDefaultVehicleRef", reflect.TypeOf((*MockAPI)(nil).SetDefaultVehicleRef), arg0)
}
// SetDisableDelay mocks base method.
func (m *MockAPI) SetDisableDelay(delay time.Duration) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetDisableDelay", delay)
}
// SetDisableDelay indicates an expected call of SetDisableDelay.
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), delay)
}
// SetDisableThreshold mocks base method.
func (m *MockAPI) SetDisableThreshold(threshold float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetDisableThreshold", threshold)
}
// SetDisableThreshold indicates an expected call of SetDisableThreshold.
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), threshold)
}
// SetEnableDelay mocks base method.
func (m *MockAPI) SetEnableDelay(delay time.Duration) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetEnableDelay", delay)
}
// SetEnableDelay indicates an expected call of SetEnableDelay.
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), delay)
}
// SetEnableThreshold mocks base method.
func (m *MockAPI) SetEnableThreshold(threshold float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetEnableThreshold", threshold)
}
// SetEnableThreshold indicates an expected call of SetEnableThreshold.
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), threshold)
}
// SetLimitEnergy mocks base method.
func (m *MockAPI) SetLimitEnergy(energy float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetLimitEnergy", energy)
}
// SetLimitEnergy indicates an expected call of SetLimitEnergy.
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), energy)
}
// SetLimitSoc mocks base method.
func (m *MockAPI) SetLimitSoc(soc int) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetLimitSoc", soc)
}
// SetLimitSoc indicates an expected call of SetLimitSoc.
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), soc)
}
// SetMaxCurrent mocks base method.
func (m *MockAPI) SetMaxCurrent(arg0 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetMaxCurrent", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetMaxCurrent indicates an expected call of SetMaxCurrent.
func (mr *MockAPIMockRecorder) SetMaxCurrent(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxCurrent", reflect.TypeOf((*MockAPI)(nil).SetMaxCurrent), arg0)
}
// SetMeterRef mocks base method.
func (m *MockAPI) SetMeterRef(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetMeterRef", arg0)
}
// SetMeterRef indicates an expected call of SetMeterRef.
func (mr *MockAPIMockRecorder) SetMeterRef(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMeterRef", reflect.TypeOf((*MockAPI)(nil).SetMeterRef), arg0)
}
// SetMinCurrent mocks base method.
func (m *MockAPI) SetMinCurrent(arg0 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetMinCurrent", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetMinCurrent indicates an expected call of SetMinCurrent.
func (mr *MockAPIMockRecorder) SetMinCurrent(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMinCurrent", reflect.TypeOf((*MockAPI)(nil).SetMinCurrent), arg0)
}
// SetMode mocks base method.
func (m *MockAPI) SetMode(arg0 api.ChargeMode) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetMode", arg0)
}
// SetMode indicates an expected call of SetMode.
func (mr *MockAPIMockRecorder) SetMode(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMode", reflect.TypeOf((*MockAPI)(nil).SetMode), arg0)
}
// SetPhasesConfigured mocks base method.
func (m *MockAPI) SetPhasesConfigured(arg0 int) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetPhasesConfigured", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetPhasesConfigured indicates an expected call of SetPhasesConfigured.
func (mr *MockAPIMockRecorder) SetPhasesConfigured(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPhasesConfigured", reflect.TypeOf((*MockAPI)(nil).SetPhasesConfigured), arg0)
}
// SetPlanEnergy mocks base method.
func (m *MockAPI) SetPlanEnergy(arg0 time.Time, arg1 time.Duration, arg2 float64) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetPlanEnergy", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// SetPlanEnergy indicates an expected call of SetPlanEnergy.
func (mr *MockAPIMockRecorder) SetPlanEnergy(arg0, arg1, arg2 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPlanEnergy", reflect.TypeOf((*MockAPI)(nil).SetPlanEnergy), arg0, arg1, arg2)
}
// SetPriority mocks base method.
func (m *MockAPI) SetPriority(arg0 int) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetPriority", arg0)
}
// SetPriority indicates an expected call of SetPriority.
func (mr *MockAPIMockRecorder) SetPriority(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPriority", reflect.TypeOf((*MockAPI)(nil).SetPriority), arg0)
}
// SetSmartCostLimit mocks base method.
func (m *MockAPI) SetSmartCostLimit(limit *float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetSmartCostLimit", limit)
}
// SetSmartCostLimit indicates an expected call of SetSmartCostLimit.
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), limit)
}
// SetSmartFeedInPriorityLimit mocks base method.
func (m *MockAPI) SetSmartFeedInPriorityLimit(limit *float64) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetSmartFeedInPriorityLimit", limit)
}
// SetSmartFeedInPriorityLimit indicates an expected call of SetSmartFeedInPriorityLimit.
func (mr *MockAPIMockRecorder) SetSmartFeedInPriorityLimit(limit any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSmartFeedInPriorityLimit", reflect.TypeOf((*MockAPI)(nil).SetSmartFeedInPriorityLimit), limit)
}
// SetSocConfig mocks base method.
func (m *MockAPI) SetSocConfig(soc SocConfig) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetSocConfig", soc)
}
// SetSocConfig indicates an expected call of SetSocConfig.
func (mr *MockAPIMockRecorder) SetSocConfig(soc any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSocConfig", reflect.TypeOf((*MockAPI)(nil).SetSocConfig), soc)
}
// SetThresholds mocks base method.
func (m *MockAPI) SetThresholds(thresholds ThresholdsConfig) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetThresholds", thresholds)
}
// SetThresholds indicates an expected call of SetThresholds.
func (mr *MockAPIMockRecorder) SetThresholds(thresholds any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetThresholds", reflect.TypeOf((*MockAPI)(nil).SetThresholds), thresholds)
}
// SetTitle mocks base method.
func (m *MockAPI) SetTitle(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetTitle", arg0)
}
// SetTitle indicates an expected call of SetTitle.
func (mr *MockAPIMockRecorder) SetTitle(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetTitle", reflect.TypeOf((*MockAPI)(nil).SetTitle), arg0)
}
// SetVehicle mocks base method.
func (m *MockAPI) SetVehicle(vehicle api.Vehicle) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetVehicle", vehicle)
}
// SetVehicle indicates an expected call of SetVehicle.
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), vehicle)
}
// SocBasedPlanning mocks base method.
func (m *MockAPI) SocBasedPlanning() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SocBasedPlanning")
ret0, _ := ret[0].(bool)
return ret0
}
// SocBasedPlanning indicates an expected call of SocBasedPlanning.
func (mr *MockAPIMockRecorder) SocBasedPlanning() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SocBasedPlanning", reflect.TypeOf((*MockAPI)(nil).SocBasedPlanning))
}
// StartVehicleDetection mocks base method.
func (m *MockAPI) StartVehicleDetection() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "StartVehicleDetection")
}
// StartVehicleDetection indicates an expected call of StartVehicleDetection.
func (mr *MockAPIMockRecorder) StartVehicleDetection() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartVehicleDetection", reflect.TypeOf((*MockAPI)(nil).StartVehicleDetection))
}