Documentation ¶
Index ¶
- type CakesRepository
- func (_m *CakesRepository) Create(ctx context.Context, cake *models.Cakes) (*int64, error)
- func (_m *CakesRepository) Delete(ctx context.Context, id int) error
- func (_m *CakesRepository) Get(ctx context.Context, id int) (*models.Cakes, error)
- func (_m *CakesRepository) List(ctx context.Context) ([]models.Cakes, error)
- func (_m *CakesRepository) Update(ctx context.Context, cake *models.Cakes) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CakesRepository ¶
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) Delete ¶
func (_m *CakesRepository) Delete(ctx context.Context, id int) error
Delete provides a mock function with given fields: ctx, id
Click to show internal directories.
Click to hide internal directories.