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 MockDynamoDB
- func (m *MockDynamoDB) EXPECT() *MockDynamoDBMockRecorder
- func (m *MockDynamoDB) GetItem(ctx context.Context, params *dynamodb.GetItemInput, ...) (*dynamodb.GetItemOutput, error)
- func (m *MockDynamoDB) PutItem(ctx context.Context, params *dynamodb.PutItemInput, ...) (*dynamodb.PutItemOutput, error)
- func (m *MockDynamoDB) UpdateItem(ctx context.Context, params *dynamodb.UpdateItemInput, ...) (*dynamodb.UpdateItemOutput, error)
- type MockDynamoDBMockRecorder
- func (mr *MockDynamoDBMockRecorder) GetItem(ctx, params interface{}, optFns ...interface{}) *gomock.Call
- func (mr *MockDynamoDBMockRecorder) PutItem(ctx, params interface{}, optFns ...interface{}) *gomock.Call
- func (mr *MockDynamoDBMockRecorder) UpdateItem(ctx, params interface{}, optFns ...interface{}) *gomock.Call
- type MockExternalPaymentService
- type MockExternalPaymentServiceMockRecorder
- type MockOrderService
- type MockOrderServiceMockRecorder
- type MockOrderUseCase
- type MockOrderUseCaseMockRecorder
- type MockPaymentRepository
- func (m *MockPaymentRepository) Create(ctx context.Context, payment entity.Payment) (*entity.Payment, error)
- func (m *MockPaymentRepository) EXPECT() *MockPaymentRepositoryMockRecorder
- func (m *MockPaymentRepository) GetLastPaymentStatus(ctx context.Context, orderId int) (*entity.Payment, error)
- func (m *MockPaymentRepository) UpdateStatus(ctx context.Context, orderId int, status enum.PaymentStatus) error
- type MockPaymentRepositoryMockRecorder
- func (mr *MockPaymentRepositoryMockRecorder) Create(ctx, payment interface{}) *gomock.Call
- func (mr *MockPaymentRepositoryMockRecorder) GetLastPaymentStatus(ctx, orderId interface{}) *gomock.Call
- func (mr *MockPaymentRepositoryMockRecorder) UpdateStatus(ctx, orderId, status interface{}) *gomock.Call
- type MockPaymentUseCase
- func (m *MockPaymentUseCase) Create(ctx context.Context, payment *entity.Payment) error
- func (m *MockPaymentUseCase) CreateQRCode(ctx context.Context, order *entity.Order) (*response_payment_service.CreateQRCode, error)
- func (m *MockPaymentUseCase) EXPECT() *MockPaymentUseCaseMockRecorder
- func (m *MockPaymentUseCase) GetLastPaymentStatus(ctx context.Context, paymentId int) (enum.PaymentStatus, error)
- func (m *MockPaymentUseCase) PaymentNotification(ctx context.Context, paymentId int) error
- type MockPaymentUseCaseMockRecorder
- func (mr *MockPaymentUseCaseMockRecorder) Create(ctx, payment interface{}) *gomock.Call
- func (mr *MockPaymentUseCaseMockRecorder) CreateQRCode(ctx, order interface{}) *gomock.Call
- func (mr *MockPaymentUseCaseMockRecorder) GetLastPaymentStatus(ctx, paymentId interface{}) *gomock.Call
- func (mr *MockPaymentUseCaseMockRecorder) PaymentNotification(ctx, paymentId interface{}) *gomock.Call
- type MockSnsService
- type MockSnsServiceMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDynamoDB ¶
type MockDynamoDB struct {
// contains filtered or unexported fields
}
MockDynamoDB is a mock of DynamoDB interface.
func NewMockDynamoDB ¶
func NewMockDynamoDB(ctrl *gomock.Controller) *MockDynamoDB
NewMockDynamoDB creates a new mock instance.
func (*MockDynamoDB) EXPECT ¶
func (m *MockDynamoDB) EXPECT() *MockDynamoDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDynamoDB) GetItem ¶
func (m *MockDynamoDB) GetItem(ctx context.Context, params *dynamodb.GetItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)
GetItem mocks base method.
func (*MockDynamoDB) PutItem ¶
func (m *MockDynamoDB) PutItem(ctx context.Context, params *dynamodb.PutItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.PutItemOutput, error)
PutItem mocks base method.
func (*MockDynamoDB) UpdateItem ¶
func (m *MockDynamoDB) UpdateItem(ctx context.Context, params *dynamodb.UpdateItemInput, optFns ...func(*dynamodb.Options)) (*dynamodb.UpdateItemOutput, error)
UpdateItem mocks base method.
type MockDynamoDBMockRecorder ¶
type MockDynamoDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDynamoDBMockRecorder is the mock recorder for MockDynamoDB.
func (*MockDynamoDBMockRecorder) GetItem ¶
func (mr *MockDynamoDBMockRecorder) GetItem(ctx, params interface{}, optFns ...interface{}) *gomock.Call
GetItem indicates an expected call of GetItem.
func (*MockDynamoDBMockRecorder) PutItem ¶
func (mr *MockDynamoDBMockRecorder) PutItem(ctx, params interface{}, optFns ...interface{}) *gomock.Call
PutItem indicates an expected call of PutItem.
func (*MockDynamoDBMockRecorder) UpdateItem ¶
func (mr *MockDynamoDBMockRecorder) UpdateItem(ctx, params interface{}, optFns ...interface{}) *gomock.Call
UpdateItem indicates an expected call of UpdateItem.
type MockExternalPaymentService ¶
type MockExternalPaymentService struct {
// contains filtered or unexported fields
}
MockExternalPaymentService is a mock of ExternalPaymentService interface.
func NewMockExternalPaymentService ¶
func NewMockExternalPaymentService(ctrl *gomock.Controller) *MockExternalPaymentService
NewMockExternalPaymentService creates a new mock instance.
func (*MockExternalPaymentService) CreateQRCode ¶
func (m *MockExternalPaymentService) CreateQRCode(payment entity.Payment) (response_payment_service.CreateQRCode, error)
CreateQRCode mocks base method.
func (*MockExternalPaymentService) EXPECT ¶
func (m *MockExternalPaymentService) EXPECT() *MockExternalPaymentServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockExternalPaymentServiceMockRecorder ¶
type MockExternalPaymentServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExternalPaymentServiceMockRecorder is the mock recorder for MockExternalPaymentService.
func (*MockExternalPaymentServiceMockRecorder) CreateQRCode ¶
func (mr *MockExternalPaymentServiceMockRecorder) CreateQRCode(payment interface{}) *gomock.Call
CreateQRCode indicates an expected call of CreateQRCode.
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) EXPECT ¶
func (m *MockOrderService) EXPECT() *MockOrderServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockOrderService) GetById ¶
func (m *MockOrderService) GetById(id int) (*response_order_service.GetByIdResp, error)
GetById mocks base method.
type MockOrderServiceMockRecorder ¶
type MockOrderServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderServiceMockRecorder is the mock recorder for MockOrderService.
func (*MockOrderServiceMockRecorder) GetById ¶
func (mr *MockOrderServiceMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
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) EXPECT ¶
func (m *MockOrderUseCase) EXPECT() *MockOrderUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockOrderUseCaseMockRecorder ¶
type MockOrderUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockOrderUseCaseMockRecorder is the mock recorder for MockOrderUseCase.
func (*MockOrderUseCaseMockRecorder) GetById ¶
func (mr *MockOrderUseCaseMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
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(ctx context.Context, payment entity.Payment) (*entity.Payment, error)
Create mocks base method.
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(ctx context.Context, orderId int) (*entity.Payment, error)
GetLastPaymentStatus mocks base method.
func (*MockPaymentRepository) UpdateStatus ¶
func (m *MockPaymentRepository) UpdateStatus(ctx context.Context, orderId int, status enum.PaymentStatus) error
UpdateStatus 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(ctx, payment interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPaymentRepositoryMockRecorder) GetLastPaymentStatus ¶
func (mr *MockPaymentRepositoryMockRecorder) GetLastPaymentStatus(ctx, orderId interface{}) *gomock.Call
GetLastPaymentStatus indicates an expected call of GetLastPaymentStatus.
func (*MockPaymentRepositoryMockRecorder) UpdateStatus ¶
func (mr *MockPaymentRepositoryMockRecorder) UpdateStatus(ctx, orderId, status interface{}) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
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) CreateQRCode ¶
func (m *MockPaymentUseCase) CreateQRCode(ctx context.Context, 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(ctx context.Context, paymentId int) (enum.PaymentStatus, error)
GetLastPaymentStatus mocks base method.
func (*MockPaymentUseCase) PaymentNotification ¶
func (m *MockPaymentUseCase) PaymentNotification(ctx context.Context, paymentId int) 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(ctx, payment interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockPaymentUseCaseMockRecorder) CreateQRCode ¶
func (mr *MockPaymentUseCaseMockRecorder) CreateQRCode(ctx, order interface{}) *gomock.Call
CreateQRCode indicates an expected call of CreateQRCode.
func (*MockPaymentUseCaseMockRecorder) GetLastPaymentStatus ¶
func (mr *MockPaymentUseCaseMockRecorder) GetLastPaymentStatus(ctx, paymentId interface{}) *gomock.Call
GetLastPaymentStatus indicates an expected call of GetLastPaymentStatus.
func (*MockPaymentUseCaseMockRecorder) PaymentNotification ¶
func (mr *MockPaymentUseCaseMockRecorder) PaymentNotification(ctx, paymentId interface{}) *gomock.Call
PaymentNotification indicates an expected call of PaymentNotification.
type MockSnsService ¶
type MockSnsService struct {
// contains filtered or unexported fields
}
MockSnsService is a mock of SnsService interface.
func NewMockSnsService ¶
func NewMockSnsService(ctrl *gomock.Controller) *MockSnsService
NewMockSnsService creates a new mock instance.
func (*MockSnsService) EXPECT ¶
func (m *MockSnsService) EXPECT() *MockSnsServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSnsService) SendMessage ¶
func (m *MockSnsService) SendMessage(paymentId int, status enum.PaymentStatus) error
SendMessage mocks base method.
type MockSnsServiceMockRecorder ¶
type MockSnsServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockSnsServiceMockRecorder is the mock recorder for MockSnsService.
func (*MockSnsServiceMockRecorder) SendMessage ¶
func (mr *MockSnsServiceMockRecorder) SendMessage(paymentId, status interface{}) *gomock.Call
SendMessage indicates an expected call of SendMessage.