mocks

package
v0.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureRepository

type FeatureRepository struct {
	mock.Mock
}

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 (*FeatureRepository) GetByID

func (_m *FeatureRepository) GetByID(ctx context.Context, id string) (product.Feature, error)

GetByID provides a mock function with given fields: ctx, id

func (*FeatureRepository) GetByName

func (_m *FeatureRepository) GetByName(ctx context.Context, name string) (product.Feature, error)

GetByName provides a mock function with given fields: ctx, name

func (*FeatureRepository) List

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

type FeatureRepository_Create_Call struct {
	*mock.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 (*FeatureRepository_Create_Call) Run

func (*FeatureRepository_Create_Call) RunAndReturn

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

type FeatureRepository_GetByID_Call struct {
	*mock.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 (*FeatureRepository_GetByID_Call) Run

func (*FeatureRepository_GetByID_Call) RunAndReturn

type FeatureRepository_GetByName_Call

type FeatureRepository_GetByName_Call struct {
	*mock.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 (*FeatureRepository_GetByName_Call) Run

func (*FeatureRepository_GetByName_Call) RunAndReturn

type FeatureRepository_List_Call

type FeatureRepository_List_Call struct {
	*mock.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 (*FeatureRepository_List_Call) Run

func (*FeatureRepository_List_Call) RunAndReturn

type FeatureRepository_UpdateByName_Call

type FeatureRepository_UpdateByName_Call struct {
	*mock.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 (*FeatureRepository_UpdateByName_Call) Run

func (*FeatureRepository_UpdateByName_Call) RunAndReturn

type PriceRepository

type PriceRepository struct {
	mock.Mock
}

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) Create

func (_m *PriceRepository) Create(ctx context.Context, price product.Price) (product.Price, error)

Create provides a mock function with given fields: ctx, price

func (*PriceRepository) EXPECT

func (*PriceRepository) GetByID

func (_m *PriceRepository) GetByID(ctx context.Context, id string) (product.Price, error)

GetByID provides a mock function with given fields: ctx, id

func (*PriceRepository) GetByName

func (_m *PriceRepository) GetByName(ctx context.Context, name string) (product.Price, error)

GetByName provides a mock function with given fields: ctx, name

func (*PriceRepository) List

func (_m *PriceRepository) List(ctx context.Context, flt product.Filter) ([]product.Price, error)

List provides a mock function with given fields: ctx, flt

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

type PriceRepository_Create_Call struct {
	*mock.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 (*PriceRepository_Create_Call) Run

func (*PriceRepository_Create_Call) RunAndReturn

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

type PriceRepository_GetByID_Call struct {
	*mock.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 (*PriceRepository_GetByID_Call) Run

func (*PriceRepository_GetByID_Call) RunAndReturn

type PriceRepository_GetByName_Call

type PriceRepository_GetByName_Call struct {
	*mock.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 (*PriceRepository_GetByName_Call) Run

func (*PriceRepository_GetByName_Call) RunAndReturn

type PriceRepository_List_Call

type PriceRepository_List_Call struct {
	*mock.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 (*PriceRepository_List_Call) Run

func (*PriceRepository_List_Call) RunAndReturn

type PriceRepository_UpdateByID_Call

type PriceRepository_UpdateByID_Call struct {
	*mock.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 (*PriceRepository_UpdateByID_Call) Run

func (*PriceRepository_UpdateByID_Call) RunAndReturn

type Repository

type Repository struct {
	mock.Mock
}

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) Create

func (_m *Repository) Create(ctx context.Context, _a1 product.Product) (product.Product, error)

Create provides a mock function with given fields: ctx, _a1

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetByID

func (_m *Repository) GetByID(ctx context.Context, id string) (product.Product, error)

GetByID provides a mock function with given fields: ctx, id

func (*Repository) GetByName

func (_m *Repository) GetByName(ctx context.Context, name string) (product.Product, error)

GetByName provides a mock function with given fields: ctx, name

func (*Repository) List

func (_m *Repository) List(ctx context.Context, flt product.Filter) ([]product.Product, error)

List provides a mock function with given fields: ctx, flt

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

type Repository_Create_Call struct {
	*mock.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 (*Repository_Create_Call) Run

func (*Repository_Create_Call) RunAndReturn

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

type Repository_GetByID_Call struct {
	*mock.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 (*Repository_GetByID_Call) Run

func (*Repository_GetByID_Call) RunAndReturn

type Repository_GetByName_Call

type Repository_GetByName_Call struct {
	*mock.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 (*Repository_GetByName_Call) Run

func (*Repository_GetByName_Call) RunAndReturn

type Repository_List_Call

type Repository_List_Call struct {
	*mock.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 (*Repository_List_Call) Run

func (*Repository_List_Call) RunAndReturn

type Repository_UpdateByName_Call

type Repository_UpdateByName_Call struct {
	*mock.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 (*Repository_UpdateByName_Call) Run

func (*Repository_UpdateByName_Call) RunAndReturn

Jump to

Keyboard shortcuts

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