mock

package
v0.0.0-...-e7bea0e Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

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

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

Create mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) Get

Get mocks base method.

func (*MockRepository) Update

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

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

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.

Jump to

Keyboard shortcuts

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