mocks

package
v0.0.0-...-b3f0c1d Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocks 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(u entity.Task) (entity.Task, error)

Create mocks base method.

func (*MockRepository) EXPECT

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

func (*MockRepository) GetAllByUserID

func (m *MockRepository) GetAllByUserID(userID uint) ([]entity.Task, error)

GetAllByUserID mocks base method.

func (*MockRepository) GetByID

func (m *MockRepository) GetByID(id uint) (entity.Task, error)

GetByID mocks base method.

func (*MockRepository) IsExistsUser

func (m *MockRepository) IsExistsUser(id uint) (bool, error)

IsExistsUser 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(u interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockRepositoryMockRecorder) GetAllByUserID

func (mr *MockRepositoryMockRecorder) GetAllByUserID(userID interface{}) *gomock.Call

GetAllByUserID indicates an expected call of GetAllByUserID.

func (*MockRepositoryMockRecorder) GetByID

func (mr *MockRepositoryMockRecorder) GetByID(id interface{}) *gomock.Call

GetByID indicates an expected call of GetByID.

func (*MockRepositoryMockRecorder) IsExistsUser

func (mr *MockRepositoryMockRecorder) IsExistsUser(id interface{}) *gomock.Call

IsExistsUser indicates an expected call of IsExistsUser.

Jump to

Keyboard shortcuts

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