mocks

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Inverter

type Inverter struct {
	mock.Mock
}

Inverter is an autogenerated mock type for the Inverter type

func NewInverter

func NewInverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Inverter

NewInverter creates a new instance of Inverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Inverter) EXPECT

func (_m *Inverter) EXPECT() *Inverter_Expecter

func (*Inverter) GetTelemetry

func (_m *Inverter) GetTelemetry(ctx context.Context, start time.Time, end time.Time) ([]solaredge.InverterTelemetry, error)

GetTelemetry provides a mock function with given fields: ctx, start, end

type Inverter_Expecter

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

func (*Inverter_Expecter) GetTelemetry

func (_e *Inverter_Expecter) GetTelemetry(ctx interface{}, start interface{}, end interface{}) *Inverter_GetTelemetry_Call

GetTelemetry is a helper method to define mock.On call

  • ctx context.Context
  • start time.Time
  • end time.Time

type Inverter_GetTelemetry_Call

type Inverter_GetTelemetry_Call struct {
	*mock.Call
}

Inverter_GetTelemetry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTelemetry'

func (*Inverter_GetTelemetry_Call) Return

func (*Inverter_GetTelemetry_Call) Run

func (*Inverter_GetTelemetry_Call) RunAndReturn

type Site

type Site struct {
	mock.Mock
}

Site is an autogenerated mock type for the Site type

func NewSite

func NewSite(t interface {
	mock.TestingT
	Cleanup(func())
}) *Site

NewSite creates a new instance of Site. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Site) EXPECT

func (_m *Site) EXPECT() *Site_Expecter

func (*Site) GetID

func (_m *Site) GetID() int

GetID provides a mock function with given fields:

func (*Site) GetInverters

func (_m *Site) GetInverters(ctx context.Context) ([]solaredge.Inverter, error)

GetInverters provides a mock function with given fields: ctx

func (*Site) GetPowerOverview

func (_m *Site) GetPowerOverview(ctx context.Context) (solaredge.PowerOverview, error)

GetPowerOverview provides a mock function with given fields: ctx

type Site_Expecter

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

func (*Site_Expecter) GetID

func (_e *Site_Expecter) GetID() *Site_GetID_Call

GetID is a helper method to define mock.On call

func (*Site_Expecter) GetInverters

func (_e *Site_Expecter) GetInverters(ctx interface{}) *Site_GetInverters_Call

GetInverters is a helper method to define mock.On call

  • ctx context.Context

func (*Site_Expecter) GetPowerOverview

func (_e *Site_Expecter) GetPowerOverview(ctx interface{}) *Site_GetPowerOverview_Call

GetPowerOverview is a helper method to define mock.On call

  • ctx context.Context

type Site_GetID_Call

type Site_GetID_Call struct {
	*mock.Call
}

Site_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'

func (*Site_GetID_Call) Return

func (_c *Site_GetID_Call) Return(_a0 int) *Site_GetID_Call

func (*Site_GetID_Call) Run

func (_c *Site_GetID_Call) Run(run func()) *Site_GetID_Call

func (*Site_GetID_Call) RunAndReturn

func (_c *Site_GetID_Call) RunAndReturn(run func() int) *Site_GetID_Call

type Site_GetInverters_Call

type Site_GetInverters_Call struct {
	*mock.Call
}

Site_GetInverters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInverters'

func (*Site_GetInverters_Call) Return

func (*Site_GetInverters_Call) Run

func (*Site_GetInverters_Call) RunAndReturn

type Site_GetPowerOverview_Call

type Site_GetPowerOverview_Call struct {
	*mock.Call
}

Site_GetPowerOverview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPowerOverview'

func (*Site_GetPowerOverview_Call) Return

func (*Site_GetPowerOverview_Call) Run

func (*Site_GetPowerOverview_Call) RunAndReturn

Jump to

Keyboard shortcuts

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