mock

package
v0.0.0-...-01a878b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

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 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, product *models.Product) (*models.Product, error)

Create mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, productID uuid.UUID) error

Delete mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetProductByID

func (m *MockRepository) GetProductByID(ctx context.Context, productID uuid.UUID) (*models.Product, error)

GetProductByID mocks base method.

func (*MockRepository) GetProducts

GetProducts mocks base method.

func (*MockRepository) SearchByName

func (m *MockRepository) SearchByName(ctx context.Context, name string, query *utils.PaginationQuery) (*models.ProductList, error)

SearchByName mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, product *models.Product) (*models.Product, 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, product interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, productID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) GetProductByID

func (mr *MockRepositoryMockRecorder) GetProductByID(ctx, productID interface{}) *gomock.Call

GetProductByID indicates an expected call of GetProductByID.

func (*MockRepositoryMockRecorder) GetProducts

func (mr *MockRepositoryMockRecorder) GetProducts(ctx, pq interface{}) *gomock.Call

GetProducts indicates an expected call of GetProducts.

func (*MockRepositoryMockRecorder) SearchByName

func (mr *MockRepositoryMockRecorder) SearchByName(ctx, name, query interface{}) *gomock.Call

SearchByName indicates an expected call of SearchByName.

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, product 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) Create

func (m *MockUseCase) Create(ctx context.Context, order *models.Order) (*models.Order, error)

Create mocks base method.

func (*MockUseCase) Delete

func (m *MockUseCase) Delete(ctx context.Context, orderID uuid.UUID) error

Delete 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) GetOrderByID

func (m *MockUseCase) GetOrderByID(ctx context.Context, orderID uuid.UUID) (*models.Order, error)

GetOrderByID mocks base method.

func (*MockUseCase) Update

func (m *MockUseCase) Update(ctx context.Context, order *models.Order) (*models.Order, error)

Update mocks base method.

type MockUseCaseMockRecorder

type MockUseCaseMockRecorder struct {
	// contains filtered or unexported fields
}

MockUseCaseMockRecorder is the mock recorder for MockUseCase.

func (*MockUseCaseMockRecorder) Create

func (mr *MockUseCaseMockRecorder) Create(ctx, order interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUseCaseMockRecorder) Delete

func (mr *MockUseCaseMockRecorder) Delete(ctx, orderID interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUseCaseMockRecorder) GetOrderByID

func (mr *MockUseCaseMockRecorder) GetOrderByID(ctx, orderID interface{}) *gomock.Call

GetOrderByID indicates an expected call of GetOrderByID.

func (*MockUseCaseMockRecorder) Update

func (mr *MockUseCaseMockRecorder) Update(ctx, order 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