Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Create(u entity.Task) (entity.Task, error)
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) GetAllByUserID(userID uint) ([]entity.Task, error)
- func (m *MockRepository) GetByID(id uint) (entity.Task, error)
- func (m *MockRepository) IsExistsUser(id uint) (bool, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(u interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetAllByUserID(userID interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) GetByID(id interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) IsExistsUser(id interface{}) *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) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
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.
Click to show internal directories.
Click to hide internal directories.