Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) AllNotes(ctx context.Context, pq *utils.PaginationQuery) ([]*entities.Note, error)
- func (m *MockRepository) CreateNote(ctx context.Context, note *entities.Note) (*entities.Note, error)
- func (m *MockRepository) DeleteNote(ctx context.Context, id uuid.UUID) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) GetNote(ctx context.Context, id uuid.UUID) (*entities.Note, error)
- func (m *MockRepository) UpdateNote(ctx context.Context, note *entities.Note) (*entities.Note, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) AllNotes(ctx, pq any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) CreateNote(ctx, note any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) DeleteNote(ctx, id any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetNote(ctx, id any) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UpdateNote(ctx, note any) *gomock.Call
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 ¶
DeleteNote mocks base method.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.