// Code generated by MockGen. DO NOT EDIT. // Source: github.com/evcc-io/evcc/core/vehicle (interfaces: API) // // Generated by this command: // // mockgen -package vehicle -destination mock.go -mock_names API=MockAPI github.com/evcc-io/evcc/core/vehicle API // // Package vehicle is a generated GoMock package. package vehicle 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 } // 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)) } // GetMinSoc mocks base method. func (m *MockAPI) GetMinSoc() int { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetMinSoc") ret0, _ := ret[0].(int) return ret0 } // GetMinSoc indicates an expected call of GetMinSoc. func (mr *MockAPIMockRecorder) GetMinSoc() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMinSoc", reflect.TypeOf((*MockAPI)(nil).GetMinSoc)) } // GetPlanSoc mocks base method. func (m *MockAPI) GetPlanSoc() (time.Time, int) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPlanSoc") ret0, _ := ret[0].(time.Time) ret1, _ := ret[1].(int) return ret0, ret1 } // GetPlanSoc indicates an expected call of GetPlanSoc. func (mr *MockAPIMockRecorder) GetPlanSoc() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanSoc", reflect.TypeOf((*MockAPI)(nil).GetPlanSoc)) } // GetPlanStrategy mocks base method. func (m *MockAPI) GetPlanStrategy() api.PlanStrategy { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetPlanStrategy") ret0, _ := ret[0].(api.PlanStrategy) return ret0 } // GetPlanStrategy indicates an expected call of GetPlanStrategy. func (mr *MockAPIMockRecorder) GetPlanStrategy() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPlanStrategy", reflect.TypeOf((*MockAPI)(nil).GetPlanStrategy)) } // GetRepeatingPlans mocks base method. func (m *MockAPI) GetRepeatingPlans() []api.RepeatingPlan { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetRepeatingPlans") ret0, _ := ret[0].([]api.RepeatingPlan) return ret0 } // GetRepeatingPlans indicates an expected call of GetRepeatingPlans. func (mr *MockAPIMockRecorder) GetRepeatingPlans() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRepeatingPlans", reflect.TypeOf((*MockAPI)(nil).GetRepeatingPlans)) } // Instance mocks base method. func (m *MockAPI) Instance() api.Vehicle { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Instance") ret0, _ := ret[0].(api.Vehicle) return ret0 } // Instance indicates an expected call of Instance. func (mr *MockAPIMockRecorder) Instance() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Instance", reflect.TypeOf((*MockAPI)(nil).Instance)) } // Name mocks base method. func (m *MockAPI) Name() string { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Name") ret0, _ := ret[0].(string) return ret0 } // Name indicates an expected call of Name. func (mr *MockAPIMockRecorder) Name() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockAPI)(nil).Name)) } // 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) } // SetMinSoc mocks base method. func (m *MockAPI) SetMinSoc(soc int) { m.ctrl.T.Helper() m.ctrl.Call(m, "SetMinSoc", soc) } // SetMinSoc indicates an expected call of SetMinSoc. 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), soc) } // SetPlanSoc mocks base method. func (m *MockAPI) SetPlanSoc(arg0 time.Time, arg1 int) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetPlanSoc", arg0, arg1) ret0, _ := ret[0].(error) return ret0 } // SetPlanSoc indicates an expected call of SetPlanSoc. func (mr *MockAPIMockRecorder) SetPlanSoc(arg0, arg1 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPlanSoc", reflect.TypeOf((*MockAPI)(nil).SetPlanSoc), arg0, arg1) } // SetPlanStrategy mocks base method. func (m *MockAPI) SetPlanStrategy(arg0 api.PlanStrategy) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetPlanStrategy", arg0) ret0, _ := ret[0].(error) return ret0 } // SetPlanStrategy indicates an expected call of SetPlanStrategy. func (mr *MockAPIMockRecorder) SetPlanStrategy(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetPlanStrategy", reflect.TypeOf((*MockAPI)(nil).SetPlanStrategy), arg0) } // SetRepeatingPlans mocks base method. func (m *MockAPI) SetRepeatingPlans(arg0 []api.RepeatingPlan) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "SetRepeatingPlans", arg0) ret0, _ := ret[0].(error) return ret0 } // SetRepeatingPlans indicates an expected call of SetRepeatingPlans. func (mr *MockAPIMockRecorder) SetRepeatingPlans(arg0 any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRepeatingPlans", reflect.TypeOf((*MockAPI)(nil).SetRepeatingPlans), arg0) }