mocks

package
v0.0.0-...-c4ecebc Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityServiceClient

type IdentityServiceClient struct {
	mock.Mock
}

IdentityServiceClient is an autogenerated mock type for the IdentityServiceClient type

func NewIdentityServiceClient

func NewIdentityServiceClient(t mockConstructorTestingTNewIdentityServiceClient) *IdentityServiceClient

NewIdentityServiceClient creates a new instance of IdentityServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IdentityServiceClient) GetUserById

GetUserById provides a mock function with given fields: ctx, in, opts

type IdentityServiceServer

type IdentityServiceServer struct {
	mock.Mock
}

IdentityServiceServer is an autogenerated mock type for the IdentityServiceServer type

func NewIdentityServiceServer

func NewIdentityServiceServer(t mockConstructorTestingTNewIdentityServiceServer) *IdentityServiceServer

NewIdentityServiceServer creates a new instance of IdentityServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IdentityServiceServer) GetUserById

GetUserById provides a mock function with given fields: _a0, _a1

type ProductRepository

type ProductRepository struct {
	mock.Mock
}

ProductRepository is an autogenerated mock type for the ProductRepository type

func NewProductRepository

func NewProductRepository(t mockConstructorTestingTNewProductRepository) *ProductRepository

NewProductRepository creates a new instance of ProductRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ProductRepository) CreateProduct

func (_m *ProductRepository) CreateProduct(ctx context.Context, product *models.Product) (*models.Product, error)

CreateProduct provides a mock function with given fields: ctx, product

func (*ProductRepository) DeleteProductByID

func (_m *ProductRepository) DeleteProductByID(ctx context.Context, _a1 uuid.UUID) error

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

func (*ProductRepository) GetAllProducts

func (_m *ProductRepository) GetAllProducts(ctx context.Context, listQuery *utils.ListQuery) (*utils.ListResult[*models.Product], error)

GetAllProducts provides a mock function with given fields: ctx, listQuery

func (*ProductRepository) GetProductById

func (_m *ProductRepository) GetProductById(ctx context.Context, _a1 uuid.UUID) (*models.Product, error)

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

func (*ProductRepository) SearchProducts

func (_m *ProductRepository) SearchProducts(ctx context.Context, searchText string, listQuery *utils.ListQuery) (*utils.ListResult[*models.Product], error)

SearchProducts provides a mock function with given fields: ctx, searchText, listQuery

func (*ProductRepository) UpdateProduct

func (_m *ProductRepository) UpdateProduct(ctx context.Context, product *models.Product) (*models.Product, error)

UpdateProduct provides a mock function with given fields: ctx, product

type UnsafeIdentityServiceServer

type UnsafeIdentityServiceServer struct {
	mock.Mock
}

UnsafeIdentityServiceServer is an autogenerated mock type for the UnsafeIdentityServiceServer type

func NewUnsafeIdentityServiceServer

func NewUnsafeIdentityServiceServer(t mockConstructorTestingTNewUnsafeIdentityServiceServer) *UnsafeIdentityServiceServer

NewUnsafeIdentityServiceServer creates a new instance of UnsafeIdentityServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

Jump to

Keyboard shortcuts

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