mocks

package
v0.0.0-...-8f7c90a Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CakesRepository

type CakesRepository struct {
	mock.Mock
}

CakesRepository is an autogenerated mock type for the CakesRepository type

func NewCakesRepository

func NewCakesRepository(t mockConstructorTestingTNewCakesRepository) *CakesRepository

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

func (*CakesRepository) Create

func (_m *CakesRepository) Create(ctx context.Context, cake *models.Cakes) (*int64, error)

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

func (*CakesRepository) Delete

func (_m *CakesRepository) Delete(ctx context.Context, id int) error

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

func (*CakesRepository) Get

func (_m *CakesRepository) Get(ctx context.Context, id int) (*models.Cakes, error)

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

func (*CakesRepository) List

func (_m *CakesRepository) List(ctx context.Context) ([]models.Cakes, error)

List provides a mock function with given fields: ctx

func (*CakesRepository) Update

func (_m *CakesRepository) Update(ctx context.Context, cake *models.Cakes) error

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

Jump to

Keyboard shortcuts

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