mock

package
v0.0.0-...-df5917f Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 6 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 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) AllTasks

func (m *MockRepository) AllTasks(ctx context.Context, pq *utils.PaginationQuery) ([]*entities.Task, error)

AllTasks mocks base method.

func (*MockRepository) CreateTask

func (m *MockRepository) CreateTask(ctx context.Context, task *entities.Task) (*entities.Task, error)

CreateTask mocks base method.

func (*MockRepository) DeleteTask

func (m *MockRepository) DeleteTask(ctx context.Context, id uuid.UUID) error

DeleteTask mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetTask

func (m *MockRepository) GetTask(ctx context.Context, id uuid.UUID) (*entities.Task, error)

GetTask mocks base method.

func (*MockRepository) UpdateTask

func (m *MockRepository) UpdateTask(ctx context.Context, task *entities.Task) (*entities.Task, error)

UpdateTask mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) AllTasks

func (mr *MockRepositoryMockRecorder) AllTasks(ctx, pq any) *gomock.Call

AllTasks indicates an expected call of AllTasks.

func (*MockRepositoryMockRecorder) CreateTask

func (mr *MockRepositoryMockRecorder) CreateTask(ctx, task any) *gomock.Call

CreateTask indicates an expected call of CreateTask.

func (*MockRepositoryMockRecorder) DeleteTask

func (mr *MockRepositoryMockRecorder) DeleteTask(ctx, id any) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockRepositoryMockRecorder) GetTask

func (mr *MockRepositoryMockRecorder) GetTask(ctx, id any) *gomock.Call

GetTask indicates an expected call of GetTask.

func (*MockRepositoryMockRecorder) UpdateTask

func (mr *MockRepositoryMockRecorder) UpdateTask(ctx, task any) *gomock.Call

UpdateTask indicates an expected call of UpdateTask.

Jump to

Keyboard shortcuts

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