Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(ctx context.Context, pb productbatch.ProductBatch) (productbatch.ProductBatch, error)
- func (_m *Repository) GetByBatchNum(ctx context.Context, bn int) (productbatch.ProductBatch, error)
- func (_m *Repository) Report(ctx context.Context) ([]productbatch.Report, error)
- func (_m *Repository) ReportByID(ctx context.Context, id int) (productbatch.Report, error)
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t mockConstructorTestingTNewRepository) *Repository
NewRepository creates a new instance of Repository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Repository) Create ¶
func (_m *Repository) Create(ctx context.Context, pb productbatch.ProductBatch) (productbatch.ProductBatch, error)
Create provides a mock function with given fields: ctx, pb
func (*Repository) GetByBatchNum ¶
func (_m *Repository) GetByBatchNum(ctx context.Context, bn int) (productbatch.ProductBatch, error)
GetByBatchNum provides a mock function with given fields: ctx, bn
func (*Repository) Report ¶
func (_m *Repository) Report(ctx context.Context) ([]productbatch.Report, error)
Report provides a mock function with given fields: ctx
func (*Repository) ReportByID ¶
func (_m *Repository) ReportByID(ctx context.Context, id int) (productbatch.Report, error)
ReportByID provides a mock function with given fields: ctx, id
type Services ¶
Services is an autogenerated mock type for the Services type
func NewServices ¶
func NewServices(t mockConstructorTestingTNewServices) *Services
NewServices creates a new instance of Services. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Services) Create ¶
func (_m *Services) Create(ctx context.Context, pb productbatch.ProductBatch) (productbatch.ProductBatch, error)
Create provides a mock function with given fields: ctx, pb
func (*Services) ReportByID ¶
ReportByID provides a mock function with given fields: ctx, id