Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockRepository
- func (m *MockRepository) Create(pinId, authorId int) error
- func (m *MockRepository) Delete(pinId, authorId int) error
- func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
- func (m *MockRepository) LikeExists(pinId, authorId int) (bool, error)
- func (m *MockRepository) ListByAuthor(authorId int) ([]models.Like, error)
- func (m *MockRepository) ListByPin(pinId int) ([]models.Like, error)
- func (m *MockRepository) PinExists(pinId int) (bool, error)
- func (m *MockRepository) UserExists(userId int) (bool, error)
- type MockRepositoryMockRecorder
- func (mr *MockRepositoryMockRecorder) Create(pinId, authorId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) Delete(pinId, authorId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) LikeExists(pinId, authorId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListByAuthor(authorId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) ListByPin(pinId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) PinExists(pinId interface{}) *gomock.Call
- func (mr *MockRepositoryMockRecorder) UserExists(userId interface{}) *gomock.Call
- type MockService
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) Like(pinId, authorId int) error
- func (m *MockService) ListByAuthor(authorId int) ([]models.Like, error)
- func (m *MockService) ListByPin(pinId int) ([]models.Like, error)
- func (m *MockService) Unlike(pinId, authorId int) error
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) Like(pinId, authorId interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ListByAuthor(authorId interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) ListByPin(pinId interface{}) *gomock.Call
- func (mr *MockServiceMockRecorder) Unlike(pinId, authorId 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) Create ¶
func (m *MockRepository) Create(pinId, authorId int) error
Create mocks base method.
func (*MockRepository) Delete ¶
func (m *MockRepository) Delete(pinId, authorId int) error
Delete 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) LikeExists ¶
func (m *MockRepository) LikeExists(pinId, authorId int) (bool, error)
LikeExists mocks base method.
func (*MockRepository) ListByAuthor ¶
func (m *MockRepository) ListByAuthor(authorId int) ([]models.Like, error)
ListByAuthor mocks base method.
func (*MockRepository) ListByPin ¶
func (m *MockRepository) ListByPin(pinId int) ([]models.Like, error)
ListByPin mocks base method.
func (*MockRepository) PinExists ¶
func (m *MockRepository) PinExists(pinId int) (bool, error)
PinExists mocks base method.
func (*MockRepository) UserExists ¶
func (m *MockRepository) UserExists(userId int) (bool, error)
UserExists 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(pinId, authorId interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockRepositoryMockRecorder) Delete ¶
func (mr *MockRepositoryMockRecorder) Delete(pinId, authorId interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockRepositoryMockRecorder) LikeExists ¶
func (mr *MockRepositoryMockRecorder) LikeExists(pinId, authorId interface{}) *gomock.Call
LikeExists indicates an expected call of LikeExists.
func (*MockRepositoryMockRecorder) ListByAuthor ¶
func (mr *MockRepositoryMockRecorder) ListByAuthor(authorId interface{}) *gomock.Call
ListByAuthor indicates an expected call of ListByAuthor.
func (*MockRepositoryMockRecorder) ListByPin ¶
func (mr *MockRepositoryMockRecorder) ListByPin(pinId interface{}) *gomock.Call
ListByPin indicates an expected call of ListByPin.
func (*MockRepositoryMockRecorder) PinExists ¶
func (mr *MockRepositoryMockRecorder) PinExists(pinId interface{}) *gomock.Call
PinExists indicates an expected call of PinExists.
func (*MockRepositoryMockRecorder) UserExists ¶
func (mr *MockRepositoryMockRecorder) UserExists(userId interface{}) *gomock.Call
UserExists indicates an expected call of UserExists.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) Like ¶
func (m *MockService) Like(pinId, authorId int) error
Like mocks base method.
func (*MockService) ListByAuthor ¶
func (m *MockService) ListByAuthor(authorId int) ([]models.Like, error)
ListByAuthor mocks base method.
func (*MockService) ListByPin ¶
func (m *MockService) ListByPin(pinId int) ([]models.Like, error)
ListByPin mocks base method.
func (*MockService) Unlike ¶
func (m *MockService) Unlike(pinId, authorId int) error
Unlike mocks base method.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Like ¶
func (mr *MockServiceMockRecorder) Like(pinId, authorId interface{}) *gomock.Call
Like indicates an expected call of Like.
func (*MockServiceMockRecorder) ListByAuthor ¶
func (mr *MockServiceMockRecorder) ListByAuthor(authorId interface{}) *gomock.Call
ListByAuthor indicates an expected call of ListByAuthor.
func (*MockServiceMockRecorder) ListByPin ¶
func (mr *MockServiceMockRecorder) ListByPin(pinId interface{}) *gomock.Call
ListByPin indicates an expected call of ListByPin.
func (*MockServiceMockRecorder) Unlike ¶
func (mr *MockServiceMockRecorder) Unlike(pinId, authorId interface{}) *gomock.Call
Unlike indicates an expected call of Unlike.