Documentation ¶
Index ¶
- Constants
- func InvalidValidCategoryWithoutName() *categories.Category
- func ValidCategories() []categories.Category
- func ValidCategoryWithoutDescription() *categories.Category
- func ValidCompleteCategory() *categories.Category
- type Repository
- func (_m *Repository) Delete(ctx context.Context, pk uuid.UUID, owner uuid.UUID) error
- func (_m *Repository) Get(ctx context.Context, pk uuid.UUID, owner uuid.UUID) (*categories.Category, error)
- func (_m *Repository) Query(ctx context.Context, filters *rest.Query) ([]categories.Category, error)
- func (_m *Repository) Save(ctx context.Context, row *categories.Category) error
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 ¶
Repository is an autogenerated mock type for the Repository type
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
Click to show internal directories.
Click to hide internal directories.