mock

package
v0.0.0-...-8054c29 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 6 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.

Index

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

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

func (*MockCategoryRepository) GetById

func (m *MockCategoryRepository) GetById(id int) (*entity.Category, error)

GetById mocks base method.

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

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

func (*MockCategoryUseCase) GetById

func (m *MockCategoryUseCase) GetById(id int) (*entity.Category, error)

GetById mocks base method.

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

func (m *MockClientRepository) Create(client entity.Client) (entity.Client, error)

Create mocks base method.

func (*MockClientRepository) EXPECT

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

func (*MockClientRepository) GetAlreadyExists

func (m *MockClientRepository) GetAlreadyExists(cpf int, email string) (*entity.Client, error)

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

func (m *MockClientUseCase) Create(client entity.Client) (*entity.Client, error)

Create mocks base method.

func (*MockClientUseCase) EXPECT

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

func (*MockClientUseCase) GetAlreadyExists

func (m *MockClientUseCase) GetAlreadyExists(cpf int, email string) (*entity.Client, error)

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

func (m *MockOrderRepository) Create(order entity.Order) (entity.Order, error)

Create mocks base method.

func (*MockOrderRepository) EXPECT

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

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

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

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

func (m *MockPaymentRepository) Create(payment entity.Payment) (entity.Payment, error)

Create mocks base method.

func (*MockPaymentRepository) EXPECT

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

CreateQRCode mocks base method.

func (*MockPaymentUseCase) EXPECT

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

func (m *MockProductRepository) Create(product entity.Product) (entity.Product, error)

Create mocks base method.

func (*MockProductRepository) Delete

func (m *MockProductRepository) Delete(id int) error

Delete mocks base method.

func (*MockProductRepository) EXPECT

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.

func (*MockProductRepository) Update

func (m *MockProductRepository) Update(product entity.Product) (*entity.Product, error)

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

func (m *MockProductUseCase) Create(product entity.Product) (*entity.Product, error)

Create mocks base method.

func (*MockProductUseCase) Delete

func (m *MockProductUseCase) Delete(id int) error

Delete mocks base method.

func (*MockProductUseCase) EXPECT

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.

func (*MockProductUseCase) Update

func (m *MockProductUseCase) Update(product entity.Product, id int) (*entity.Product, error)

Update 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

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.

Jump to

Keyboard shortcuts

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