Documentation ¶
Overview ¶
Package vehicle is a generated GoMock package.
Index ¶
- Variables
- type API
- type MockAPI
- func (m *MockAPI) EXPECT() *MockAPIMockRecorder
- func (m *MockAPI) GetLimitSoc() int
- func (m *MockAPI) GetMinSoc() int
- func (m *MockAPI) GetPlanSoc() (time.Time, int)
- func (m *MockAPI) GetRepeatingPlans() []api.RepeatingPlanStruct
- func (m *MockAPI) Instance() api.Vehicle
- func (m *MockAPI) Name() string
- func (m *MockAPI) SetLimitSoc(soc int)
- func (m *MockAPI) SetMinSoc(soc int)
- func (m *MockAPI) SetPlanSoc(arg0 time.Time, arg1 int) error
- func (m *MockAPI) SetRepeatingPlans(arg0 []api.RepeatingPlanStruct) error
- type MockAPIMockRecorder
- func (mr *MockAPIMockRecorder) GetLimitSoc() *gomock.Call
- func (mr *MockAPIMockRecorder) GetMinSoc() *gomock.Call
- func (mr *MockAPIMockRecorder) GetPlanSoc() *gomock.Call
- func (mr *MockAPIMockRecorder) GetRepeatingPlans() *gomock.Call
- func (mr *MockAPIMockRecorder) Instance() *gomock.Call
- func (mr *MockAPIMockRecorder) Name() *gomock.Call
- func (mr *MockAPIMockRecorder) SetLimitSoc(soc any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetMinSoc(soc any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetPlanSoc(arg0, arg1 any) *gomock.Call
- func (mr *MockAPIMockRecorder) SetRepeatingPlans(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var Publish func()
Publish publishes vehicle updates at site level
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { // Instance returns the vehicle instance Instance() api.Vehicle // Name returns the vehicle name Name() string // GetMinSoc returns the min soc GetMinSoc() int // SetMinSoc sets the min soc SetMinSoc(soc int) // GetLimitSoc returns the limit soc GetLimitSoc() int // SetLimitSoc sets the limit soc SetLimitSoc(soc int) // GetPlanSoc returns the charge plan soc GetPlanSoc() (time.Time, int) // SetPlanSoc sets the charge plan time and soc SetPlanSoc(time.Time, int) error // GetRepeatingPlans returns every repeating plan GetRepeatingPlans() []api.RepeatingPlanStruct // SetRepeatingPlans stores every repeating plan SetRepeatingPlans([]api.RepeatingPlanStruct) error }
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAPI) GetPlanSoc ¶
GetPlanSoc mocks base method.
func (*MockAPI) GetRepeatingPlans ¶
func (m *MockAPI) GetRepeatingPlans() []api.RepeatingPlanStruct
GetRepeatingPlans mocks base method.
func (*MockAPI) SetPlanSoc ¶
SetPlanSoc mocks base method.
func (*MockAPI) SetRepeatingPlans ¶
func (m *MockAPI) SetRepeatingPlans(arg0 []api.RepeatingPlanStruct) error
SetRepeatingPlans mocks base method.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
func (*MockAPIMockRecorder) GetLimitSoc ¶
func (mr *MockAPIMockRecorder) GetLimitSoc() *gomock.Call
GetLimitSoc indicates an expected call of GetLimitSoc.
func (*MockAPIMockRecorder) GetMinSoc ¶
func (mr *MockAPIMockRecorder) GetMinSoc() *gomock.Call
GetMinSoc indicates an expected call of GetMinSoc.
func (*MockAPIMockRecorder) GetPlanSoc ¶
func (mr *MockAPIMockRecorder) GetPlanSoc() *gomock.Call
GetPlanSoc indicates an expected call of GetPlanSoc.
func (*MockAPIMockRecorder) GetRepeatingPlans ¶
func (mr *MockAPIMockRecorder) GetRepeatingPlans() *gomock.Call
GetRepeatingPlans indicates an expected call of GetRepeatingPlans.
func (*MockAPIMockRecorder) Instance ¶
func (mr *MockAPIMockRecorder) Instance() *gomock.Call
Instance indicates an expected call of Instance.
func (*MockAPIMockRecorder) Name ¶
func (mr *MockAPIMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockAPIMockRecorder) SetLimitSoc ¶
func (mr *MockAPIMockRecorder) SetLimitSoc(soc any) *gomock.Call
SetLimitSoc indicates an expected call of SetLimitSoc.
func (*MockAPIMockRecorder) SetMinSoc ¶
func (mr *MockAPIMockRecorder) SetMinSoc(soc any) *gomock.Call
SetMinSoc indicates an expected call of SetMinSoc.
func (*MockAPIMockRecorder) SetPlanSoc ¶
func (mr *MockAPIMockRecorder) SetPlanSoc(arg0, arg1 any) *gomock.Call
SetPlanSoc indicates an expected call of SetPlanSoc.
func (*MockAPIMockRecorder) SetRepeatingPlans ¶
func (mr *MockAPIMockRecorder) SetRepeatingPlans(arg0 any) *gomock.Call
SetRepeatingPlans indicates an expected call of SetRepeatingPlans.