Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockReader
- type MockReaderMockRecorder
- type MockRepository
- func (m *MockRepository) Create(ctx context.Context, e *transaction.Transaction) (*transaction.Transaction, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) Get(ctx context.Context, id *uint32) (*transaction.Transaction, error)
- func (m *MockRepository) Update(ctx context.Context, e *transaction.Transaction) error
- type MockRepositoryMockRecorder
- type MockUseCase
- func (m *MockUseCase) CreateTransaction(ctx context.Context, userID uint32, subTotal, discount, total float64, ...) (*transaction.Transaction, error)
- func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
- func (m *MockUseCase) GetTransaction(ctx context.Context, transactionId *uint32) (transaction.Transaction, error)
- func (m *MockUseCase) UpdateTransaction(ctx context.Context, e *transaction.Transaction) error
- type MockUseCaseMockRecorder
- func (mr *MockUseCaseMockRecorder) CreateTransaction(ctx, userID, subTotal, discount, total, status interface{}) *gomock.Call
- func (mr *MockUseCaseMockRecorder) GetTransaction(ctx, transactionId interface{}) *gomock.Call
- func (mr *MockUseCaseMockRecorder) UpdateTransaction(ctx, e interface{}) *gomock.Call
- type MockWriter
- type MockWriterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockReader ¶
type MockReader struct {
// contains filtered or unexported fields
}
MockReader is a mock of Reader interface.
func NewMockReader ¶
func NewMockReader(ctrl *gomock.Controller) *MockReader
NewMockReader creates a new mock instance.
func (*MockReader) EXPECT ¶
func (m *MockReader) EXPECT() *MockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReader) Get ¶
func (m *MockReader) Get(ctx context.Context, id *uint32) (*transaction.Transaction, error)
Get mocks base method.
type MockReaderMockRecorder ¶
type MockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockReaderMockRecorder is the mock recorder for MockReader.
func (*MockReaderMockRecorder) Get ¶
func (mr *MockReaderMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) Create ¶
func (m *MockRepository) Create(ctx context.Context, e *transaction.Transaction) (*transaction.Transaction, error)
Create mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepository) Get ¶
func (m *MockRepository) Get(ctx context.Context, id *uint32) (*transaction.Transaction, error)
Get mocks base method.
func (*MockRepository) Update ¶
func (m *MockRepository) Update(ctx context.Context, e *transaction.Transaction) error
Update mocks base method.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) Create ¶
func (mr *MockRepositoryMockRecorder) Create(ctx, e interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Get ¶
func (mr *MockRepositoryMockRecorder) Get(ctx, id interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockRepositoryMockRecorder) Update ¶
func (mr *MockRepositoryMockRecorder) Update(ctx, e interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockUseCase ¶
type MockUseCase struct {
// contains filtered or unexported fields
}
MockUseCase is a mock of UseCase interface.
func NewMockUseCase ¶
func NewMockUseCase(ctrl *gomock.Controller) *MockUseCase
NewMockUseCase creates a new mock instance.
func (*MockUseCase) CreateTransaction ¶
func (m *MockUseCase) CreateTransaction(ctx context.Context, userID uint32, subTotal, discount, total float64, status string) (*transaction.Transaction, error)
CreateTransaction mocks base method.
func (*MockUseCase) EXPECT ¶
func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUseCase) GetTransaction ¶
func (m *MockUseCase) GetTransaction(ctx context.Context, transactionId *uint32) (transaction.Transaction, error)
GetTransaction mocks base method.
func (*MockUseCase) UpdateTransaction ¶
func (m *MockUseCase) UpdateTransaction(ctx context.Context, e *transaction.Transaction) error
UpdateTransaction mocks base method.
type MockUseCaseMockRecorder ¶
type MockUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUseCaseMockRecorder is the mock recorder for MockUseCase.
func (*MockUseCaseMockRecorder) CreateTransaction ¶
func (mr *MockUseCaseMockRecorder) CreateTransaction(ctx, userID, subTotal, discount, total, status interface{}) *gomock.Call
CreateTransaction indicates an expected call of CreateTransaction.
func (*MockUseCaseMockRecorder) GetTransaction ¶
func (mr *MockUseCaseMockRecorder) GetTransaction(ctx, transactionId interface{}) *gomock.Call
GetTransaction indicates an expected call of GetTransaction.
func (*MockUseCaseMockRecorder) UpdateTransaction ¶
func (mr *MockUseCaseMockRecorder) UpdateTransaction(ctx, e interface{}) *gomock.Call
UpdateTransaction indicates an expected call of UpdateTransaction.
type MockWriter ¶
type MockWriter struct {
// contains filtered or unexported fields
}
MockWriter is a mock of Writer interface.
func NewMockWriter ¶
func NewMockWriter(ctrl *gomock.Controller) *MockWriter
NewMockWriter creates a new mock instance.
func (*MockWriter) Create ¶
func (m *MockWriter) Create(ctx context.Context, e *transaction.Transaction) (*transaction.Transaction, error)
Create mocks base method.
func (*MockWriter) EXPECT ¶
func (m *MockWriter) EXPECT() *MockWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWriter) Update ¶
func (m *MockWriter) Update(ctx context.Context, e *transaction.Transaction) error
Update mocks base method.
type MockWriterMockRecorder ¶
type MockWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockWriterMockRecorder is the mock recorder for MockWriter.
func (*MockWriterMockRecorder) Create ¶
func (mr *MockWriterMockRecorder) Create(ctx, e interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockWriterMockRecorder) Update ¶
func (mr *MockWriterMockRecorder) Update(ctx, e interface{}) *gomock.Call
Update indicates an expected call of Update.