Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemValidator ¶
ItemValidator is an autogenerated mock type for the ItemValidator type
func NewItemValidator ¶
func NewItemValidator(t interface { mock.TestingT Cleanup(func()) }) *ItemValidator
NewItemValidator creates a new instance of ItemValidator. 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 (*ItemValidator) EXPECT ¶
func (_m *ItemValidator) EXPECT() *ItemValidator_Expecter
func (*ItemValidator) Validate ¶
func (_m *ItemValidator) Validate(ctx context.Context, session *web.Session, _a2 *decorator.DecoratedCart, deliveryCode string, request cart.AddRequest, product domain.BasicProduct) error
Validate provides a mock function with given fields: ctx, session, _a2, deliveryCode, request, product
type ItemValidator_Expecter ¶
type ItemValidator_Expecter struct {
// contains filtered or unexported fields
}
func (*ItemValidator_Expecter) Validate ¶
func (_e *ItemValidator_Expecter) Validate(ctx interface{}, session interface{}, _a2 interface{}, deliveryCode interface{}, request interface{}, product interface{}) *ItemValidator_Validate_Call
Validate is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- _a2 *decorator.DecoratedCart
- deliveryCode string
- request cart.AddRequest
- product domain.BasicProduct
type ItemValidator_Validate_Call ¶
ItemValidator_Validate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Validate'
func (*ItemValidator_Validate_Call) Return ¶
func (_c *ItemValidator_Validate_Call) Return(_a0 error) *ItemValidator_Validate_Call
func (*ItemValidator_Validate_Call) Run ¶
func (_c *ItemValidator_Validate_Call) Run(run func(ctx context.Context, session *web.Session, _a2 *decorator.DecoratedCart, deliveryCode string, request cart.AddRequest, product domain.BasicProduct)) *ItemValidator_Validate_Call
func (*ItemValidator_Validate_Call) RunAndReturn ¶
func (_c *ItemValidator_Validate_Call) RunAndReturn(run func(context.Context, *web.Session, *decorator.DecoratedCart, string, cart.AddRequest, domain.BasicProduct) error) *ItemValidator_Validate_Call
Click to show internal directories.
Click to hide internal directories.