Documentation
¶
Index ¶
- type CategoryService
- type CategoryService_Expecter
- type CategoryService_Get_Call
- func (_c *CategoryService_Get_Call) Return(_a0 domain.Category, _a1 error) *CategoryService_Get_Call
- func (_c *CategoryService_Get_Call) Run(run func(ctx context.Context, categoryCode string)) *CategoryService_Get_Call
- func (_c *CategoryService_Get_Call) RunAndReturn(run func(context.Context, string) (domain.Category, error)) *CategoryService_Get_Call
- type CategoryService_Tree_Call
- func (_c *CategoryService_Tree_Call) Return(_a0 domain.Tree, _a1 error) *CategoryService_Tree_Call
- func (_c *CategoryService_Tree_Call) Run(run func(ctx context.Context, activeCategoryCode string)) *CategoryService_Tree_Call
- func (_c *CategoryService_Tree_Call) RunAndReturn(run func(context.Context, string) (domain.Tree, error)) *CategoryService_Tree_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoryService ¶
CategoryService is an autogenerated mock type for the CategoryService type
func NewCategoryService ¶
func NewCategoryService(t interface { mock.TestingT Cleanup(func()) }) *CategoryService
NewCategoryService creates a new instance of CategoryService. 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 (*CategoryService) EXPECT ¶
func (_m *CategoryService) EXPECT() *CategoryService_Expecter
type CategoryService_Expecter ¶
type CategoryService_Expecter struct {
// contains filtered or unexported fields
}
func (*CategoryService_Expecter) Get ¶
func (_e *CategoryService_Expecter) Get(ctx interface{}, categoryCode interface{}) *CategoryService_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- categoryCode string
func (*CategoryService_Expecter) Tree ¶
func (_e *CategoryService_Expecter) Tree(ctx interface{}, activeCategoryCode interface{}) *CategoryService_Tree_Call
Tree is a helper method to define mock.On call
- ctx context.Context
- activeCategoryCode string
type CategoryService_Get_Call ¶
CategoryService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*CategoryService_Get_Call) Return ¶
func (_c *CategoryService_Get_Call) Return(_a0 domain.Category, _a1 error) *CategoryService_Get_Call
func (*CategoryService_Get_Call) Run ¶
func (_c *CategoryService_Get_Call) Run(run func(ctx context.Context, categoryCode string)) *CategoryService_Get_Call
func (*CategoryService_Get_Call) RunAndReturn ¶
func (_c *CategoryService_Get_Call) RunAndReturn(run func(context.Context, string) (domain.Category, error)) *CategoryService_Get_Call
type CategoryService_Tree_Call ¶
CategoryService_Tree_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tree'
func (*CategoryService_Tree_Call) Return ¶
func (_c *CategoryService_Tree_Call) Return(_a0 domain.Tree, _a1 error) *CategoryService_Tree_Call
func (*CategoryService_Tree_Call) Run ¶
func (_c *CategoryService_Tree_Call) Run(run func(ctx context.Context, activeCategoryCode string)) *CategoryService_Tree_Call
func (*CategoryService_Tree_Call) RunAndReturn ¶
func (_c *CategoryService_Tree_Call) RunAndReturn(run func(context.Context, string) (domain.Tree, error)) *CategoryService_Tree_Call
Click to show internal directories.
Click to hide internal directories.