mocks

package
v0.0.0-...-2fe0e47 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 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

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

func (m *MockICore) AddComment(filmId, userId uint64, rating uint16, text string) (bool, error)

AddComment mocks base method.

func (*MockICore) DeleteComment

func (m *MockICore) DeleteComment(idUser, idFilm uint64) error

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.

func (*MockICore) GetUserId

func (m *MockICore) GetUserId(ctx context.Context, sid string) (uint64, error)

GetUserId 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.

Jump to

Keyboard shortcuts

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