Documentation ¶
Index ¶
- type ProductService
- type ProductService_Expecter
- type ProductService_Get_Call
- func (_c *ProductService_Get_Call) Return(_a0 domain.BasicProduct, _a1 error) *ProductService_Get_Call
- func (_c *ProductService_Get_Call) Run(run func(ctx context.Context, marketplaceCode string)) *ProductService_Get_Call
- func (_c *ProductService_Get_Call) RunAndReturn(run func(context.Context, string) (domain.BasicProduct, error)) *ProductService_Get_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductService ¶
ProductService is an autogenerated mock type for the ProductService type
func NewProductService ¶
func NewProductService(t interface { mock.TestingT Cleanup(func()) }) *ProductService
NewProductService creates a new instance of ProductService. 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.
func (*ProductService) EXPECT ¶
func (_m *ProductService) EXPECT() *ProductService_Expecter
func (*ProductService) Get ¶
func (_m *ProductService) Get(ctx context.Context, marketplaceCode string) (domain.BasicProduct, error)
Get provides a mock function with given fields: ctx, marketplaceCode
type ProductService_Expecter ¶
type ProductService_Expecter struct {
// contains filtered or unexported fields
}
func (*ProductService_Expecter) Get ¶
func (_e *ProductService_Expecter) Get(ctx interface{}, marketplaceCode interface{}) *ProductService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- marketplaceCode string
type ProductService_Get_Call ¶
ProductService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*ProductService_Get_Call) Return ¶
func (_c *ProductService_Get_Call) Return(_a0 domain.BasicProduct, _a1 error) *ProductService_Get_Call
func (*ProductService_Get_Call) Run ¶
func (_c *ProductService_Get_Call) Run(run func(ctx context.Context, marketplaceCode string)) *ProductService_Get_Call
func (*ProductService_Get_Call) RunAndReturn ¶
func (_c *ProductService_Get_Call) RunAndReturn(run func(context.Context, string) (domain.BasicProduct, error)) *ProductService_Get_Call
Click to show internal directories.
Click to hide internal directories.