Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockCategoryRepository
- type MockCategoryRepositoryMockRecorder
- type MockCategoryUseCase
- type MockCategoryUseCaseMockRecorder
- type MockClientRepository
- func (m *MockClientRepository) Create(client entity.Client) (entity.Client, error)
- func (m *MockClientRepository) EXPECT() *MockClientRepositoryMockRecorder
- func (m *MockClientRepository) GetAlreadyExists(cpf int, email string) (*entity.Client, error)
- func (m *MockClientRepository) GetClientByCpf(cpf int) (*entity.Client, error)
- func (m *MockClientRepository) GetClientById(id *int) (*entity.Client, error)
- type MockClientRepositoryMockRecorder
- func (mr *MockClientRepositoryMockRecorder) Create(client interface{}) *gomock.Call
- func (mr *MockClientRepositoryMockRecorder) GetAlreadyExists(cpf, email interface{}) *gomock.Call
- func (mr *MockClientRepositoryMockRecorder) GetClientByCpf(cpf interface{}) *gomock.Call
- func (mr *MockClientRepositoryMockRecorder) GetClientById(id interface{}) *gomock.Call
- type MockClientUseCase
- func (m *MockClientUseCase) Create(client entity.Client) (*entity.Client, error)
- func (m *MockClientUseCase) EXPECT() *MockClientUseCaseMockRecorder
- func (m *MockClientUseCase) GetAlreadyExists(cpf int, email string) (*entity.Client, error)
- func (m *MockClientUseCase) GetClientByCpf(cpf int) (*entity.Client, error)
- func (m *MockClientUseCase) GetClientById(id *int) (*entity.Client, error)
- type MockClientUseCaseMockRecorder
- func (mr *MockClientUseCaseMockRecorder) Create(client interface{}) *gomock.Call
- func (mr *MockClientUseCaseMockRecorder) GetAlreadyExists(cpf, email interface{}) *gomock.Call
- func (mr *MockClientUseCaseMockRecorder) GetClientByCpf(cpf interface{}) *gomock.Call
- func (mr *MockClientUseCaseMockRecorder) GetClientById(id interface{}) *gomock.Call
- type MockOrderRepository
- func (m *MockOrderRepository) Create(order entity.Order) (entity.Order, error)
- func (m *MockOrderRepository) EXPECT() *MockOrderRepositoryMockRecorder
- func (m *MockOrderRepository) GetAll() ([]entity.Order, error)
- func (m *MockOrderRepository) GetById(id int) (*entity.Order, error)
- func (m *MockOrderRepository) UpdateStatusById(id int, status enum.StatusOrder) error
- type MockOrderRepositoryMockRecorder
- func (mr *MockOrderRepositoryMockRecorder) Create(order interface{}) *gomock.Call
- func (mr *MockOrderRepositoryMockRecorder) GetAll() *gomock.Call
- func (mr *MockOrderRepositoryMockRecorder) GetById(id interface{}) *gomock.Call
- func (mr *MockOrderRepositoryMockRecorder) UpdateStatusById(id, status interface{}) *gomock.Call
- type MockOrderUseCase
- func (m *MockOrderUseCase) Create(order entity.Order, products []*entity.Product) (*entity.Order, error)
- func (m *MockOrderUseCase) EXPECT() *MockOrderUseCaseMockRecorder
- func (m *MockOrderUseCase) GetAll() (*[]entity.Order, error)
- func (m *MockOrderUseCase) GetById(id int) (*entity.Order, error)
- func (m *MockOrderUseCase) UpdateStatusById(id int, status enum.StatusOrder) error
- type MockOrderUseCaseMockRecorder
- func (mr *MockOrderUseCaseMockRecorder) Create(order, products interface{}) *gomock.Call
- func (mr *MockOrderUseCaseMockRecorder) GetAll() *gomock.Call
- func (mr *MockOrderUseCaseMockRecorder) GetById(id interface{}) *gomock.Call
- func (mr *MockOrderUseCaseMockRecorder) UpdateStatusById(id, status interface{}) *gomock.Call
- type MockPaymentRepository
- type MockPaymentRepositoryMockRecorder
- type MockPaymentUseCase
- func (m *MockPaymentUseCase) Create(payment *entity.Payment) error
- func (m *MockPaymentUseCase) CreateQRCode(order *entity.Order) (*response_payment_service.CreateQRCode, error)
- func (m *MockPaymentUseCase) EXPECT() *MockPaymentUseCaseMockRecorder
- func (m *MockPaymentUseCase) GetLastPaymentStatus(orderId int) (enum.PaymentStatus, error)
- func (m *MockPaymentUseCase) PaymentNotification(order *entity.Order) error
- type MockPaymentUseCaseMockRecorder
- func (mr *MockPaymentUseCaseMockRecorder) Create(payment interface{}) *gomock.Call
- func (mr *MockPaymentUseCaseMockRecorder) CreateQRCode(order interface{}) *gomock.Call
- func (mr *MockPaymentUseCaseMockRecorder) GetLastPaymentStatus(orderId interface{}) *gomock.Call
- func (mr *MockPaymentUseCaseMockRecorder) PaymentNotification(order interface{}) *gomock.Call
- type MockProductRepository
- func (m *MockProductRepository) Create(product entity.Product) (entity.Product, error)
- func (m *MockProductRepository) Delete(id int) error
- func (m *MockProductRepository) EXPECT() *MockProductRepositoryMockRecorder
- func (m *MockProductRepository) GetById(id int) (*entity.Product, error)
- func (m *MockProductRepository) GetProductByCategory(categoryId int) ([]entity.Product, error)
- func (m *MockProductRepository) Update(product entity.Product) (*entity.Product, error)
- type MockProductRepositoryMockRecorder
- func (mr *MockProductRepositoryMockRecorder) Create(product interface{}) *gomock.Call
- func (mr *MockProductRepositoryMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockProductRepositoryMockRecorder) GetById(id interface{}) *gomock.Call
- func (mr *MockProductRepositoryMockRecorder) GetProductByCategory(categoryId interface{}) *gomock.Call
- func (mr *MockProductRepositoryMockRecorder) Update(product interface{}) *gomock.Call
- type MockProductUseCase
- func (m *MockProductUseCase) Create(product entity.Product) (*entity.Product, error)
- func (m *MockProductUseCase) Delete(id int) error
- func (m *MockProductUseCase) EXPECT() *MockProductUseCaseMockRecorder
- func (m *MockProductUseCase) GetById(int int) (*entity.Product, error)
- func (m *MockProductUseCase) GetProductByCategory(categoryId int) ([]entity.Product, error)
- func (m *MockProductUseCase) Update(product entity.Product, id int) (*entity.Product, error)
- type MockProductUseCaseMockRecorder
- func (mr *MockProductUseCaseMockRecorder) Create(product interface{}) *gomock.Call
- func (mr *MockProductUseCaseMockRecorder) Delete(id interface{}) *gomock.Call
- func (mr *MockProductUseCaseMockRecorder) GetById(int interface{}) *gomock.Call
- func (mr *MockProductUseCaseMockRecorder) GetProductByCategory(categoryId interface{}) *gomock.Call
- func (mr *MockProductUseCaseMockRecorder) Update(product, id interface{}) *gomock.Call
- type MockQueueService
- func (m *MockQueueService) DeleteMessage(queueURL, receiptHandle string) error
- func (m *MockQueueService) EXPECT() *MockQueueServiceMockRecorder
- func (m *MockQueueService) ReceiveMessage(queueUrl string) (*types.Message, error)
- func (m *MockQueueService) SendMessage(queueUrl, message, messageGroupId string) error
- type MockQueueServiceMockRecorder
- func (mr *MockQueueServiceMockRecorder) DeleteMessage(queueURL, receiptHandle interface{}) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) ReceiveMessage(queueUrl interface{}) *gomock.Call
- func (mr *MockQueueServiceMockRecorder) SendMessage(queueUrl, message, messageGroupId interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) EXPECT ¶
func (m *MockCategoryRepository) EXPECT() *MockCategoryRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCategoryRepositoryMockRecorder ¶
type MockCategoryRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockCategoryRepositoryMockRecorder is the mock recorder for MockCategoryRepository.
func (*MockCategoryRepositoryMockRecorder) GetById ¶
func (mr *MockCategoryRepositoryMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
type MockCategoryUseCase ¶
type MockCategoryUseCase struct {
// contains filtered or unexported fields
}
MockCategoryUseCase is a mock of CategoryUseCase interface.
func NewMockCategoryUseCase ¶
func NewMockCategoryUseCase(ctrl *gomock.Controller) *MockCategoryUseCase
NewMockCategoryUseCase creates a new mock instance.
func (*MockCategoryUseCase) EXPECT ¶
func (m *MockCategoryUseCase) EXPECT() *MockCategoryUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCategoryUseCaseMockRecorder ¶
type MockCategoryUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockCategoryUseCaseMockRecorder is the mock recorder for MockCategoryUseCase.
func (*MockCategoryUseCaseMockRecorder) GetById ¶
func (mr *MockCategoryUseCaseMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
type MockClientRepository ¶
type MockClientRepository struct {
// contains filtered or unexported fields
}
MockClientRepository is a mock of ClientRepository interface.
func NewMockClientRepository ¶
func NewMockClientRepository(ctrl *gomock.Controller) *MockClientRepository
NewMockClientRepository creates a new mock instance.
func (*MockClientRepository) EXPECT ¶
func (m *MockClientRepository) EXPECT() *MockClientRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientRepository) GetAlreadyExists ¶
GetAlreadyExists mocks base method.
func (*MockClientRepository) GetClientByCpf ¶
func (m *MockClientRepository) GetClientByCpf(cpf int) (*entity.Client, error)
GetClientByCpf mocks base method.
func (*MockClientRepository) GetClientById ¶
func (m *MockClientRepository) GetClientById(id *int) (*entity.Client, error)
GetClientById mocks base method.
type MockClientRepositoryMockRecorder ¶
type MockClientRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockClientRepositoryMockRecorder is the mock recorder for MockClientRepository.
func (*MockClientRepositoryMockRecorder) Create ¶
func (mr *MockClientRepositoryMockRecorder) Create(client interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockClientRepositoryMockRecorder) GetAlreadyExists ¶
func (mr *MockClientRepositoryMockRecorder) GetAlreadyExists(cpf, email interface{}) *gomock.Call
GetAlreadyExists indicates an expected call of GetAlreadyExists.
func (*MockClientRepositoryMockRecorder) GetClientByCpf ¶
func (mr *MockClientRepositoryMockRecorder) GetClientByCpf(cpf interface{}) *gomock.Call
GetClientByCpf indicates an expected call of GetClientByCpf.
func (*MockClientRepositoryMockRecorder) GetClientById ¶
func (mr *MockClientRepositoryMockRecorder) GetClientById(id interface{}) *gomock.Call
GetClientById indicates an expected call of GetClientById.
type MockClientUseCase ¶
type MockClientUseCase struct {
// contains filtered or unexported fields
}
MockClientUseCase is a mock of ClientUseCase interface.
func NewMockClientUseCase ¶
func NewMockClientUseCase(ctrl *gomock.Controller) *MockClientUseCase
NewMockClientUseCase creates a new mock instance.
func (*MockClientUseCase) EXPECT ¶
func (m *MockClientUseCase) EXPECT() *MockClientUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientUseCase) GetAlreadyExists ¶
GetAlreadyExists mocks base method.
func (*MockClientUseCase) GetClientByCpf ¶
func (m *MockClientUseCase) GetClientByCpf(cpf int) (*entity.Client, error)
GetClientByCpf mocks base method.
func (*MockClientUseCase) GetClientById ¶
func (m *MockClientUseCase) GetClientById(id *int) (*entity.Client, error)
GetClientById mocks base method.
type MockClientUseCaseMockRecorder ¶
type MockClientUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockClientUseCaseMockRecorder is the mock recorder for MockClientUseCase.
func (*MockClientUseCaseMockRecorder) Create ¶
func (mr *MockClientUseCaseMockRecorder) Create(client interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockClientUseCaseMockRecorder) GetAlreadyExists ¶
func (mr *MockClientUseCaseMockRecorder) GetAlreadyExists(cpf, email interface{}) *gomock.Call
GetAlreadyExists indicates an expected call of GetAlreadyExists.
func (*MockClientUseCaseMockRecorder) GetClientByCpf ¶
func (mr *MockClientUseCaseMockRecorder) GetClientByCpf(cpf interface{}) *gomock.Call
GetClientByCpf indicates an expected call of GetClientByCpf.
func (*MockClientUseCaseMockRecorder) GetClientById ¶
func (mr *MockClientUseCaseMockRecorder) GetClientById(id interface{}) *gomock.Call
GetClientById indicates an expected call of GetClientById.
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) EXPECT ¶
func (m *MockOrderRepository) EXPECT() *MockOrderRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderRepository) GetAll ¶
func (m *MockOrderRepository) GetAll() ([]entity.Order, error)
GetAll mocks base method.
func (*MockOrderRepository) GetById ¶
func (m *MockOrderRepository) GetById(id int) (*entity.Order, error)
GetById mocks base method.
func (*MockOrderRepository) UpdateStatusById ¶
func (m *MockOrderRepository) UpdateStatusById(id int, status enum.StatusOrder) error
UpdateStatusById mocks base method.
type MockOrderRepositoryMockRecorder ¶
type MockOrderRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderRepositoryMockRecorder is the mock recorder for MockOrderRepository.
func (*MockOrderRepositoryMockRecorder) Create ¶
func (mr *MockOrderRepositoryMockRecorder) Create(order interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockOrderRepositoryMockRecorder) GetAll ¶
func (mr *MockOrderRepositoryMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockOrderRepositoryMockRecorder) GetById ¶
func (mr *MockOrderRepositoryMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockOrderRepositoryMockRecorder) UpdateStatusById ¶
func (mr *MockOrderRepositoryMockRecorder) UpdateStatusById(id, status interface{}) *gomock.Call
UpdateStatusById indicates an expected call of UpdateStatusById.
type MockOrderUseCase ¶
type MockOrderUseCase struct {
// contains filtered or unexported fields
}
MockOrderUseCase is a mock of OrderUseCase interface.
func NewMockOrderUseCase ¶
func NewMockOrderUseCase(ctrl *gomock.Controller) *MockOrderUseCase
NewMockOrderUseCase creates a new mock instance.
func (*MockOrderUseCase) Create ¶
func (m *MockOrderUseCase) Create(order entity.Order, products []*entity.Product) (*entity.Order, error)
Create mocks base method.
func (*MockOrderUseCase) EXPECT ¶
func (m *MockOrderUseCase) EXPECT() *MockOrderUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderUseCase) GetAll ¶
func (m *MockOrderUseCase) GetAll() (*[]entity.Order, error)
GetAll mocks base method.
func (*MockOrderUseCase) GetById ¶
func (m *MockOrderUseCase) GetById(id int) (*entity.Order, error)
GetById mocks base method.
func (*MockOrderUseCase) UpdateStatusById ¶
func (m *MockOrderUseCase) UpdateStatusById(id int, status enum.StatusOrder) error
UpdateStatusById mocks base method.
type MockOrderUseCaseMockRecorder ¶
type MockOrderUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderUseCaseMockRecorder is the mock recorder for MockOrderUseCase.
func (*MockOrderUseCaseMockRecorder) Create ¶
func (mr *MockOrderUseCaseMockRecorder) Create(order, products interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockOrderUseCaseMockRecorder) GetAll ¶
func (mr *MockOrderUseCaseMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockOrderUseCaseMockRecorder) GetById ¶
func (mr *MockOrderUseCaseMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockOrderUseCaseMockRecorder) UpdateStatusById ¶
func (mr *MockOrderUseCaseMockRecorder) UpdateStatusById(id, status interface{}) *gomock.Call
UpdateStatusById indicates an expected call of UpdateStatusById.
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) EXPECT ¶
func (m *MockPaymentRepository) EXPECT() *MockPaymentRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPaymentRepository) GetLastPaymentStatus ¶
func (m *MockPaymentRepository) GetLastPaymentStatus(orderId int) (*entity.Payment, error)
GetLastPaymentStatus mocks base method.
type MockPaymentRepositoryMockRecorder ¶
type MockPaymentRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockPaymentRepositoryMockRecorder is the mock recorder for MockPaymentRepository.
func (*MockPaymentRepositoryMockRecorder) Create ¶
func (mr *MockPaymentRepositoryMockRecorder) Create(payment interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPaymentRepositoryMockRecorder) GetLastPaymentStatus ¶
func (mr *MockPaymentRepositoryMockRecorder) GetLastPaymentStatus(orderId interface{}) *gomock.Call
GetLastPaymentStatus indicates an expected call of GetLastPaymentStatus.
type MockPaymentUseCase ¶
type MockPaymentUseCase struct {
// contains filtered or unexported fields
}
MockPaymentUseCase is a mock of PaymentUseCase interface.
func NewMockPaymentUseCase ¶
func NewMockPaymentUseCase(ctrl *gomock.Controller) *MockPaymentUseCase
NewMockPaymentUseCase creates a new mock instance.
func (*MockPaymentUseCase) Create ¶
func (m *MockPaymentUseCase) Create(payment *entity.Payment) error
Create mocks base method.
func (*MockPaymentUseCase) CreateQRCode ¶
func (m *MockPaymentUseCase) CreateQRCode(order *entity.Order) (*response_payment_service.CreateQRCode, error)
CreateQRCode mocks base method.
func (*MockPaymentUseCase) EXPECT ¶
func (m *MockPaymentUseCase) EXPECT() *MockPaymentUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPaymentUseCase) GetLastPaymentStatus ¶
func (m *MockPaymentUseCase) GetLastPaymentStatus(orderId int) (enum.PaymentStatus, error)
GetLastPaymentStatus mocks base method.
func (*MockPaymentUseCase) PaymentNotification ¶
func (m *MockPaymentUseCase) PaymentNotification(order *entity.Order) error
PaymentNotification mocks base method.
type MockPaymentUseCaseMockRecorder ¶
type MockPaymentUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockPaymentUseCaseMockRecorder is the mock recorder for MockPaymentUseCase.
func (*MockPaymentUseCaseMockRecorder) Create ¶
func (mr *MockPaymentUseCaseMockRecorder) Create(payment interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPaymentUseCaseMockRecorder) CreateQRCode ¶
func (mr *MockPaymentUseCaseMockRecorder) CreateQRCode(order interface{}) *gomock.Call
CreateQRCode indicates an expected call of CreateQRCode.
func (*MockPaymentUseCaseMockRecorder) GetLastPaymentStatus ¶
func (mr *MockPaymentUseCaseMockRecorder) GetLastPaymentStatus(orderId interface{}) *gomock.Call
GetLastPaymentStatus indicates an expected call of GetLastPaymentStatus.
func (*MockPaymentUseCaseMockRecorder) PaymentNotification ¶
func (mr *MockPaymentUseCaseMockRecorder) PaymentNotification(order interface{}) *gomock.Call
PaymentNotification indicates an expected call of PaymentNotification.
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) Delete ¶
func (m *MockProductRepository) Delete(id int) error
Delete mocks base method.
func (*MockProductRepository) EXPECT ¶
func (m *MockProductRepository) EXPECT() *MockProductRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductRepository) GetById ¶
func (m *MockProductRepository) GetById(id int) (*entity.Product, error)
GetById mocks base method.
func (*MockProductRepository) GetProductByCategory ¶
func (m *MockProductRepository) GetProductByCategory(categoryId int) ([]entity.Product, error)
GetProductByCategory mocks base method.
type MockProductRepositoryMockRecorder ¶
type MockProductRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockProductRepositoryMockRecorder is the mock recorder for MockProductRepository.
func (*MockProductRepositoryMockRecorder) Create ¶
func (mr *MockProductRepositoryMockRecorder) Create(product interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockProductRepositoryMockRecorder) Delete ¶
func (mr *MockProductRepositoryMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockProductRepositoryMockRecorder) GetById ¶
func (mr *MockProductRepositoryMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockProductRepositoryMockRecorder) GetProductByCategory ¶
func (mr *MockProductRepositoryMockRecorder) GetProductByCategory(categoryId interface{}) *gomock.Call
GetProductByCategory indicates an expected call of GetProductByCategory.
func (*MockProductRepositoryMockRecorder) Update ¶
func (mr *MockProductRepositoryMockRecorder) Update(product interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockProductUseCase ¶
type MockProductUseCase struct {
// contains filtered or unexported fields
}
MockProductUseCase is a mock of ProductUseCase interface.
func NewMockProductUseCase ¶
func NewMockProductUseCase(ctrl *gomock.Controller) *MockProductUseCase
NewMockProductUseCase creates a new mock instance.
func (*MockProductUseCase) Delete ¶
func (m *MockProductUseCase) Delete(id int) error
Delete mocks base method.
func (*MockProductUseCase) EXPECT ¶
func (m *MockProductUseCase) EXPECT() *MockProductUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProductUseCase) GetById ¶
func (m *MockProductUseCase) GetById(int int) (*entity.Product, error)
GetById mocks base method.
func (*MockProductUseCase) GetProductByCategory ¶
func (m *MockProductUseCase) GetProductByCategory(categoryId int) ([]entity.Product, error)
GetProductByCategory mocks base method.
type MockProductUseCaseMockRecorder ¶
type MockProductUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockProductUseCaseMockRecorder is the mock recorder for MockProductUseCase.
func (*MockProductUseCaseMockRecorder) Create ¶
func (mr *MockProductUseCaseMockRecorder) Create(product interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockProductUseCaseMockRecorder) Delete ¶
func (mr *MockProductUseCaseMockRecorder) Delete(id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockProductUseCaseMockRecorder) GetById ¶
func (mr *MockProductUseCaseMockRecorder) GetById(int interface{}) *gomock.Call
GetById indicates an expected call of GetById.
func (*MockProductUseCaseMockRecorder) GetProductByCategory ¶
func (mr *MockProductUseCaseMockRecorder) GetProductByCategory(categoryId interface{}) *gomock.Call
GetProductByCategory indicates an expected call of GetProductByCategory.
func (*MockProductUseCaseMockRecorder) Update ¶
func (mr *MockProductUseCaseMockRecorder) Update(product, id interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockQueueService ¶
type MockQueueService struct {
// contains filtered or unexported fields
}
MockQueueService is a mock of QueueService interface.
func NewMockQueueService ¶
func NewMockQueueService(ctrl *gomock.Controller) *MockQueueService
NewMockQueueService creates a new mock instance.
func (*MockQueueService) DeleteMessage ¶
func (m *MockQueueService) DeleteMessage(queueURL, receiptHandle string) error
DeleteMessage mocks base method.
func (*MockQueueService) EXPECT ¶
func (m *MockQueueService) EXPECT() *MockQueueServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueueService) ReceiveMessage ¶
func (m *MockQueueService) ReceiveMessage(queueUrl string) (*types.Message, error)
ReceiveMessage mocks base method.
func (*MockQueueService) SendMessage ¶
func (m *MockQueueService) SendMessage(queueUrl, message, messageGroupId string) error
SendMessage mocks base method.
type MockQueueServiceMockRecorder ¶
type MockQueueServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockQueueServiceMockRecorder is the mock recorder for MockQueueService.
func (*MockQueueServiceMockRecorder) DeleteMessage ¶
func (mr *MockQueueServiceMockRecorder) DeleteMessage(queueURL, receiptHandle interface{}) *gomock.Call
DeleteMessage indicates an expected call of DeleteMessage.
func (*MockQueueServiceMockRecorder) ReceiveMessage ¶
func (mr *MockQueueServiceMockRecorder) ReceiveMessage(queueUrl interface{}) *gomock.Call
ReceiveMessage indicates an expected call of ReceiveMessage.
func (*MockQueueServiceMockRecorder) SendMessage ¶
func (mr *MockQueueServiceMockRecorder) SendMessage(queueUrl, message, messageGroupId interface{}) *gomock.Call
SendMessage indicates an expected call of SendMessage.