Documentation ¶
Index ¶
- type GiftCardHandler
- func (_m *GiftCardHandler) ApplyGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, error)
- func (_m *GiftCardHandler) EXPECT() *GiftCardHandler_Expecter
- func (_m *GiftCardHandler) RemoveGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, error)
- type GiftCardHandler_ApplyGiftCard_Call
- func (_c *GiftCardHandler_ApplyGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *GiftCardHandler_ApplyGiftCard_Call
- func (_c *GiftCardHandler_ApplyGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardHandler_ApplyGiftCard_Call
- func (_c *GiftCardHandler_ApplyGiftCard_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *GiftCardHandler_ApplyGiftCard_Call
- type GiftCardHandler_Expecter
- type GiftCardHandler_RemoveGiftCard_Call
- func (_c *GiftCardHandler_RemoveGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *GiftCardHandler_RemoveGiftCard_Call
- func (_c *GiftCardHandler_RemoveGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardHandler_RemoveGiftCard_Call
- func (_c *GiftCardHandler_RemoveGiftCard_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *GiftCardHandler_RemoveGiftCard_Call
- type VoucherHandler
- type VoucherHandler_ApplyVoucher_Call
- func (_c *VoucherHandler_ApplyVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *VoucherHandler_ApplyVoucher_Call
- func (_c *VoucherHandler_ApplyVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *VoucherHandler_ApplyVoucher_Call
- func (_c *VoucherHandler_ApplyVoucher_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *VoucherHandler_ApplyVoucher_Call
- type VoucherHandler_Expecter
- type VoucherHandler_RemoveVoucher_Call
- func (_c *VoucherHandler_RemoveVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *VoucherHandler_RemoveVoucher_Call
- func (_c *VoucherHandler_RemoveVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *VoucherHandler_RemoveVoucher_Call
- func (_c *VoucherHandler_RemoveVoucher_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *VoucherHandler_RemoveVoucher_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GiftCardHandler ¶
GiftCardHandler is an autogenerated mock type for the GiftCardHandler type
func NewGiftCardHandler ¶
func NewGiftCardHandler(t interface { mock.TestingT Cleanup(func()) }) *GiftCardHandler
NewGiftCardHandler creates a new instance of GiftCardHandler. 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 (*GiftCardHandler) ApplyGiftCard ¶
func (_m *GiftCardHandler) ApplyGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, error)
ApplyGiftCard provides a mock function with given fields: ctx, _a1, giftCardCode
func (*GiftCardHandler) EXPECT ¶
func (_m *GiftCardHandler) EXPECT() *GiftCardHandler_Expecter
type GiftCardHandler_ApplyGiftCard_Call ¶
GiftCardHandler_ApplyGiftCard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyGiftCard'
func (*GiftCardHandler_ApplyGiftCard_Call) Return ¶
func (_c *GiftCardHandler_ApplyGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *GiftCardHandler_ApplyGiftCard_Call
func (*GiftCardHandler_ApplyGiftCard_Call) Run ¶
func (_c *GiftCardHandler_ApplyGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardHandler_ApplyGiftCard_Call
func (*GiftCardHandler_ApplyGiftCard_Call) RunAndReturn ¶
func (_c *GiftCardHandler_ApplyGiftCard_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *GiftCardHandler_ApplyGiftCard_Call
type GiftCardHandler_Expecter ¶
type GiftCardHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*GiftCardHandler_Expecter) ApplyGiftCard ¶
func (_e *GiftCardHandler_Expecter) ApplyGiftCard(ctx interface{}, _a1 interface{}, giftCardCode interface{}) *GiftCardHandler_ApplyGiftCard_Call
ApplyGiftCard is a helper method to define mock.On call
- ctx context.Context
- _a1 *cart.Cart
- giftCardCode string
func (*GiftCardHandler_Expecter) RemoveGiftCard ¶
func (_e *GiftCardHandler_Expecter) RemoveGiftCard(ctx interface{}, _a1 interface{}, giftCardCode interface{}) *GiftCardHandler_RemoveGiftCard_Call
RemoveGiftCard is a helper method to define mock.On call
- ctx context.Context
- _a1 *cart.Cart
- giftCardCode string
type GiftCardHandler_RemoveGiftCard_Call ¶
GiftCardHandler_RemoveGiftCard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveGiftCard'
func (*GiftCardHandler_RemoveGiftCard_Call) Return ¶
func (_c *GiftCardHandler_RemoveGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *GiftCardHandler_RemoveGiftCard_Call
func (*GiftCardHandler_RemoveGiftCard_Call) Run ¶
func (_c *GiftCardHandler_RemoveGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardHandler_RemoveGiftCard_Call
func (*GiftCardHandler_RemoveGiftCard_Call) RunAndReturn ¶
func (_c *GiftCardHandler_RemoveGiftCard_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *GiftCardHandler_RemoveGiftCard_Call
type VoucherHandler ¶
VoucherHandler is an autogenerated mock type for the VoucherHandler type
func NewVoucherHandler ¶
func NewVoucherHandler(t interface { mock.TestingT Cleanup(func()) }) *VoucherHandler
NewVoucherHandler creates a new instance of VoucherHandler. 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 (*VoucherHandler) ApplyVoucher ¶
func (_m *VoucherHandler) ApplyVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, error)
ApplyVoucher provides a mock function with given fields: ctx, _a1, couponCode
func (*VoucherHandler) EXPECT ¶
func (_m *VoucherHandler) EXPECT() *VoucherHandler_Expecter
type VoucherHandler_ApplyVoucher_Call ¶
VoucherHandler_ApplyVoucher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyVoucher'
func (*VoucherHandler_ApplyVoucher_Call) Return ¶
func (_c *VoucherHandler_ApplyVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *VoucherHandler_ApplyVoucher_Call
func (*VoucherHandler_ApplyVoucher_Call) Run ¶
func (_c *VoucherHandler_ApplyVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *VoucherHandler_ApplyVoucher_Call
func (*VoucherHandler_ApplyVoucher_Call) RunAndReturn ¶
func (_c *VoucherHandler_ApplyVoucher_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *VoucherHandler_ApplyVoucher_Call
type VoucherHandler_Expecter ¶
type VoucherHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*VoucherHandler_Expecter) ApplyVoucher ¶
func (_e *VoucherHandler_Expecter) ApplyVoucher(ctx interface{}, _a1 interface{}, couponCode interface{}) *VoucherHandler_ApplyVoucher_Call
ApplyVoucher is a helper method to define mock.On call
- ctx context.Context
- _a1 *cart.Cart
- couponCode string
func (*VoucherHandler_Expecter) RemoveVoucher ¶
func (_e *VoucherHandler_Expecter) RemoveVoucher(ctx interface{}, _a1 interface{}, couponCode interface{}) *VoucherHandler_RemoveVoucher_Call
RemoveVoucher is a helper method to define mock.On call
- ctx context.Context
- _a1 *cart.Cart
- couponCode string
type VoucherHandler_RemoveVoucher_Call ¶
VoucherHandler_RemoveVoucher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveVoucher'
func (*VoucherHandler_RemoveVoucher_Call) Return ¶
func (_c *VoucherHandler_RemoveVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *VoucherHandler_RemoveVoucher_Call
func (*VoucherHandler_RemoveVoucher_Call) Run ¶
func (_c *VoucherHandler_RemoveVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *VoucherHandler_RemoveVoucher_Call
func (*VoucherHandler_RemoveVoucher_Call) RunAndReturn ¶
func (_c *VoucherHandler_RemoveVoucher_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, error)) *VoucherHandler_RemoveVoucher_Call