mock

package
v0.0.0-...-e05b1bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBattery

type MockBattery struct {
	// contains filtered or unexported fields
}

MockBattery is a mock of Battery interface.

func NewMockBattery

func NewMockBattery(ctrl *gomock.Controller) *MockBattery

NewMockBattery creates a new mock instance.

func (*MockBattery) EXPECT

func (m *MockBattery) EXPECT() *MockBatteryMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBattery) Soc

func (m *MockBattery) Soc() (float64, error)

Soc mocks base method.

type MockBatteryMockRecorder

type MockBatteryMockRecorder struct {
	// contains filtered or unexported fields
}

MockBatteryMockRecorder is the mock recorder for MockBattery.

func (*MockBatteryMockRecorder) Soc

func (mr *MockBatteryMockRecorder) Soc() *gomock.Call

Soc indicates an expected call of Soc.

type MockChargeRater

type MockChargeRater struct {
	// contains filtered or unexported fields
}

MockChargeRater is a mock of ChargeRater interface.

func NewMockChargeRater

func NewMockChargeRater(ctrl *gomock.Controller) *MockChargeRater

NewMockChargeRater creates a new mock instance.

func (*MockChargeRater) ChargedEnergy

func (m *MockChargeRater) ChargedEnergy() (float64, error)

ChargedEnergy mocks base method.

func (*MockChargeRater) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockChargeRaterMockRecorder

type MockChargeRaterMockRecorder struct {
	// contains filtered or unexported fields
}

MockChargeRaterMockRecorder is the mock recorder for MockChargeRater.

func (*MockChargeRaterMockRecorder) ChargedEnergy

func (mr *MockChargeRaterMockRecorder) ChargedEnergy() *gomock.Call

ChargedEnergy indicates an expected call of ChargedEnergy.

type MockChargeState

type MockChargeState struct {
	// contains filtered or unexported fields
}

MockChargeState is a mock of ChargeState interface.

func NewMockChargeState

func NewMockChargeState(ctrl *gomock.Controller) *MockChargeState

NewMockChargeState creates a new mock instance.

func (*MockChargeState) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockChargeState) Status

func (m *MockChargeState) Status() (api.ChargeStatus, error)

Status mocks base method.

type MockChargeStateMockRecorder

type MockChargeStateMockRecorder struct {
	// contains filtered or unexported fields
}

MockChargeStateMockRecorder is the mock recorder for MockChargeState.

func (*MockChargeStateMockRecorder) Status

func (mr *MockChargeStateMockRecorder) Status() *gomock.Call

Status indicates an expected call of Status.

type MockCharger

type MockCharger struct {
	// contains filtered or unexported fields
}

MockCharger is a mock of Charger interface.

func NewMockCharger

func NewMockCharger(ctrl *gomock.Controller) *MockCharger

NewMockCharger creates a new mock instance.

func (*MockCharger) EXPECT

func (m *MockCharger) EXPECT() *MockChargerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCharger) Enable

func (m *MockCharger) Enable(arg0 bool) error

Enable mocks base method.

func (*MockCharger) Enabled

func (m *MockCharger) Enabled() (bool, error)

Enabled mocks base method.

func (*MockCharger) MaxCurrent

func (m *MockCharger) MaxCurrent(arg0 int64) error

MaxCurrent mocks base method.

func (*MockCharger) Status

func (m *MockCharger) Status() (api.ChargeStatus, error)

Status mocks base method.

type MockChargerMockRecorder

type MockChargerMockRecorder struct {
	// contains filtered or unexported fields
}

MockChargerMockRecorder is the mock recorder for MockCharger.

func (*MockChargerMockRecorder) Enable

func (mr *MockChargerMockRecorder) Enable(arg0 interface{}) *gomock.Call

Enable indicates an expected call of Enable.

func (*MockChargerMockRecorder) Enabled

func (mr *MockChargerMockRecorder) Enabled() *gomock.Call

Enabled indicates an expected call of Enabled.

func (*MockChargerMockRecorder) MaxCurrent

func (mr *MockChargerMockRecorder) MaxCurrent(arg0 interface{}) *gomock.Call

MaxCurrent indicates an expected call of MaxCurrent.

func (*MockChargerMockRecorder) Status

func (mr *MockChargerMockRecorder) Status() *gomock.Call

Status indicates an expected call of Status.

type MockIdentifier

type MockIdentifier struct {
	// contains filtered or unexported fields
}

MockIdentifier is a mock of Identifier interface.

func NewMockIdentifier

func NewMockIdentifier(ctrl *gomock.Controller) *MockIdentifier

NewMockIdentifier creates a new mock instance.

func (*MockIdentifier) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIdentifier) Identify

func (m *MockIdentifier) Identify() (string, error)

Identify mocks base method.

type MockIdentifierMockRecorder

type MockIdentifierMockRecorder struct {
	// contains filtered or unexported fields
}

MockIdentifierMockRecorder is the mock recorder for MockIdentifier.

func (*MockIdentifierMockRecorder) Identify

func (mr *MockIdentifierMockRecorder) Identify() *gomock.Call

Identify indicates an expected call of Identify.

type MockMeter

type MockMeter struct {
	// contains filtered or unexported fields
}

MockMeter is a mock of Meter interface.

func NewMockMeter

func NewMockMeter(ctrl *gomock.Controller) *MockMeter

NewMockMeter creates a new mock instance.

func (*MockMeter) CurrentPower

func (m *MockMeter) CurrentPower() (float64, error)

CurrentPower mocks base method.

func (*MockMeter) EXPECT

func (m *MockMeter) EXPECT() *MockMeterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockMeterEnergy

type MockMeterEnergy struct {
	// contains filtered or unexported fields
}

MockMeterEnergy is a mock of MeterEnergy interface.

func NewMockMeterEnergy

func NewMockMeterEnergy(ctrl *gomock.Controller) *MockMeterEnergy

NewMockMeterEnergy creates a new mock instance.

func (*MockMeterEnergy) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMeterEnergy) TotalEnergy

func (m *MockMeterEnergy) TotalEnergy() (float64, error)

TotalEnergy mocks base method.

type MockMeterEnergyMockRecorder

type MockMeterEnergyMockRecorder struct {
	// contains filtered or unexported fields
}

MockMeterEnergyMockRecorder is the mock recorder for MockMeterEnergy.

func (*MockMeterEnergyMockRecorder) TotalEnergy

func (mr *MockMeterEnergyMockRecorder) TotalEnergy() *gomock.Call

TotalEnergy indicates an expected call of TotalEnergy.

type MockMeterMockRecorder

type MockMeterMockRecorder struct {
	// contains filtered or unexported fields
}

MockMeterMockRecorder is the mock recorder for MockMeter.

func (*MockMeterMockRecorder) CurrentPower

func (mr *MockMeterMockRecorder) CurrentPower() *gomock.Call

CurrentPower indicates an expected call of CurrentPower.

type MockPhaseSwitcher

type MockPhaseSwitcher struct {
	// contains filtered or unexported fields
}

MockPhaseSwitcher is a mock of PhaseSwitcher interface.

func NewMockPhaseSwitcher

func NewMockPhaseSwitcher(ctrl *gomock.Controller) *MockPhaseSwitcher

NewMockPhaseSwitcher creates a new mock instance.

func (*MockPhaseSwitcher) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPhaseSwitcher) Phases1p3p

func (m *MockPhaseSwitcher) Phases1p3p(arg0 int) error

Phases1p3p mocks base method.

type MockPhaseSwitcherMockRecorder

type MockPhaseSwitcherMockRecorder struct {
	// contains filtered or unexported fields
}

MockPhaseSwitcherMockRecorder is the mock recorder for MockPhaseSwitcher.

func (*MockPhaseSwitcherMockRecorder) Phases1p3p

func (mr *MockPhaseSwitcherMockRecorder) Phases1p3p(arg0 interface{}) *gomock.Call

Phases1p3p indicates an expected call of Phases1p3p.

type MockTariff

type MockTariff struct {
	// contains filtered or unexported fields
}

MockTariff is a mock of Tariff interface.

func NewMockTariff

func NewMockTariff(ctrl *gomock.Controller) *MockTariff

NewMockTariff creates a new mock instance.

func (*MockTariff) EXPECT

func (m *MockTariff) EXPECT() *MockTariffMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTariff) Rates

func (m *MockTariff) Rates() (api.Rates, error)

Rates mocks base method.

func (*MockTariff) Type

func (m *MockTariff) Type() api.TariffType

Type mocks base method.

type MockTariffMockRecorder

type MockTariffMockRecorder struct {
	// contains filtered or unexported fields
}

MockTariffMockRecorder is the mock recorder for MockTariff.

func (*MockTariffMockRecorder) Rates

func (mr *MockTariffMockRecorder) Rates() *gomock.Call

Rates indicates an expected call of Rates.

func (*MockTariffMockRecorder) Type

func (mr *MockTariffMockRecorder) Type() *gomock.Call

Type indicates an expected call of Type.

type MockUpdater

type MockUpdater struct {
	// contains filtered or unexported fields
}

MockUpdater is a mock of Updater interface.

func NewMockUpdater

func NewMockUpdater(ctrl *gomock.Controller) *MockUpdater

NewMockUpdater creates a new mock instance.

func (*MockUpdater) EXPECT

func (m *MockUpdater) EXPECT() *MockUpdaterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUpdater) Update

func (m *MockUpdater) Update(arg0 float64, arg1, arg2 bool)

Update mocks base method.

type MockUpdaterMockRecorder

type MockUpdaterMockRecorder struct {
	// contains filtered or unexported fields
}

MockUpdaterMockRecorder is the mock recorder for MockUpdater.

func (*MockUpdaterMockRecorder) Update

func (mr *MockUpdaterMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type MockVehicle

type MockVehicle struct {
	// contains filtered or unexported fields
}

MockVehicle is a mock of Vehicle interface.

func NewMockVehicle

func NewMockVehicle(ctrl *gomock.Controller) *MockVehicle

NewMockVehicle creates a new mock instance.

func (*MockVehicle) Capacity

func (m *MockVehicle) Capacity() float64

Capacity mocks base method.

func (*MockVehicle) EXPECT

func (m *MockVehicle) EXPECT() *MockVehicleMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVehicle) Icon

func (m *MockVehicle) Icon() string

Icon mocks base method.

func (*MockVehicle) Identifiers

func (m *MockVehicle) Identifiers() []string

Identifiers mocks base method.

func (*MockVehicle) OnIdentified

func (m *MockVehicle) OnIdentified() api.ActionConfig

OnIdentified mocks base method.

func (*MockVehicle) Phases

func (m *MockVehicle) Phases() int

Phases mocks base method.

func (*MockVehicle) SetTitle

func (m *MockVehicle) SetTitle(arg0 string)

SetTitle mocks base method.

func (*MockVehicle) Soc

func (m *MockVehicle) Soc() (float64, error)

Soc mocks base method.

func (*MockVehicle) Title

func (m *MockVehicle) Title() string

Title mocks base method.

type MockVehicleMockRecorder

type MockVehicleMockRecorder struct {
	// contains filtered or unexported fields
}

MockVehicleMockRecorder is the mock recorder for MockVehicle.

func (*MockVehicleMockRecorder) Capacity

func (mr *MockVehicleMockRecorder) Capacity() *gomock.Call

Capacity indicates an expected call of Capacity.

func (*MockVehicleMockRecorder) Icon

func (mr *MockVehicleMockRecorder) Icon() *gomock.Call

Icon indicates an expected call of Icon.

func (*MockVehicleMockRecorder) Identifiers

func (mr *MockVehicleMockRecorder) Identifiers() *gomock.Call

Identifiers indicates an expected call of Identifiers.

func (*MockVehicleMockRecorder) OnIdentified

func (mr *MockVehicleMockRecorder) OnIdentified() *gomock.Call

OnIdentified indicates an expected call of OnIdentified.

func (*MockVehicleMockRecorder) Phases

func (mr *MockVehicleMockRecorder) Phases() *gomock.Call

Phases indicates an expected call of Phases.

func (*MockVehicleMockRecorder) SetTitle

func (mr *MockVehicleMockRecorder) SetTitle(arg0 interface{}) *gomock.Call

SetTitle indicates an expected call of SetTitle.

func (*MockVehicleMockRecorder) Soc

func (mr *MockVehicleMockRecorder) Soc() *gomock.Call

Soc indicates an expected call of Soc.

func (*MockVehicleMockRecorder) Title

func (mr *MockVehicleMockRecorder) Title() *gomock.Call

Title indicates an expected call of Title.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL