mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONEntity added in v0.9.0

type JSONEntity struct {
	mock.Mock
}

JSONEntity is an autogenerated mock type for the JSONEntity type

func NewJSONEntity added in v0.9.0

func NewJSONEntity(t mockConstructorTestingTNewJSONEntity) *JSONEntity

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

func (*JSONEntity) JSONField added in v0.9.0

func (_m *JSONEntity) JSONField() string

JSONField provides a mock function with given fields:

func (*JSONEntity) Schema added in v0.9.0

func (_m *JSONEntity) Schema() string

Schema provides a mock function with given fields:

func (*JSONEntity) TableName added in v0.9.0

func (_m *JSONEntity) TableName() string

TableName provides a mock function with given fields:

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage added in v0.9.0

func NewStorage(t mockConstructorTestingTNewStorage) *Storage

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

func (*Storage) Create

Create provides a mock function with given fields: ctx, ve

func (*Storage) Delete

Delete provides a mock function with given fields: ctx, ve

func (*Storage) Find

func (_m *Storage) Find(ctx context.Context, filter map[string]interface{}, paging *v1.Paging, result interface{}) (*uint64, error)

Find provides a mock function with given fields: ctx, filter, paging, result

func (*Storage) Get

Get provides a mock function with given fields: ctx, id, ve

func (*Storage) GetHistory added in v0.7.0

func (_m *Storage) GetHistory(ctx context.Context, id string, at time.Time, ve datastore.VersionedJSONEntity) error

GetHistory provides a mock function with given fields: ctx, id, at, ve

func (*Storage) Update

Update provides a mock function with given fields: ctx, ve

type VersionedEntity added in v0.9.0

type VersionedEntity struct {
	mock.Mock
}

VersionedEntity is an autogenerated mock type for the VersionedEntity type

func NewVersionedEntity added in v0.9.0

func NewVersionedEntity(t mockConstructorTestingTNewVersionedEntity) *VersionedEntity

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

func (*VersionedEntity) APIVersion added in v0.9.0

func (_m *VersionedEntity) APIVersion() string

APIVersion provides a mock function with given fields:

func (*VersionedEntity) GetMeta added in v0.9.0

func (_m *VersionedEntity) GetMeta() *v1.Meta

GetMeta provides a mock function with given fields:

func (*VersionedEntity) Kind added in v0.9.0

func (_m *VersionedEntity) Kind() string

Kind provides a mock function with given fields:

type VersionedJSONEntity added in v0.9.0

type VersionedJSONEntity struct {
	mock.Mock
}

VersionedJSONEntity is an autogenerated mock type for the VersionedJSONEntity type

func NewVersionedJSONEntity added in v0.9.0

func NewVersionedJSONEntity(t mockConstructorTestingTNewVersionedJSONEntity) *VersionedJSONEntity

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

func (*VersionedJSONEntity) APIVersion added in v0.9.0

func (_m *VersionedJSONEntity) APIVersion() string

APIVersion provides a mock function with given fields:

func (*VersionedJSONEntity) GetMeta added in v0.9.0

func (_m *VersionedJSONEntity) GetMeta() *v1.Meta

GetMeta provides a mock function with given fields:

func (*VersionedJSONEntity) JSONField added in v0.9.0

func (_m *VersionedJSONEntity) JSONField() string

JSONField provides a mock function with given fields:

func (*VersionedJSONEntity) Kind added in v0.9.0

func (_m *VersionedJSONEntity) Kind() string

Kind provides a mock function with given fields:

func (*VersionedJSONEntity) Schema added in v0.9.0

func (_m *VersionedJSONEntity) Schema() string

Schema provides a mock function with given fields:

func (*VersionedJSONEntity) TableName added in v0.9.0

func (_m *VersionedJSONEntity) TableName() string

TableName provides a mock function with given fields:

Jump to

Keyboard shortcuts

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