mock

package
v0.0.0-...-dd53e7b Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthService

type MockAuthService struct {
	// contains filtered or unexported fields
}

MockAuthService is a mock of AuthService interface.

func NewMockAuthService

func NewMockAuthService(ctrl *gomock.Controller) *MockAuthService

NewMockAuthService creates a new mock instance.

func (*MockAuthService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthService) Login

func (m *MockAuthService) Login(ctx context.Context, email, password string) (string, error)

Login mocks base method.

type MockAuthServiceMockRecorder

type MockAuthServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthServiceMockRecorder is the mock recorder for MockAuthService.

func (*MockAuthServiceMockRecorder) Login

func (mr *MockAuthServiceMockRecorder) Login(ctx, email, password any) *gomock.Call

Login indicates an expected call of Login.

type MockCacheRepository

type MockCacheRepository struct {
	// contains filtered or unexported fields
}

MockCacheRepository is a mock of CacheRepository interface.

func NewMockCacheRepository

func NewMockCacheRepository(ctrl *gomock.Controller) *MockCacheRepository

NewMockCacheRepository creates a new mock instance.

func (*MockCacheRepository) Close

func (m *MockCacheRepository) Close() error

Close mocks base method.

func (*MockCacheRepository) Delete

func (m *MockCacheRepository) Delete(ctx context.Context, key string) error

Delete mocks base method.

func (*MockCacheRepository) DeleteByPrefix

func (m *MockCacheRepository) DeleteByPrefix(ctx context.Context, prefix string) error

DeleteByPrefix mocks base method.

func (*MockCacheRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCacheRepository) Get

func (m *MockCacheRepository) Get(ctx context.Context, key string) ([]byte, error)

Get mocks base method.

func (*MockCacheRepository) Set

func (m *MockCacheRepository) Set(ctx context.Context, key string, value []byte, ttl time.Duration) error

Set mocks base method.

type MockCacheRepositoryMockRecorder

type MockCacheRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacheRepositoryMockRecorder is the mock recorder for MockCacheRepository.

func (*MockCacheRepositoryMockRecorder) Close

Close indicates an expected call of Close.

func (*MockCacheRepositoryMockRecorder) Delete

func (mr *MockCacheRepositoryMockRecorder) Delete(ctx, key any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacheRepositoryMockRecorder) DeleteByPrefix

func (mr *MockCacheRepositoryMockRecorder) DeleteByPrefix(ctx, prefix any) *gomock.Call

DeleteByPrefix indicates an expected call of DeleteByPrefix.

func (*MockCacheRepositoryMockRecorder) Get

func (mr *MockCacheRepositoryMockRecorder) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheRepositoryMockRecorder) Set

func (mr *MockCacheRepositoryMockRecorder) Set(ctx, key, value, ttl any) *gomock.Call

Set indicates an expected call of Set.

type MockCategoryRepository

type MockCategoryRepository struct {
	// contains filtered or unexported fields
}

MockCategoryRepository is a mock of CategoryRepository interface.

func NewMockCategoryRepository

func NewMockCategoryRepository(ctrl *gomock.Controller) *MockCategoryRepository

NewMockCategoryRepository creates a new mock instance.

func (*MockCategoryRepository) CreateCategory

CreateCategory mocks base method.

func (*MockCategoryRepository) DeleteCategory

func (m *MockCategoryRepository) DeleteCategory(ctx context.Context, id uint64) error

DeleteCategory mocks base method.

func (*MockCategoryRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCategoryRepository) GetCategoryByID

func (m *MockCategoryRepository) GetCategoryByID(ctx context.Context, id uint64) (*domaincategory.Category, error)

GetCategoryByID mocks base method.

func (*MockCategoryRepository) ListCategories

func (m *MockCategoryRepository) ListCategories(ctx context.Context, skip, limit uint64) ([]domaincategory.Category, error)

ListCategories mocks base method.

func (*MockCategoryRepository) UpdateCategory

UpdateCategory mocks base method.

type MockCategoryRepositoryMockRecorder

type MockCategoryRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockCategoryRepositoryMockRecorder is the mock recorder for MockCategoryRepository.

func (*MockCategoryRepositoryMockRecorder) CreateCategory

func (mr *MockCategoryRepositoryMockRecorder) CreateCategory(ctx, category any) *gomock.Call

CreateCategory indicates an expected call of CreateCategory.

func (*MockCategoryRepositoryMockRecorder) DeleteCategory

func (mr *MockCategoryRepositoryMockRecorder) DeleteCategory(ctx, id any) *gomock.Call

DeleteCategory indicates an expected call of DeleteCategory.

func (*MockCategoryRepositoryMockRecorder) GetCategoryByID

func (mr *MockCategoryRepositoryMockRecorder) GetCategoryByID(ctx, id any) *gomock.Call

GetCategoryByID indicates an expected call of GetCategoryByID.

func (*MockCategoryRepositoryMockRecorder) ListCategories

func (mr *MockCategoryRepositoryMockRecorder) ListCategories(ctx, skip, limit any) *gomock.Call

ListCategories indicates an expected call of ListCategories.

func (*MockCategoryRepositoryMockRecorder) UpdateCategory

func (mr *MockCategoryRepositoryMockRecorder) UpdateCategory(ctx, category any) *gomock.Call

UpdateCategory indicates an expected call of UpdateCategory.

type MockCategoryService

type MockCategoryService struct {
	// contains filtered or unexported fields
}

MockCategoryService is a mock of CategoryService interface.

func NewMockCategoryService

func NewMockCategoryService(ctrl *gomock.Controller) *MockCategoryService

NewMockCategoryService creates a new mock instance.

func (*MockCategoryService) CreateCategory

CreateCategory mocks base method.

func (*MockCategoryService) DeleteCategory

func (m *MockCategoryService) DeleteCategory(ctx context.Context, id uint64) error

DeleteCategory mocks base method.

func (*MockCategoryService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCategoryService) GetCategory

GetCategory mocks base method.

func (*MockCategoryService) ListCategories

func (m *MockCategoryService) ListCategories(ctx context.Context, skip, limit uint64) ([]domaincategory.Category, error)

ListCategories mocks base method.

func (*MockCategoryService) UpdateCategory

UpdateCategory mocks base method.

type MockCategoryServiceMockRecorder

type MockCategoryServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockCategoryServiceMockRecorder is the mock recorder for MockCategoryService.

func (*MockCategoryServiceMockRecorder) CreateCategory

func (mr *MockCategoryServiceMockRecorder) CreateCategory(ctx, category any) *gomock.Call

CreateCategory indicates an expected call of CreateCategory.

func (*MockCategoryServiceMockRecorder) DeleteCategory

func (mr *MockCategoryServiceMockRecorder) DeleteCategory(ctx, id any) *gomock.Call

DeleteCategory indicates an expected call of DeleteCategory.

func (*MockCategoryServiceMockRecorder) GetCategory

func (mr *MockCategoryServiceMockRecorder) GetCategory(ctx, id any) *gomock.Call

GetCategory indicates an expected call of GetCategory.

func (*MockCategoryServiceMockRecorder) ListCategories

func (mr *MockCategoryServiceMockRecorder) ListCategories(ctx, skip, limit any) *gomock.Call

ListCategories indicates an expected call of ListCategories.

func (*MockCategoryServiceMockRecorder) UpdateCategory

func (mr *MockCategoryServiceMockRecorder) UpdateCategory(ctx, category any) *gomock.Call

UpdateCategory indicates an expected call of UpdateCategory.

type MockOrderRepository

type MockOrderRepository struct {
	// contains filtered or unexported fields
}

MockOrderRepository is a mock of OrderRepository interface.

func NewMockOrderRepository

func NewMockOrderRepository(ctrl *gomock.Controller) *MockOrderRepository

NewMockOrderRepository creates a new mock instance.

func (*MockOrderRepository) CreateOrder

func (m *MockOrderRepository) CreateOrder(ctx context.Context, order *domainorder.Order) (*domainorder.Order, error)

CreateOrder mocks base method.

func (*MockOrderRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOrderRepository) GetOrderByID

func (m *MockOrderRepository) GetOrderByID(ctx context.Context, id uint64) (*domainorder.Order, error)

GetOrderByID mocks base method.

func (*MockOrderRepository) ListOrders

func (m *MockOrderRepository) ListOrders(ctx context.Context, skip, limit uint64) ([]domainorder.Order, error)

ListOrders mocks base method.

type MockOrderRepositoryMockRecorder

type MockOrderRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockOrderRepositoryMockRecorder is the mock recorder for MockOrderRepository.

func (*MockOrderRepositoryMockRecorder) CreateOrder

func (mr *MockOrderRepositoryMockRecorder) CreateOrder(ctx, order any) *gomock.Call

CreateOrder indicates an expected call of CreateOrder.

func (*MockOrderRepositoryMockRecorder) GetOrderByID

func (mr *MockOrderRepositoryMockRecorder) GetOrderByID(ctx, id any) *gomock.Call

GetOrderByID indicates an expected call of GetOrderByID.

func (*MockOrderRepositoryMockRecorder) ListOrders

func (mr *MockOrderRepositoryMockRecorder) ListOrders(ctx, skip, limit any) *gomock.Call

ListOrders indicates an expected call of ListOrders.

type MockOrderService

type MockOrderService struct {
	// contains filtered or unexported fields
}

MockOrderService is a mock of OrderService interface.

func NewMockOrderService

func NewMockOrderService(ctrl *gomock.Controller) *MockOrderService

NewMockOrderService creates a new mock instance.

func (*MockOrderService) CreateOrder

func (m *MockOrderService) CreateOrder(ctx context.Context, order *domainorder.Order) (*domainorder.Order, error)

CreateOrder mocks base method.

func (*MockOrderService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOrderService) GetOrder

func (m *MockOrderService) GetOrder(ctx context.Context, id uint64) (*domainorder.Order, error)

GetOrder mocks base method.

func (*MockOrderService) ListOrders

func (m *MockOrderService) ListOrders(ctx context.Context, skip, limit uint64) ([]domainorder.Order, error)

ListOrders mocks base method.

type MockOrderServiceMockRecorder

type MockOrderServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockOrderServiceMockRecorder is the mock recorder for MockOrderService.

func (*MockOrderServiceMockRecorder) CreateOrder

func (mr *MockOrderServiceMockRecorder) CreateOrder(ctx, order any) *gomock.Call

CreateOrder indicates an expected call of CreateOrder.

func (*MockOrderServiceMockRecorder) GetOrder

func (mr *MockOrderServiceMockRecorder) GetOrder(ctx, id any) *gomock.Call

GetOrder indicates an expected call of GetOrder.

func (*MockOrderServiceMockRecorder) ListOrders

func (mr *MockOrderServiceMockRecorder) ListOrders(ctx, skip, limit any) *gomock.Call

ListOrders indicates an expected call of ListOrders.

type MockPaymentRepository

type MockPaymentRepository struct {
	// contains filtered or unexported fields
}

MockPaymentRepository is a mock of PaymentRepository interface.

func NewMockPaymentRepository

func NewMockPaymentRepository(ctrl *gomock.Controller) *MockPaymentRepository

NewMockPaymentRepository creates a new mock instance.

func (*MockPaymentRepository) CreatePayment

CreatePayment mocks base method.

func (*MockPaymentRepository) DeletePayment

func (m *MockPaymentRepository) DeletePayment(ctx context.Context, id uint64) error

DeletePayment mocks base method.

func (*MockPaymentRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPaymentRepository) GetPaymentByID

func (m *MockPaymentRepository) GetPaymentByID(ctx context.Context, id uint64) (*domainpayment.Payment, error)

GetPaymentByID mocks base method.

func (*MockPaymentRepository) ListPayments

func (m *MockPaymentRepository) ListPayments(ctx context.Context, skip, limit uint64) ([]domainpayment.Payment, error)

ListPayments mocks base method.

func (*MockPaymentRepository) UpdatePayment

UpdatePayment mocks base method.

type MockPaymentRepositoryMockRecorder

type MockPaymentRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockPaymentRepositoryMockRecorder is the mock recorder for MockPaymentRepository.

func (*MockPaymentRepositoryMockRecorder) CreatePayment

func (mr *MockPaymentRepositoryMockRecorder) CreatePayment(ctx, payment any) *gomock.Call

CreatePayment indicates an expected call of CreatePayment.

func (*MockPaymentRepositoryMockRecorder) DeletePayment

func (mr *MockPaymentRepositoryMockRecorder) DeletePayment(ctx, id any) *gomock.Call

DeletePayment indicates an expected call of DeletePayment.

func (*MockPaymentRepositoryMockRecorder) GetPaymentByID

func (mr *MockPaymentRepositoryMockRecorder) GetPaymentByID(ctx, id any) *gomock.Call

GetPaymentByID indicates an expected call of GetPaymentByID.

func (*MockPaymentRepositoryMockRecorder) ListPayments

func (mr *MockPaymentRepositoryMockRecorder) ListPayments(ctx, skip, limit any) *gomock.Call

ListPayments indicates an expected call of ListPayments.

func (*MockPaymentRepositoryMockRecorder) UpdatePayment

func (mr *MockPaymentRepositoryMockRecorder) UpdatePayment(ctx, payment any) *gomock.Call

UpdatePayment indicates an expected call of UpdatePayment.

type MockPaymentService

type MockPaymentService struct {
	// contains filtered or unexported fields
}

MockPaymentService is a mock of PaymentService interface.

func NewMockPaymentService

func NewMockPaymentService(ctrl *gomock.Controller) *MockPaymentService

NewMockPaymentService creates a new mock instance.

func (*MockPaymentService) CreatePayment

func (m *MockPaymentService) CreatePayment(ctx context.Context, payment *domainpayment.Payment) (*domainpayment.Payment, error)

CreatePayment mocks base method.

func (*MockPaymentService) DeletePayment

func (m *MockPaymentService) DeletePayment(ctx context.Context, id uint64) error

DeletePayment mocks base method.

func (*MockPaymentService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPaymentService) GetPayment

func (m *MockPaymentService) GetPayment(ctx context.Context, id uint64) (*domainpayment.Payment, error)

GetPayment mocks base method.

func (*MockPaymentService) ListPayments

func (m *MockPaymentService) ListPayments(ctx context.Context, skip, limit uint64) ([]domainpayment.Payment, error)

ListPayments mocks base method.

func (*MockPaymentService) UpdatePayment

func (m *MockPaymentService) UpdatePayment(ctx context.Context, payment *domainpayment.Payment) (*domainpayment.Payment, error)

UpdatePayment mocks base method.

type MockPaymentServiceMockRecorder

type MockPaymentServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockPaymentServiceMockRecorder is the mock recorder for MockPaymentService.

func (*MockPaymentServiceMockRecorder) CreatePayment

func (mr *MockPaymentServiceMockRecorder) CreatePayment(ctx, payment any) *gomock.Call

CreatePayment indicates an expected call of CreatePayment.

func (*MockPaymentServiceMockRecorder) DeletePayment

func (mr *MockPaymentServiceMockRecorder) DeletePayment(ctx, id any) *gomock.Call

DeletePayment indicates an expected call of DeletePayment.

func (*MockPaymentServiceMockRecorder) GetPayment

func (mr *MockPaymentServiceMockRecorder) GetPayment(ctx, id any) *gomock.Call

GetPayment indicates an expected call of GetPayment.

func (*MockPaymentServiceMockRecorder) ListPayments

func (mr *MockPaymentServiceMockRecorder) ListPayments(ctx, skip, limit any) *gomock.Call

ListPayments indicates an expected call of ListPayments.

func (*MockPaymentServiceMockRecorder) UpdatePayment

func (mr *MockPaymentServiceMockRecorder) UpdatePayment(ctx, payment any) *gomock.Call

UpdatePayment indicates an expected call of UpdatePayment.

type MockProductRepository

type MockProductRepository struct {
	// contains filtered or unexported fields
}

MockProductRepository is a mock of ProductRepository interface.

func NewMockProductRepository

func NewMockProductRepository(ctrl *gomock.Controller) *MockProductRepository

NewMockProductRepository creates a new mock instance.

func (*MockProductRepository) CreateProduct

CreateProduct mocks base method.

func (*MockProductRepository) DeleteProduct

func (m *MockProductRepository) DeleteProduct(ctx context.Context, id uint64) error

DeleteProduct mocks base method.

func (*MockProductRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProductRepository) GetProductByID

func (m *MockProductRepository) GetProductByID(ctx context.Context, id uint64) (*domainproduct.Product, error)

GetProductByID mocks base method.

func (*MockProductRepository) ListProducts

func (m *MockProductRepository) ListProducts(ctx context.Context, search string, categoryId, skip, limit uint64) ([]domainproduct.Product, error)

ListProducts mocks base method.

func (*MockProductRepository) UpdateProduct

UpdateProduct mocks base method.

type MockProductRepositoryMockRecorder

type MockProductRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockProductRepositoryMockRecorder is the mock recorder for MockProductRepository.

func (*MockProductRepositoryMockRecorder) CreateProduct

func (mr *MockProductRepositoryMockRecorder) CreateProduct(ctx, product any) *gomock.Call

CreateProduct indicates an expected call of CreateProduct.

func (*MockProductRepositoryMockRecorder) DeleteProduct

func (mr *MockProductRepositoryMockRecorder) DeleteProduct(ctx, id any) *gomock.Call

DeleteProduct indicates an expected call of DeleteProduct.

func (*MockProductRepositoryMockRecorder) GetProductByID

func (mr *MockProductRepositoryMockRecorder) GetProductByID(ctx, id any) *gomock.Call

GetProductByID indicates an expected call of GetProductByID.

func (*MockProductRepositoryMockRecorder) ListProducts

func (mr *MockProductRepositoryMockRecorder) ListProducts(ctx, search, categoryId, skip, limit any) *gomock.Call

ListProducts indicates an expected call of ListProducts.

func (*MockProductRepositoryMockRecorder) UpdateProduct

func (mr *MockProductRepositoryMockRecorder) UpdateProduct(ctx, product any) *gomock.Call

UpdateProduct indicates an expected call of UpdateProduct.

type MockProductService

type MockProductService struct {
	// contains filtered or unexported fields
}

MockProductService is a mock of ProductService interface.

func NewMockProductService

func NewMockProductService(ctrl *gomock.Controller) *MockProductService

NewMockProductService creates a new mock instance.

func (*MockProductService) CreateProduct

func (m *MockProductService) CreateProduct(ctx context.Context, product *domainproduct.Product) (*domainproduct.Product, error)

CreateProduct mocks base method.

func (*MockProductService) DeleteProduct

func (m *MockProductService) DeleteProduct(ctx context.Context, id uint64) error

DeleteProduct mocks base method.

func (*MockProductService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockProductService) GetProduct

func (m *MockProductService) GetProduct(ctx context.Context, id uint64) (*domainproduct.Product, error)

GetProduct mocks base method.

func (*MockProductService) ListProducts

func (m *MockProductService) ListProducts(ctx context.Context, search string, categoryId, skip, limit uint64) ([]domainproduct.Product, error)

ListProducts mocks base method.

func (*MockProductService) UpdateProduct

func (m *MockProductService) UpdateProduct(ctx context.Context, product *domainproduct.Product) (*domainproduct.Product, error)

UpdateProduct mocks base method.

type MockProductServiceMockRecorder

type MockProductServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockProductServiceMockRecorder is the mock recorder for MockProductService.

func (*MockProductServiceMockRecorder) CreateProduct

func (mr *MockProductServiceMockRecorder) CreateProduct(ctx, product any) *gomock.Call

CreateProduct indicates an expected call of CreateProduct.

func (*MockProductServiceMockRecorder) DeleteProduct

func (mr *MockProductServiceMockRecorder) DeleteProduct(ctx, id any) *gomock.Call

DeleteProduct indicates an expected call of DeleteProduct.

func (*MockProductServiceMockRecorder) GetProduct

func (mr *MockProductServiceMockRecorder) GetProduct(ctx, id any) *gomock.Call

GetProduct indicates an expected call of GetProduct.

func (*MockProductServiceMockRecorder) ListProducts

func (mr *MockProductServiceMockRecorder) ListProducts(ctx, search, categoryId, skip, limit any) *gomock.Call

ListProducts indicates an expected call of ListProducts.

func (*MockProductServiceMockRecorder) UpdateProduct

func (mr *MockProductServiceMockRecorder) UpdateProduct(ctx, product any) *gomock.Call

UpdateProduct indicates an expected call of UpdateProduct.

type MockTokenService

type MockTokenService struct {
	// contains filtered or unexported fields
}

MockTokenService is a mock of TokenService interface.

func NewMockTokenService

func NewMockTokenService(ctrl *gomock.Controller) *MockTokenService

NewMockTokenService creates a new mock instance.

func (*MockTokenService) CreateToken

func (m *MockTokenService) CreateToken(user *domainuser.User) (string, error)

CreateToken mocks base method.

func (*MockTokenService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenService) VerifyToken

func (m *MockTokenService) VerifyToken(token string) (*domainauth.TokenPayload, error)

VerifyToken mocks base method.

type MockTokenServiceMockRecorder

type MockTokenServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTokenServiceMockRecorder is the mock recorder for MockTokenService.

func (*MockTokenServiceMockRecorder) CreateToken

func (mr *MockTokenServiceMockRecorder) CreateToken(user any) *gomock.Call

CreateToken indicates an expected call of CreateToken.

func (*MockTokenServiceMockRecorder) VerifyToken

func (mr *MockTokenServiceMockRecorder) VerifyToken(token any) *gomock.Call

VerifyToken indicates an expected call of VerifyToken.

type MockUserRepository

type MockUserRepository struct {
	// contains filtered or unexported fields
}

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) CreateUser

func (m *MockUserRepository) CreateUser(ctx context.Context, user *domainuser.User) (*domainuser.User, error)

CreateUser mocks base method.

func (*MockUserRepository) DeleteUser

func (m *MockUserRepository) DeleteUser(ctx context.Context, id uint64) error

DeleteUser mocks base method.

func (*MockUserRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserRepository) GetUserByEmail

func (m *MockUserRepository) GetUserByEmail(ctx context.Context, email string) (*domainuser.User, error)

GetUserByEmail mocks base method.

func (*MockUserRepository) GetUserByID

func (m *MockUserRepository) GetUserByID(ctx context.Context, id uint64) (*domainuser.User, error)

GetUserByID mocks base method.

func (*MockUserRepository) ListUsers

func (m *MockUserRepository) ListUsers(ctx context.Context, skip, limit uint64) ([]domainuser.User, error)

ListUsers mocks base method.

func (*MockUserRepository) UpdateUser

func (m *MockUserRepository) UpdateUser(ctx context.Context, user *domainuser.User) (*domainuser.User, error)

UpdateUser mocks base method.

type MockUserRepositoryMockRecorder

type MockUserRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) CreateUser

func (mr *MockUserRepositoryMockRecorder) CreateUser(ctx, user any) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserRepositoryMockRecorder) DeleteUser

func (mr *MockUserRepositoryMockRecorder) DeleteUser(ctx, id any) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockUserRepositoryMockRecorder) GetUserByEmail

func (mr *MockUserRepositoryMockRecorder) GetUserByEmail(ctx, email any) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockUserRepositoryMockRecorder) GetUserByID

func (mr *MockUserRepositoryMockRecorder) GetUserByID(ctx, id any) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockUserRepositoryMockRecorder) ListUsers

func (mr *MockUserRepositoryMockRecorder) ListUsers(ctx, skip, limit any) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockUserRepositoryMockRecorder) UpdateUser

func (mr *MockUserRepositoryMockRecorder) UpdateUser(ctx, user any) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

type MockUserService

type MockUserService struct {
	// contains filtered or unexported fields
}

MockUserService is a mock of UserService interface.

func NewMockUserService

func NewMockUserService(ctrl *gomock.Controller) *MockUserService

NewMockUserService creates a new mock instance.

func (*MockUserService) DeleteUser

func (m *MockUserService) DeleteUser(ctx context.Context, id uint64) error

DeleteUser mocks base method.

func (*MockUserService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserService) GetUser

func (m *MockUserService) GetUser(ctx context.Context, id uint64) (*domainuser.User, error)

GetUser mocks base method.

func (*MockUserService) ListUsers

func (m *MockUserService) ListUsers(ctx context.Context, skip, limit uint64) ([]domainuser.User, error)

ListUsers mocks base method.

func (*MockUserService) Register

func (m *MockUserService) Register(ctx context.Context, user *domainuser.User) (*domainuser.User, error)

Register mocks base method.

func (*MockUserService) UpdateUser

func (m *MockUserService) UpdateUser(ctx context.Context, user *domainuser.User) (*domainuser.User, error)

UpdateUser mocks base method.

type MockUserServiceMockRecorder

type MockUserServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) DeleteUser

func (mr *MockUserServiceMockRecorder) DeleteUser(ctx, id any) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockUserServiceMockRecorder) GetUser

func (mr *MockUserServiceMockRecorder) GetUser(ctx, id any) *gomock.Call

GetUser indicates an expected call of GetUser.

func (*MockUserServiceMockRecorder) ListUsers

func (mr *MockUserServiceMockRecorder) ListUsers(ctx, skip, limit any) *gomock.Call

ListUsers indicates an expected call of ListUsers.

func (*MockUserServiceMockRecorder) Register

func (mr *MockUserServiceMockRecorder) Register(ctx, user any) *gomock.Call

Register indicates an expected call of Register.

func (*MockUserServiceMockRecorder) UpdateUser

func (mr *MockUserServiceMockRecorder) UpdateUser(ctx, user any) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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