mocks

package
v3.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GiftCardHandler

type GiftCardHandler struct {
	mock.Mock
}

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 (*GiftCardHandler) RemoveGiftCard

func (_m *GiftCardHandler) RemoveGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, error)

RemoveGiftCard provides a mock function with given fields: ctx, _a1, giftCardCode

type GiftCardHandler_ApplyGiftCard_Call

type GiftCardHandler_ApplyGiftCard_Call struct {
	*mock.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 (*GiftCardHandler_ApplyGiftCard_Call) Run

func (*GiftCardHandler_ApplyGiftCard_Call) RunAndReturn

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

type GiftCardHandler_RemoveGiftCard_Call struct {
	*mock.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 (*GiftCardHandler_RemoveGiftCard_Call) Run

func (*GiftCardHandler_RemoveGiftCard_Call) RunAndReturn

type VoucherHandler

type VoucherHandler struct {
	mock.Mock
}

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 (*VoucherHandler) RemoveVoucher

func (_m *VoucherHandler) RemoveVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, error)

RemoveVoucher provides a mock function with given fields: ctx, _a1, couponCode

type VoucherHandler_ApplyVoucher_Call

type VoucherHandler_ApplyVoucher_Call struct {
	*mock.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 (*VoucherHandler_ApplyVoucher_Call) Run

func (*VoucherHandler_ApplyVoucher_Call) RunAndReturn

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

type VoucherHandler_RemoveVoucher_Call struct {
	*mock.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 (*VoucherHandler_RemoveVoucher_Call) Run

func (*VoucherHandler_RemoveVoucher_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL