mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 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 GRStore

type GRStore struct {
	mock.Mock
}

GRStore is an autogenerated mock type for the GRStore type

func NewGRStore

func NewGRStore(t mockConstructorTestingTNewGRStore) *GRStore

NewGRStore creates a new instance of GRStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*GRStore) ThingDeleteByID

func (_m *GRStore) ThingDeleteByID(ctx context.Context, id string) error

ThingDeleteByID provides a mock function with given fields: ctx, id

func (*GRStore) ThingGetByID

func (_m *GRStore) ThingGetByID(ctx context.Context, id string) (*gorestapi.Thing, error)

ThingGetByID provides a mock function with given fields: ctx, id

func (*GRStore) ThingSave

func (_m *GRStore) ThingSave(ctx context.Context, thing *gorestapi.Thing) error

ThingSave provides a mock function with given fields: ctx, thing

func (*GRStore) ThingsFind

func (_m *GRStore) ThingsFind(ctx context.Context, qp *queryp.QueryParameters) ([]*gorestapi.Thing, *int64, error)

ThingsFind provides a mock function with given fields: ctx, qp

func (*GRStore) WidgetDeleteByID

func (_m *GRStore) WidgetDeleteByID(ctx context.Context, id string) error

WidgetDeleteByID provides a mock function with given fields: ctx, id

func (*GRStore) WidgetGetByID

func (_m *GRStore) WidgetGetByID(ctx context.Context, id string) (*gorestapi.Widget, error)

WidgetGetByID provides a mock function with given fields: ctx, id

func (*GRStore) WidgetSave

func (_m *GRStore) WidgetSave(ctx context.Context, thing *gorestapi.Widget) error

WidgetSave provides a mock function with given fields: ctx, thing

func (*GRStore) WidgetsFind

func (_m *GRStore) WidgetsFind(ctx context.Context, qp *queryp.QueryParameters) ([]*gorestapi.Widget, *int64, error)

WidgetsFind provides a mock function with given fields: ctx, qp

type ThingStore

type ThingStore struct {
	mock.Mock
}

ThingStore is an autogenerated mock type for the ThingStore type

func (*ThingStore) ThingDeleteByID

func (_m *ThingStore) ThingDeleteByID(_a0 context.Context, _a1 string) error

ThingDeleteByID provides a mock function with given fields: _a0, _a1

func (*ThingStore) ThingFind

func (_m *ThingStore) ThingFind(_a0 context.Context) ([]*gorestapi.Thing, error)

ThingFind provides a mock function with given fields: _a0

func (*ThingStore) ThingGetByID

func (_m *ThingStore) ThingGetByID(_a0 context.Context, _a1 string) (*gorestapi.Thing, error)

ThingGetByID provides a mock function with given fields: _a0, _a1

func (*ThingStore) ThingSave

func (_m *ThingStore) ThingSave(_a0 context.Context, _a1 *gorestapi.Thing) (string, error)

ThingSave provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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