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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemValidator

type ItemValidator struct {
	mock.Mock
}

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

type ItemValidator_Validate_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

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