mocks

package
v0.0.0-...-ed3454d Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *API

NewAPI creates a new instance of API. 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 (*API) GetRawTimeSeriesByThing

func (_m *API) GetRawTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time) (*iot.ArduinoSeriesRawBatch, bool, error)

GetRawTimeSeriesByThing provides a mock function with given fields: ctx, thingID, from, to

func (*API) GetTimeSeriesByThing

func (_m *API) GetTimeSeriesByThing(ctx context.Context, thingID string, from time.Time, to time.Time, interval int64, aggregationStat string) (*iot.ArduinoSeriesBatch, bool, error)

GetTimeSeriesByThing provides a mock function with given fields: ctx, thingID, from, to, interval, aggregationStat

func (*API) GetTimeSeriesStringSampling

func (_m *API) GetTimeSeriesStringSampling(ctx context.Context, properties []string, from time.Time, to time.Time, interval int32) (*iot.ArduinoSeriesBatchSampled, bool, error)

GetTimeSeriesStringSampling provides a mock function with given fields: ctx, properties, from, to, interval

func (*API) ThingList

func (_m *API) ThingList(ctx context.Context, ids []string, device *string, props bool, tags map[string]string) ([]iot.ArduinoThing, error)

ThingList provides a mock function with given fields: ctx, ids, device, props, tags

Jump to

Keyboard shortcuts

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