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 ProductService

type ProductService struct {
	mock.Mock
}

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 (*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

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

Jump to

Keyboard shortcuts

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