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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductSearchService

type ProductSearchService struct {
	mock.Mock
}

ProductSearchService is an autogenerated mock type for the ProductSearchService type

func NewProductSearchService

func NewProductSearchService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProductSearchService

NewProductSearchService creates a new instance of ProductSearchService. 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 (*ProductSearchService) EXPECT

func (*ProductSearchService) Find

Find provides a mock function with given fields: ctx, searchRequest

type ProductSearchService_Expecter

type ProductSearchService_Expecter struct {
	// contains filtered or unexported fields
}

func (*ProductSearchService_Expecter) Find

func (_e *ProductSearchService_Expecter) Find(ctx interface{}, searchRequest interface{}) *ProductSearchService_Find_Call

Find is a helper method to define mock.On call

  • ctx context.Context
  • searchRequest *application.SearchRequest

type ProductSearchService_Find_Call

type ProductSearchService_Find_Call struct {
	*mock.Call
}

ProductSearchService_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ProductSearchService_Find_Call) Return

func (*ProductSearchService_Find_Call) Run

Jump to

Keyboard shortcuts

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