mock

package
v0.0.0-...-592584e Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 8 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 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

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

CreateQRCode mocks base method.

func (*MockExternalPaymentService) EXPECT

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

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

func (*MockOrderService) GetById

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

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

func (*MockOrderUseCase) GetById

func (m *MockOrderUseCase) GetById(id int) (*entity.Order, error)

GetById mocks base method.

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

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

func (m *MockPaymentUseCase) Create(ctx context.Context, 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(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

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.

Jump to

Keyboard shortcuts

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