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 CategoryService

type CategoryService struct {
	mock.Mock
}

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 (*CategoryService) Get

func (_m *CategoryService) Get(ctx context.Context, categoryCode string) (domain.Category, error)

Get provides a mock function with given fields: ctx, categoryCode

func (*CategoryService) Tree

func (_m *CategoryService) Tree(ctx context.Context, activeCategoryCode string) (domain.Tree, error)

Tree provides a mock function with given fields: ctx, activeCategoryCode

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

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

type CategoryService_Tree_Call

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

Jump to

Keyboard shortcuts

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