mocks

package
v0.0.0-...-1f6e3fe Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ValidEntryPayload = `` /* 235-byte string literal not displayed */

Variables

This section is empty.

Functions

func InvalidValidEntryWithoutName

func InvalidValidEntryWithoutName() *entries.Entry

func ValidCompleteEntry

func ValidCompleteEntry() *entries.Entry

func ValidEntries

func ValidEntries() []entries.Entry

func ValidEntryWithoutDescription

func ValidEntryWithoutDescription() *entries.Entry

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Delete

func (_m *Repository) Delete(ctx context.Context, pk uuid.UUID, owner uuid.UUID) error

Delete provides a mock function with given fields: ctx, pk, owner

func (*Repository) Get

func (_m *Repository) Get(ctx context.Context, pk uuid.UUID, owner uuid.UUID) (*entries.Entry, error)

Get provides a mock function with given fields: ctx, pk, owner

func (*Repository) Query

func (_m *Repository) Query(ctx context.Context, filters *rest.Query) ([]entries.Entry, error)

Query provides a mock function with given fields: ctx, filters

func (*Repository) Save

func (_m *Repository) Save(ctx context.Context, row *entries.Entry) error

Save provides a mock function with given fields: ctx, row

Jump to

Keyboard shortcuts

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