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 ValidCategoryPayload = `{
	"name": "a name",
	"description":"a description"
}`

Variables

This section is empty.

Functions

func InvalidValidCategoryWithoutName

func InvalidValidCategoryWithoutName() *categories.Category

func ValidCategories

func ValidCategories() []categories.Category

func ValidCategoryWithoutDescription

func ValidCategoryWithoutDescription() *categories.Category

func ValidCompleteCategory

func ValidCompleteCategory() *categories.Category

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) (*categories.Category, 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) ([]categories.Category, error)

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

func (*Repository) Save

func (_m *Repository) Save(ctx context.Context, row *categories.Category) 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