Documentation ¶
Index ¶
- func Mock(service *Service, funcs ...MockFunc)
- type MockFunc
- type Service
- func (_m *Service) Create(ctx context.Context, product *products.Product) error
- func (_m *Service) Delete(ctx context.Context, product *products.Product)
- func (_m *Service) Search(ctx context.Context, _a1 *[]products.Product, filter products.Filter) error
- func (_m *Service) Update(ctx context.Context, product *products.Product, changes rel.Changeset) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockFunc ¶
type MockFunc func(service *Service)
MockFunc function.
func MockSearch ¶
MockSearch util.
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
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. The first argument is typically a *testing.T value.
Click to show internal directories.
Click to hide internal directories.