Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockICommentRepo
- func (m *MockICommentRepo) AddComment(filmId, userId uint64, rating uint16, text string) error
- func (m *MockICommentRepo) DeleteComment(idUser, idFilm uint64) error
- func (m *MockICommentRepo) EXPECT() *MockICommentRepoMockRecorder
- func (m *MockICommentRepo) GetFilmComments(filmId, first, limit uint64) ([]models.CommentItem, error)
- func (m *MockICommentRepo) HasUsersComment(userId, filmId uint64) (bool, error)
- type MockICommentRepoMockRecorder
- func (mr *MockICommentRepoMockRecorder) AddComment(filmId, userId, rating, text interface{}) *gomock.Call
- func (mr *MockICommentRepoMockRecorder) DeleteComment(idUser, idFilm interface{}) *gomock.Call
- func (mr *MockICommentRepoMockRecorder) GetFilmComments(filmId, first, limit interface{}) *gomock.Call
- func (mr *MockICommentRepoMockRecorder) HasUsersComment(userId, filmId interface{}) *gomock.Call
- type MockICore
- func (m *MockICore) AddComment(filmId, userId uint64, rating uint16, text string) (bool, error)
- func (m *MockICore) DeleteComment(idUser, idFilm uint64) error
- func (m *MockICore) EXPECT() *MockICoreMockRecorder
- func (m *MockICore) GetFilmComments(filmId, first, limit uint64) ([]models.CommentItem, error)
- func (m *MockICore) GetUserId(ctx context.Context, sid string) (uint64, error)
- type MockICoreMockRecorder
- func (mr *MockICoreMockRecorder) AddComment(filmId, userId, rating, text interface{}) *gomock.Call
- func (mr *MockICoreMockRecorder) DeleteComment(idUser, idFilm interface{}) *gomock.Call
- func (mr *MockICoreMockRecorder) GetFilmComments(filmId, first, limit interface{}) *gomock.Call
- func (mr *MockICoreMockRecorder) GetUserId(ctx, sid interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockICommentRepo ¶
type MockICommentRepo struct {
// contains filtered or unexported fields
}
MockICommentRepo is a mock of ICommentRepo interface.
func NewMockICommentRepo ¶
func NewMockICommentRepo(ctrl *gomock.Controller) *MockICommentRepo
NewMockICommentRepo creates a new mock instance.
func (*MockICommentRepo) AddComment ¶
func (m *MockICommentRepo) AddComment(filmId, userId uint64, rating uint16, text string) error
AddComment mocks base method.
func (*MockICommentRepo) DeleteComment ¶
func (m *MockICommentRepo) DeleteComment(idUser, idFilm uint64) error
DeleteComment mocks base method.
func (*MockICommentRepo) EXPECT ¶
func (m *MockICommentRepo) EXPECT() *MockICommentRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockICommentRepo) GetFilmComments ¶
func (m *MockICommentRepo) GetFilmComments(filmId, first, limit uint64) ([]models.CommentItem, error)
GetFilmComments mocks base method.
func (*MockICommentRepo) HasUsersComment ¶
func (m *MockICommentRepo) HasUsersComment(userId, filmId uint64) (bool, error)
HasUsersComment mocks base method.
type MockICommentRepoMockRecorder ¶
type MockICommentRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockICommentRepoMockRecorder is the mock recorder for MockICommentRepo.
func (*MockICommentRepoMockRecorder) AddComment ¶
func (mr *MockICommentRepoMockRecorder) AddComment(filmId, userId, rating, text interface{}) *gomock.Call
AddComment indicates an expected call of AddComment.
func (*MockICommentRepoMockRecorder) DeleteComment ¶
func (mr *MockICommentRepoMockRecorder) DeleteComment(idUser, idFilm interface{}) *gomock.Call
DeleteComment indicates an expected call of DeleteComment.
func (*MockICommentRepoMockRecorder) GetFilmComments ¶
func (mr *MockICommentRepoMockRecorder) GetFilmComments(filmId, first, limit interface{}) *gomock.Call
GetFilmComments indicates an expected call of GetFilmComments.
func (*MockICommentRepoMockRecorder) HasUsersComment ¶
func (mr *MockICommentRepoMockRecorder) HasUsersComment(userId, filmId interface{}) *gomock.Call
HasUsersComment indicates an expected call of HasUsersComment.
type MockICore ¶
type MockICore struct {
// contains filtered or unexported fields
}
MockICore is a mock of ICore interface.
func NewMockICore ¶
func NewMockICore(ctrl *gomock.Controller) *MockICore
NewMockICore creates a new mock instance.
func (*MockICore) AddComment ¶
AddComment mocks base method.
func (*MockICore) DeleteComment ¶
DeleteComment mocks base method.
func (*MockICore) EXPECT ¶
func (m *MockICore) EXPECT() *MockICoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockICore) GetFilmComments ¶
func (m *MockICore) GetFilmComments(filmId, first, limit uint64) ([]models.CommentItem, error)
GetFilmComments mocks base method.
type MockICoreMockRecorder ¶
type MockICoreMockRecorder struct {
// contains filtered or unexported fields
}
MockICoreMockRecorder is the mock recorder for MockICore.
func (*MockICoreMockRecorder) AddComment ¶
func (mr *MockICoreMockRecorder) AddComment(filmId, userId, rating, text interface{}) *gomock.Call
AddComment indicates an expected call of AddComment.
func (*MockICoreMockRecorder) DeleteComment ¶
func (mr *MockICoreMockRecorder) DeleteComment(idUser, idFilm interface{}) *gomock.Call
DeleteComment indicates an expected call of DeleteComment.
func (*MockICoreMockRecorder) GetFilmComments ¶
func (mr *MockICoreMockRecorder) GetFilmComments(filmId, first, limit interface{}) *gomock.Call
GetFilmComments indicates an expected call of GetFilmComments.
func (*MockICoreMockRecorder) GetUserId ¶
func (mr *MockICoreMockRecorder) GetUserId(ctx, sid interface{}) *gomock.Call
GetUserId indicates an expected call of GetUserId.