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

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

AllNotes mocks base method.

func (*MockRepository) CreateNote

func (m *MockRepository) CreateNote(ctx context.Context, note *entities.Note) (*entities.Note, error)

CreateNote mocks base method.

func (*MockRepository) DeleteNote

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

DeleteNote mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetNote

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

GetNote mocks base method.

func (*MockRepository) UpdateNote

func (m *MockRepository) UpdateNote(ctx context.Context, note *entities.Note) (*entities.Note, error)

UpdateNote mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) AllNotes

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

AllNotes indicates an expected call of AllNotes.

func (*MockRepositoryMockRecorder) CreateNote

func (mr *MockRepositoryMockRecorder) CreateNote(ctx, note any) *gomock.Call

CreateNote indicates an expected call of CreateNote.

func (*MockRepositoryMockRecorder) DeleteNote

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

DeleteNote indicates an expected call of DeleteNote.

func (*MockRepositoryMockRecorder) GetNote

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

GetNote indicates an expected call of GetNote.

func (*MockRepositoryMockRecorder) UpdateNote

func (mr *MockRepositoryMockRecorder) UpdateNote(ctx, note any) *gomock.Call

UpdateNote indicates an expected call of UpdateNote.

Jump to

Keyboard shortcuts

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