mock

package
v0.0.0-...-3bf3187 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 6 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 MockHandlers

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

MockHandlers is a mock of Handlers interface.

func NewMockHandlers

func NewMockHandlers(ctrl *gomock.Controller) *MockHandlers

NewMockHandlers creates a new mock instance.

func (*MockHandlers) Create

func (m *MockHandlers) Create() echo.HandlerFunc

Create mocks base method.

func (*MockHandlers) Delete

func (m *MockHandlers) Delete() echo.HandlerFunc

Delete mocks base method.

func (*MockHandlers) EXPECT

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

func (*MockHandlers) GetAll

func (m *MockHandlers) GetAll() echo.HandlerFunc

GetAll mocks base method.

func (*MockHandlers) GetByID

func (m *MockHandlers) GetByID() echo.HandlerFunc

GetByID mocks base method.

func (*MockHandlers) Update

func (m *MockHandlers) Update() echo.HandlerFunc

Update mocks base method.

type MockHandlersMockRecorder

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

MockHandlersMockRecorder is the mock recorder for MockHandlers.

func (*MockHandlersMockRecorder) Create

func (mr *MockHandlersMockRecorder) Create() *gomock.Call

Create indicates an expected call of Create.

func (*MockHandlersMockRecorder) Delete

func (mr *MockHandlersMockRecorder) Delete() *gomock.Call

Delete indicates an expected call of Delete.

func (*MockHandlersMockRecorder) GetAll

func (mr *MockHandlersMockRecorder) GetAll() *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockHandlersMockRecorder) GetByID

func (mr *MockHandlersMockRecorder) GetByID() *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockHandlersMockRecorder) Update

func (mr *MockHandlersMockRecorder) Update() *gomock.Call

Update indicates an expected call of Update.

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, blog *models.Blog) (*models.Blog, error)

Create mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(ctx context.Context, blogID int64) error

Delete mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetAll

func (m *MockRepository) GetAll(ctx context.Context, query *utils.Query) (*models.BlogList, error)

GetAll mocks base method.

func (*MockRepository) GetByID

func (m *MockRepository) GetByID(ctx context.Context, blogID int64) (*models.Blog, error)

GetByID mocks base method.

func (*MockRepository) Update

func (m *MockRepository) Update(ctx context.Context, blog *models.Blog) (*models.Blog, 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, blog any) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(ctx, blogID any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) GetAll

func (mr *MockRepositoryMockRecorder) GetAll(ctx, query any) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockRepositoryMockRecorder) GetByID

func (mr *MockRepositoryMockRecorder) GetByID(ctx, blogID any) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockRepositoryMockRecorder) Update

func (mr *MockRepositoryMockRecorder) Update(ctx, blog any) *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, blog *models.Blog) (*models.Blog, error)

Create mocks base method.

func (*MockUseCase) Delete

func (m *MockUseCase) Delete(ctx context.Context, blogID int64) 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) GetAll

func (m *MockUseCase) GetAll(ctx context.Context, query *utils.Query) (*models.BlogList, error)

GetAll mocks base method.

func (*MockUseCase) GetByID

func (m *MockUseCase) GetByID(ctx context.Context, blogID int64) (*models.Blog, error)

GetByID mocks base method.

func (*MockUseCase) Update

func (m *MockUseCase) Update(ctx context.Context, blog *models.Blog) (*models.Blog, 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, blog any) *gomock.Call

Create indicates an expected call of Create.

func (*MockUseCaseMockRecorder) Delete

func (mr *MockUseCaseMockRecorder) Delete(ctx, blogID any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUseCaseMockRecorder) GetAll

func (mr *MockUseCaseMockRecorder) GetAll(ctx, query any) *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockUseCaseMockRecorder) GetByID

func (mr *MockUseCaseMockRecorder) GetByID(ctx, blogID any) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockUseCaseMockRecorder) Update

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