Documentation ¶
Index ¶
- type ProductSearchService
- type ProductSearchService_Expecter
- type ProductSearchService_Find_Call
- func (_c *ProductSearchService_Find_Call) Return(_a0 *productapplication.SearchResult, _a1 error) *ProductSearchService_Find_Call
- func (_c *ProductSearchService_Find_Call) Run(run func(ctx context.Context, searchRequest *application.SearchRequest)) *ProductSearchService_Find_Call
- func (_c *ProductSearchService_Find_Call) RunAndReturn(...) *ProductSearchService_Find_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductSearchService ¶
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 (_m *ProductSearchService) EXPECT() *ProductSearchService_Expecter
func (*ProductSearchService) Find ¶
func (_m *ProductSearchService) Find(ctx context.Context, searchRequest *application.SearchRequest) (*productapplication.SearchResult, error)
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 ¶
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 (_c *ProductSearchService_Find_Call) Return(_a0 *productapplication.SearchResult, _a1 error) *ProductSearchService_Find_Call
func (*ProductSearchService_Find_Call) Run ¶
func (_c *ProductSearchService_Find_Call) Run(run func(ctx context.Context, searchRequest *application.SearchRequest)) *ProductSearchService_Find_Call
func (*ProductSearchService_Find_Call) RunAndReturn ¶
func (_c *ProductSearchService_Find_Call) RunAndReturn(run func(context.Context, *application.SearchRequest) (*productapplication.SearchResult, error)) *ProductSearchService_Find_Call
Click to show internal directories.
Click to hide internal directories.