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 NewRepositoryT

type NewRepositoryT interface {
	mock.TestingT
	Cleanup(func())
}

type NewServiceT

type NewServiceT interface {
	mock.TestingT
	Cleanup(func())
}

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t NewRepositoryT) *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) GetAll

GetAll provides a mock function with given fields: ctx

func (*Repository) GetById

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

func (*Repository) Store

Store provides a mock function with given fields: ctx, prod

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t NewServiceT) *Service

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

func (*Service) GetAll

GetAll provides a mock function with given fields: ctx

func (*Service) GetById

func (_m *Service) GetById(ctx context.Context, id int) (productrecord.ProductRecordGet, error)

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

func (*Service) Store

Store provides a mock function with given fields: ctx, prod

Jump to

Keyboard shortcuts

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