mocks

package
v0.0.0-...-e85e4ab Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

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

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

type Services struct {
	mock.Mock
}

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

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

func (*Services) Report

func (_m *Services) Report(ctx context.Context) ([]productbatch.Report, error)

Report provides a mock function with given fields: ctx

func (*Services) ReportByID

func (_m *Services) ReportByID(ctx context.Context, id int) (productbatch.Report, error)

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

Jump to

Keyboard shortcuts

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