Documentation ¶
Index ¶
- type FeatureRepository
- func (_m *FeatureRepository) Create(ctx context.Context, feature product.Feature) (product.Feature, error)
- func (_m *FeatureRepository) EXPECT() *FeatureRepository_Expecter
- func (_m *FeatureRepository) GetByID(ctx context.Context, id string) (product.Feature, error)
- func (_m *FeatureRepository) GetByName(ctx context.Context, name string) (product.Feature, error)
- func (_m *FeatureRepository) List(ctx context.Context, flt product.Filter) ([]product.Feature, error)
- func (_m *FeatureRepository) UpdateByName(ctx context.Context, feature product.Feature) (product.Feature, error)
- type FeatureRepository_Create_Call
- func (_c *FeatureRepository_Create_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_Create_Call
- func (_c *FeatureRepository_Create_Call) Run(run func(ctx context.Context, feature product.Feature)) *FeatureRepository_Create_Call
- func (_c *FeatureRepository_Create_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *FeatureRepository_Create_Call
- type FeatureRepository_Expecter
- func (_e *FeatureRepository_Expecter) Create(ctx interface{}, feature interface{}) *FeatureRepository_Create_Call
- func (_e *FeatureRepository_Expecter) GetByID(ctx interface{}, id interface{}) *FeatureRepository_GetByID_Call
- func (_e *FeatureRepository_Expecter) GetByName(ctx interface{}, name interface{}) *FeatureRepository_GetByName_Call
- func (_e *FeatureRepository_Expecter) List(ctx interface{}, flt interface{}) *FeatureRepository_List_Call
- func (_e *FeatureRepository_Expecter) UpdateByName(ctx interface{}, feature interface{}) *FeatureRepository_UpdateByName_Call
- type FeatureRepository_GetByID_Call
- func (_c *FeatureRepository_GetByID_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_GetByID_Call
- func (_c *FeatureRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *FeatureRepository_GetByID_Call
- func (_c *FeatureRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *FeatureRepository_GetByID_Call
- type FeatureRepository_GetByName_Call
- func (_c *FeatureRepository_GetByName_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_GetByName_Call
- func (_c *FeatureRepository_GetByName_Call) Run(run func(ctx context.Context, name string)) *FeatureRepository_GetByName_Call
- func (_c *FeatureRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *FeatureRepository_GetByName_Call
- type FeatureRepository_List_Call
- func (_c *FeatureRepository_List_Call) Return(_a0 []product.Feature, _a1 error) *FeatureRepository_List_Call
- func (_c *FeatureRepository_List_Call) Run(run func(ctx context.Context, flt product.Filter)) *FeatureRepository_List_Call
- func (_c *FeatureRepository_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Feature, error)) *FeatureRepository_List_Call
- type FeatureRepository_UpdateByName_Call
- func (_c *FeatureRepository_UpdateByName_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_UpdateByName_Call
- func (_c *FeatureRepository_UpdateByName_Call) Run(run func(ctx context.Context, feature product.Feature)) *FeatureRepository_UpdateByName_Call
- func (_c *FeatureRepository_UpdateByName_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *FeatureRepository_UpdateByName_Call
- type PriceRepository
- func (_m *PriceRepository) Create(ctx context.Context, price product.Price) (product.Price, error)
- func (_m *PriceRepository) EXPECT() *PriceRepository_Expecter
- func (_m *PriceRepository) GetByID(ctx context.Context, id string) (product.Price, error)
- func (_m *PriceRepository) GetByName(ctx context.Context, name string) (product.Price, error)
- func (_m *PriceRepository) List(ctx context.Context, flt product.Filter) ([]product.Price, error)
- func (_m *PriceRepository) UpdateByID(ctx context.Context, price product.Price) (product.Price, error)
- type PriceRepository_Create_Call
- func (_c *PriceRepository_Create_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_Create_Call
- func (_c *PriceRepository_Create_Call) Run(run func(ctx context.Context, price product.Price)) *PriceRepository_Create_Call
- func (_c *PriceRepository_Create_Call) RunAndReturn(run func(context.Context, product.Price) (product.Price, error)) *PriceRepository_Create_Call
- type PriceRepository_Expecter
- func (_e *PriceRepository_Expecter) Create(ctx interface{}, price interface{}) *PriceRepository_Create_Call
- func (_e *PriceRepository_Expecter) GetByID(ctx interface{}, id interface{}) *PriceRepository_GetByID_Call
- func (_e *PriceRepository_Expecter) GetByName(ctx interface{}, name interface{}) *PriceRepository_GetByName_Call
- func (_e *PriceRepository_Expecter) List(ctx interface{}, flt interface{}) *PriceRepository_List_Call
- func (_e *PriceRepository_Expecter) UpdateByID(ctx interface{}, price interface{}) *PriceRepository_UpdateByID_Call
- type PriceRepository_GetByID_Call
- func (_c *PriceRepository_GetByID_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_GetByID_Call
- func (_c *PriceRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *PriceRepository_GetByID_Call
- func (_c *PriceRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Price, error)) *PriceRepository_GetByID_Call
- type PriceRepository_GetByName_Call
- func (_c *PriceRepository_GetByName_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_GetByName_Call
- func (_c *PriceRepository_GetByName_Call) Run(run func(ctx context.Context, name string)) *PriceRepository_GetByName_Call
- func (_c *PriceRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (product.Price, error)) *PriceRepository_GetByName_Call
- type PriceRepository_List_Call
- func (_c *PriceRepository_List_Call) Return(_a0 []product.Price, _a1 error) *PriceRepository_List_Call
- func (_c *PriceRepository_List_Call) Run(run func(ctx context.Context, flt product.Filter)) *PriceRepository_List_Call
- func (_c *PriceRepository_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Price, error)) *PriceRepository_List_Call
- type PriceRepository_UpdateByID_Call
- func (_c *PriceRepository_UpdateByID_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_UpdateByID_Call
- func (_c *PriceRepository_UpdateByID_Call) Run(run func(ctx context.Context, price product.Price)) *PriceRepository_UpdateByID_Call
- func (_c *PriceRepository_UpdateByID_Call) RunAndReturn(run func(context.Context, product.Price) (product.Price, error)) *PriceRepository_UpdateByID_Call
- type Repository
- func (_m *Repository) Create(ctx context.Context, _a1 product.Product) (product.Product, error)
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) GetByID(ctx context.Context, id string) (product.Product, error)
- func (_m *Repository) GetByName(ctx context.Context, name string) (product.Product, error)
- func (_m *Repository) List(ctx context.Context, flt product.Filter) ([]product.Product, error)
- func (_m *Repository) UpdateByName(ctx context.Context, _a1 product.Product) (product.Product, error)
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 product.Product, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(ctx context.Context, _a1 product.Product)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *Repository_Create_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) Create(ctx interface{}, _a1 interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call
- func (_e *Repository_Expecter) GetByName(ctx interface{}, name interface{}) *Repository_GetByName_Call
- func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call
- func (_e *Repository_Expecter) UpdateByName(ctx interface{}, _a1 interface{}) *Repository_UpdateByName_Call
- type Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Return(_a0 product.Product, _a1 error) *Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) Run(run func(ctx context.Context, id string)) *Repository_GetByID_Call
- func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *Repository_GetByID_Call
- type Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) Return(_a0 product.Product, _a1 error) *Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) Run(run func(ctx context.Context, name string)) *Repository_GetByName_Call
- func (_c *Repository_GetByName_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *Repository_GetByName_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []product.Product, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt product.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *Repository_List_Call
- type Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) Return(_a0 product.Product, _a1 error) *Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) Run(run func(ctx context.Context, _a1 product.Product)) *Repository_UpdateByName_Call
- func (_c *Repository_UpdateByName_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *Repository_UpdateByName_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureRepository ¶
FeatureRepository is an autogenerated mock type for the FeatureRepository type
func NewFeatureRepository ¶
func NewFeatureRepository(t interface { mock.TestingT Cleanup(func()) }) *FeatureRepository
NewFeatureRepository creates a new instance of FeatureRepository. 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 (*FeatureRepository) Create ¶
func (_m *FeatureRepository) Create(ctx context.Context, feature product.Feature) (product.Feature, error)
Create provides a mock function with given fields: ctx, feature
func (*FeatureRepository) EXPECT ¶
func (_m *FeatureRepository) EXPECT() *FeatureRepository_Expecter
func (*FeatureRepository) GetByName ¶
GetByName provides a mock function with given fields: ctx, name
func (*FeatureRepository) List ¶
func (_m *FeatureRepository) List(ctx context.Context, flt product.Filter) ([]product.Feature, error)
List provides a mock function with given fields: ctx, flt
func (*FeatureRepository) UpdateByName ¶
func (_m *FeatureRepository) UpdateByName(ctx context.Context, feature product.Feature) (product.Feature, error)
UpdateByName provides a mock function with given fields: ctx, feature
type FeatureRepository_Create_Call ¶
FeatureRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*FeatureRepository_Create_Call) Return ¶
func (_c *FeatureRepository_Create_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_Create_Call
func (*FeatureRepository_Create_Call) Run ¶
func (_c *FeatureRepository_Create_Call) Run(run func(ctx context.Context, feature product.Feature)) *FeatureRepository_Create_Call
func (*FeatureRepository_Create_Call) RunAndReturn ¶
func (_c *FeatureRepository_Create_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *FeatureRepository_Create_Call
type FeatureRepository_Expecter ¶
type FeatureRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*FeatureRepository_Expecter) Create ¶
func (_e *FeatureRepository_Expecter) Create(ctx interface{}, feature interface{}) *FeatureRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- feature product.Feature
func (*FeatureRepository_Expecter) GetByID ¶
func (_e *FeatureRepository_Expecter) GetByID(ctx interface{}, id interface{}) *FeatureRepository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*FeatureRepository_Expecter) GetByName ¶
func (_e *FeatureRepository_Expecter) GetByName(ctx interface{}, name interface{}) *FeatureRepository_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- name string
func (*FeatureRepository_Expecter) List ¶
func (_e *FeatureRepository_Expecter) List(ctx interface{}, flt interface{}) *FeatureRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt product.Filter
func (*FeatureRepository_Expecter) UpdateByName ¶
func (_e *FeatureRepository_Expecter) UpdateByName(ctx interface{}, feature interface{}) *FeatureRepository_UpdateByName_Call
UpdateByName is a helper method to define mock.On call
- ctx context.Context
- feature product.Feature
type FeatureRepository_GetByID_Call ¶
FeatureRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*FeatureRepository_GetByID_Call) Return ¶
func (_c *FeatureRepository_GetByID_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_GetByID_Call
func (*FeatureRepository_GetByID_Call) Run ¶
func (_c *FeatureRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *FeatureRepository_GetByID_Call
func (*FeatureRepository_GetByID_Call) RunAndReturn ¶
func (_c *FeatureRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *FeatureRepository_GetByID_Call
type FeatureRepository_GetByName_Call ¶
FeatureRepository_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*FeatureRepository_GetByName_Call) Return ¶
func (_c *FeatureRepository_GetByName_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_GetByName_Call
func (*FeatureRepository_GetByName_Call) Run ¶
func (_c *FeatureRepository_GetByName_Call) Run(run func(ctx context.Context, name string)) *FeatureRepository_GetByName_Call
func (*FeatureRepository_GetByName_Call) RunAndReturn ¶
func (_c *FeatureRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (product.Feature, error)) *FeatureRepository_GetByName_Call
type FeatureRepository_List_Call ¶
FeatureRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*FeatureRepository_List_Call) Return ¶
func (_c *FeatureRepository_List_Call) Return(_a0 []product.Feature, _a1 error) *FeatureRepository_List_Call
func (*FeatureRepository_List_Call) Run ¶
func (_c *FeatureRepository_List_Call) Run(run func(ctx context.Context, flt product.Filter)) *FeatureRepository_List_Call
func (*FeatureRepository_List_Call) RunAndReturn ¶
func (_c *FeatureRepository_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Feature, error)) *FeatureRepository_List_Call
type FeatureRepository_UpdateByName_Call ¶
FeatureRepository_UpdateByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByName'
func (*FeatureRepository_UpdateByName_Call) Return ¶
func (_c *FeatureRepository_UpdateByName_Call) Return(_a0 product.Feature, _a1 error) *FeatureRepository_UpdateByName_Call
func (*FeatureRepository_UpdateByName_Call) Run ¶
func (_c *FeatureRepository_UpdateByName_Call) Run(run func(ctx context.Context, feature product.Feature)) *FeatureRepository_UpdateByName_Call
func (*FeatureRepository_UpdateByName_Call) RunAndReturn ¶
func (_c *FeatureRepository_UpdateByName_Call) RunAndReturn(run func(context.Context, product.Feature) (product.Feature, error)) *FeatureRepository_UpdateByName_Call
type PriceRepository ¶
PriceRepository is an autogenerated mock type for the PriceRepository type
func NewPriceRepository ¶
func NewPriceRepository(t interface { mock.TestingT Cleanup(func()) }) *PriceRepository
NewPriceRepository creates a new instance of PriceRepository. 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 (*PriceRepository) EXPECT ¶
func (_m *PriceRepository) EXPECT() *PriceRepository_Expecter
func (*PriceRepository) UpdateByID ¶
func (_m *PriceRepository) UpdateByID(ctx context.Context, price product.Price) (product.Price, error)
UpdateByID provides a mock function with given fields: ctx, price
type PriceRepository_Create_Call ¶
PriceRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*PriceRepository_Create_Call) Return ¶
func (_c *PriceRepository_Create_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_Create_Call
func (*PriceRepository_Create_Call) Run ¶
func (_c *PriceRepository_Create_Call) Run(run func(ctx context.Context, price product.Price)) *PriceRepository_Create_Call
func (*PriceRepository_Create_Call) RunAndReturn ¶
func (_c *PriceRepository_Create_Call) RunAndReturn(run func(context.Context, product.Price) (product.Price, error)) *PriceRepository_Create_Call
type PriceRepository_Expecter ¶
type PriceRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*PriceRepository_Expecter) Create ¶
func (_e *PriceRepository_Expecter) Create(ctx interface{}, price interface{}) *PriceRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- price product.Price
func (*PriceRepository_Expecter) GetByID ¶
func (_e *PriceRepository_Expecter) GetByID(ctx interface{}, id interface{}) *PriceRepository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*PriceRepository_Expecter) GetByName ¶
func (_e *PriceRepository_Expecter) GetByName(ctx interface{}, name interface{}) *PriceRepository_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- name string
func (*PriceRepository_Expecter) List ¶
func (_e *PriceRepository_Expecter) List(ctx interface{}, flt interface{}) *PriceRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt product.Filter
func (*PriceRepository_Expecter) UpdateByID ¶
func (_e *PriceRepository_Expecter) UpdateByID(ctx interface{}, price interface{}) *PriceRepository_UpdateByID_Call
UpdateByID is a helper method to define mock.On call
- ctx context.Context
- price product.Price
type PriceRepository_GetByID_Call ¶
PriceRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*PriceRepository_GetByID_Call) Return ¶
func (_c *PriceRepository_GetByID_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_GetByID_Call
func (*PriceRepository_GetByID_Call) Run ¶
func (_c *PriceRepository_GetByID_Call) Run(run func(ctx context.Context, id string)) *PriceRepository_GetByID_Call
func (*PriceRepository_GetByID_Call) RunAndReturn ¶
func (_c *PriceRepository_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Price, error)) *PriceRepository_GetByID_Call
type PriceRepository_GetByName_Call ¶
PriceRepository_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*PriceRepository_GetByName_Call) Return ¶
func (_c *PriceRepository_GetByName_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_GetByName_Call
func (*PriceRepository_GetByName_Call) Run ¶
func (_c *PriceRepository_GetByName_Call) Run(run func(ctx context.Context, name string)) *PriceRepository_GetByName_Call
func (*PriceRepository_GetByName_Call) RunAndReturn ¶
func (_c *PriceRepository_GetByName_Call) RunAndReturn(run func(context.Context, string) (product.Price, error)) *PriceRepository_GetByName_Call
type PriceRepository_List_Call ¶
PriceRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*PriceRepository_List_Call) Return ¶
func (_c *PriceRepository_List_Call) Return(_a0 []product.Price, _a1 error) *PriceRepository_List_Call
func (*PriceRepository_List_Call) Run ¶
func (_c *PriceRepository_List_Call) Run(run func(ctx context.Context, flt product.Filter)) *PriceRepository_List_Call
func (*PriceRepository_List_Call) RunAndReturn ¶
func (_c *PriceRepository_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Price, error)) *PriceRepository_List_Call
type PriceRepository_UpdateByID_Call ¶
PriceRepository_UpdateByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByID'
func (*PriceRepository_UpdateByID_Call) Return ¶
func (_c *PriceRepository_UpdateByID_Call) Return(_a0 product.Price, _a1 error) *PriceRepository_UpdateByID_Call
func (*PriceRepository_UpdateByID_Call) Run ¶
func (_c *PriceRepository_UpdateByID_Call) Run(run func(ctx context.Context, price product.Price)) *PriceRepository_UpdateByID_Call
func (*PriceRepository_UpdateByID_Call) RunAndReturn ¶
func (_c *PriceRepository_UpdateByID_Call) RunAndReturn(run func(context.Context, product.Price) (product.Price, error)) *PriceRepository_UpdateByID_Call
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) UpdateByName ¶
func (_m *Repository) UpdateByName(ctx context.Context, _a1 product.Product) (product.Product, error)
UpdateByName provides a mock function with given fields: ctx, _a1
type Repository_Create_Call ¶
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶
func (_c *Repository_Create_Call) Return(_a0 product.Product, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶
func (_c *Repository_Create_Call) Run(run func(ctx context.Context, _a1 product.Product)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *Repository_Create_Call
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) Create ¶
func (_e *Repository_Expecter) Create(ctx interface{}, _a1 interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- _a1 product.Product
func (*Repository_Expecter) GetByID ¶
func (_e *Repository_Expecter) GetByID(ctx interface{}, id interface{}) *Repository_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id string
func (*Repository_Expecter) GetByName ¶
func (_e *Repository_Expecter) GetByName(ctx interface{}, name interface{}) *Repository_GetByName_Call
GetByName is a helper method to define mock.On call
- ctx context.Context
- name string
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(ctx interface{}, flt interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- flt product.Filter
func (*Repository_Expecter) UpdateByName ¶
func (_e *Repository_Expecter) UpdateByName(ctx interface{}, _a1 interface{}) *Repository_UpdateByName_Call
UpdateByName is a helper method to define mock.On call
- ctx context.Context
- _a1 product.Product
type Repository_GetByID_Call ¶
Repository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*Repository_GetByID_Call) Return ¶
func (_c *Repository_GetByID_Call) Return(_a0 product.Product, _a1 error) *Repository_GetByID_Call
func (*Repository_GetByID_Call) Run ¶
func (_c *Repository_GetByID_Call) Run(run func(ctx context.Context, id string)) *Repository_GetByID_Call
func (*Repository_GetByID_Call) RunAndReturn ¶
func (_c *Repository_GetByID_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *Repository_GetByID_Call
type Repository_GetByName_Call ¶
Repository_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'
func (*Repository_GetByName_Call) Return ¶
func (_c *Repository_GetByName_Call) Return(_a0 product.Product, _a1 error) *Repository_GetByName_Call
func (*Repository_GetByName_Call) Run ¶
func (_c *Repository_GetByName_Call) Run(run func(ctx context.Context, name string)) *Repository_GetByName_Call
func (*Repository_GetByName_Call) RunAndReturn ¶
func (_c *Repository_GetByName_Call) RunAndReturn(run func(context.Context, string) (product.Product, error)) *Repository_GetByName_Call
type Repository_List_Call ¶
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶
func (_c *Repository_List_Call) Return(_a0 []product.Product, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(ctx context.Context, flt product.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, product.Filter) ([]product.Product, error)) *Repository_List_Call
type Repository_UpdateByName_Call ¶
Repository_UpdateByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateByName'
func (*Repository_UpdateByName_Call) Return ¶
func (_c *Repository_UpdateByName_Call) Return(_a0 product.Product, _a1 error) *Repository_UpdateByName_Call
func (*Repository_UpdateByName_Call) Run ¶
func (_c *Repository_UpdateByName_Call) Run(run func(ctx context.Context, _a1 product.Product)) *Repository_UpdateByName_Call
func (*Repository_UpdateByName_Call) RunAndReturn ¶
func (_c *Repository_UpdateByName_Call) RunAndReturn(run func(context.Context, product.Product) (product.Product, error)) *Repository_UpdateByName_Call