Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Create(ctx context.Context, zipCode string, localityName string, provinceName string, ...) (locality.Locality, error)
- func (_m *Repository) GetAll(ctx context.Context) ([]locality.Locality, error)
- func (_m *Repository) GetById(ctx context.Context, id int) (locality.Locality, error)
- func (_m *Repository) ReportSellers(ctx context.Context, id int) (locality.ReportSeller, error)
- type Service
- func (_m *Service) Create(ctx context.Context, zipCode string, localityName string, provinceName string, ...) (locality.Locality, error)
- func (_m *Service) GetAll(ctx context.Context) ([]locality.Locality, error)
- func (_m *Service) GetById(ctx context.Context, id int) (locality.Locality, error)
- func (_m *Service) ReportSellers(ctx context.Context, id int) (locality.ReportSeller, error)
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, zipCode string, localityName string, provinceName string, countryName string) (locality.Locality, error)
Create provides a mock function with given fields: ctx, zipCode, localityName, provinceName, countryName
func (*Repository) ReportSellers ¶
func (_m *Repository) ReportSellers(ctx context.Context, id int) (locality.ReportSeller, error)
ReportSellers provides a mock function with given fields: ctx, id
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
func NewService(t mockConstructorTestingTNewService) *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) Create ¶
func (_m *Service) Create(ctx context.Context, zipCode string, localityName string, provinceName string, countryName string) (locality.Locality, error)
Create provides a mock function with given fields: ctx, zipCode, localityName, provinceName, countryName
func (*Service) ReportSellers ¶
ReportSellers provides a mock function with given fields: ctx, id