Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockAuthPsql
- func (m *MockAuthPsql) Delete(ctx context.Context, userID uuid.UUID) error
- func (m *MockAuthPsql) EXPECT() *MockAuthPsqlMockRecorder
- func (m *MockAuthPsql) FindUserByEmail(ctx context.Context, user *entity.User) (*entity.User, error)
- func (m *MockAuthPsql) FindUsersByName(ctx context.Context, name string, pq *utils.PaginationQuery) (*entity.UsersList, error)
- func (m *MockAuthPsql) GetUserByID(ctx context.Context, userID uuid.UUID) (*entity.User, error)
- func (m *MockAuthPsql) GetUsers(ctx context.Context, pq *utils.PaginationQuery) (*entity.UsersList, error)
- func (m *MockAuthPsql) Register(ctx context.Context, user *entity.User) (*entity.User, error)
- func (m *MockAuthPsql) Update(ctx context.Context, user *entity.User) (*entity.User, error)
- type MockAuthPsqlMockRecorder
- func (mr *MockAuthPsqlMockRecorder) Delete(ctx, userID interface{}) *gomock.Call
- func (mr *MockAuthPsqlMockRecorder) FindUserByEmail(ctx, user interface{}) *gomock.Call
- func (mr *MockAuthPsqlMockRecorder) FindUsersByName(ctx, name, pq interface{}) *gomock.Call
- func (mr *MockAuthPsqlMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call
- func (mr *MockAuthPsqlMockRecorder) GetUsers(ctx, pq interface{}) *gomock.Call
- func (mr *MockAuthPsqlMockRecorder) Register(ctx, user interface{}) *gomock.Call
- func (mr *MockAuthPsqlMockRecorder) Update(ctx, user interface{}) *gomock.Call
- type MockCommentsPsql
- func (m *MockCommentsPsql) Create(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)
- func (m *MockCommentsPsql) Delete(ctx context.Context, commentID uuid.UUID) error
- func (m *MockCommentsPsql) EXPECT() *MockCommentsPsqlMockRecorder
- func (m *MockCommentsPsql) GetAllByNewsID(ctx context.Context, newsID uuid.UUID, pq *utils.PaginationQuery) (*entity.CommentsList, error)
- func (m *MockCommentsPsql) GetByID(ctx context.Context, commentID uuid.UUID) (*entity.CommentBase, error)
- func (m *MockCommentsPsql) Update(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)
- type MockCommentsPsqlMockRecorder
- func (mr *MockCommentsPsqlMockRecorder) Create(ctx, comments interface{}) *gomock.Call
- func (mr *MockCommentsPsqlMockRecorder) Delete(ctx, commentID interface{}) *gomock.Call
- func (mr *MockCommentsPsqlMockRecorder) GetAllByNewsID(ctx, newsID, pq interface{}) *gomock.Call
- func (mr *MockCommentsPsqlMockRecorder) GetByID(ctx, commentID interface{}) *gomock.Call
- func (mr *MockCommentsPsqlMockRecorder) Update(ctx, comments interface{}) *gomock.Call
- type MockNewsPsql
- func (m *MockNewsPsql) Create(ctx context.Context, news *entity.News) (*entity.News, error)
- func (m *MockNewsPsql) Delete(ctx context.Context, newsID uuid.UUID) error
- func (m *MockNewsPsql) EXPECT() *MockNewsPsqlMockRecorder
- func (m *MockNewsPsql) GetNews(ctx context.Context, pq *utils.PaginationQuery) (*entity.NewsList, error)
- func (m *MockNewsPsql) GetNewsByID(ctx context.Context, newsID uuid.UUID) (*entity.NewsBase, error)
- func (m *MockNewsPsql) SearchNews(ctx context.Context, title string, pq *utils.PaginationQuery) (*entity.NewsList, error)
- func (m *MockNewsPsql) Update(ctx context.Context, news *entity.News) (*entity.News, error)
- type MockNewsPsqlMockRecorder
- func (mr *MockNewsPsqlMockRecorder) Create(ctx, news interface{}) *gomock.Call
- func (mr *MockNewsPsqlMockRecorder) Delete(ctx, newsID interface{}) *gomock.Call
- func (mr *MockNewsPsqlMockRecorder) GetNews(ctx, pq interface{}) *gomock.Call
- func (mr *MockNewsPsqlMockRecorder) GetNewsByID(ctx, newsID interface{}) *gomock.Call
- func (mr *MockNewsPsqlMockRecorder) SearchNews(ctx, title, pq interface{}) *gomock.Call
- func (mr *MockNewsPsqlMockRecorder) Update(ctx, news interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthPsql ¶
type MockAuthPsql struct {
// contains filtered or unexported fields
}
MockAuthPsql is a mock of AuthPsql interface.
func NewMockAuthPsql ¶
func NewMockAuthPsql(ctrl *gomock.Controller) *MockAuthPsql
NewMockAuthPsql creates a new mock instance.
func (*MockAuthPsql) EXPECT ¶
func (m *MockAuthPsql) EXPECT() *MockAuthPsqlMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAuthPsql) FindUserByEmail ¶
func (m *MockAuthPsql) FindUserByEmail(ctx context.Context, user *entity.User) (*entity.User, error)
FindUserByEmail mocks base method.
func (*MockAuthPsql) FindUsersByName ¶
func (m *MockAuthPsql) FindUsersByName(ctx context.Context, name string, pq *utils.PaginationQuery) (*entity.UsersList, error)
FindUsersByName mocks base method.
func (*MockAuthPsql) GetUserByID ¶
GetUserByID mocks base method.
func (*MockAuthPsql) GetUsers ¶
func (m *MockAuthPsql) GetUsers(ctx context.Context, pq *utils.PaginationQuery) (*entity.UsersList, error)
GetUsers mocks base method.
type MockAuthPsqlMockRecorder ¶
type MockAuthPsqlMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthPsqlMockRecorder is the mock recorder for MockAuthPsql.
func (*MockAuthPsqlMockRecorder) Delete ¶
func (mr *MockAuthPsqlMockRecorder) Delete(ctx, userID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockAuthPsqlMockRecorder) FindUserByEmail ¶
func (mr *MockAuthPsqlMockRecorder) FindUserByEmail(ctx, user interface{}) *gomock.Call
FindUserByEmail indicates an expected call of FindUserByEmail.
func (*MockAuthPsqlMockRecorder) FindUsersByName ¶
func (mr *MockAuthPsqlMockRecorder) FindUsersByName(ctx, name, pq interface{}) *gomock.Call
FindUsersByName indicates an expected call of FindUsersByName.
func (*MockAuthPsqlMockRecorder) GetUserByID ¶
func (mr *MockAuthPsqlMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call
GetUserByID indicates an expected call of GetUserByID.
func (*MockAuthPsqlMockRecorder) GetUsers ¶
func (mr *MockAuthPsqlMockRecorder) GetUsers(ctx, pq interface{}) *gomock.Call
GetUsers indicates an expected call of GetUsers.
func (*MockAuthPsqlMockRecorder) Register ¶
func (mr *MockAuthPsqlMockRecorder) Register(ctx, user interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockAuthPsqlMockRecorder) Update ¶
func (mr *MockAuthPsqlMockRecorder) Update(ctx, user interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockCommentsPsql ¶
type MockCommentsPsql struct {
// contains filtered or unexported fields
}
MockCommentsPsql is a mock of CommentsPsql interface.
func NewMockCommentsPsql ¶
func NewMockCommentsPsql(ctrl *gomock.Controller) *MockCommentsPsql
NewMockCommentsPsql creates a new mock instance.
func (*MockCommentsPsql) Create ¶
func (m *MockCommentsPsql) Create(ctx context.Context, comments *entity.Comment) (*entity.Comment, error)
Create mocks base method.
func (*MockCommentsPsql) EXPECT ¶
func (m *MockCommentsPsql) EXPECT() *MockCommentsPsqlMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommentsPsql) GetAllByNewsID ¶
func (m *MockCommentsPsql) GetAllByNewsID(ctx context.Context, newsID uuid.UUID, pq *utils.PaginationQuery) (*entity.CommentsList, error)
GetAllByNewsID mocks base method.
func (*MockCommentsPsql) GetByID ¶
func (m *MockCommentsPsql) GetByID(ctx context.Context, commentID uuid.UUID) (*entity.CommentBase, error)
GetByID mocks base method.
type MockCommentsPsqlMockRecorder ¶
type MockCommentsPsqlMockRecorder struct {
// contains filtered or unexported fields
}
MockCommentsPsqlMockRecorder is the mock recorder for MockCommentsPsql.
func (*MockCommentsPsqlMockRecorder) Create ¶
func (mr *MockCommentsPsqlMockRecorder) Create(ctx, comments interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockCommentsPsqlMockRecorder) Delete ¶
func (mr *MockCommentsPsqlMockRecorder) Delete(ctx, commentID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockCommentsPsqlMockRecorder) GetAllByNewsID ¶
func (mr *MockCommentsPsqlMockRecorder) GetAllByNewsID(ctx, newsID, pq interface{}) *gomock.Call
GetAllByNewsID indicates an expected call of GetAllByNewsID.
func (*MockCommentsPsqlMockRecorder) GetByID ¶
func (mr *MockCommentsPsqlMockRecorder) GetByID(ctx, commentID interface{}) *gomock.Call
GetByID indicates an expected call of GetByID.
func (*MockCommentsPsqlMockRecorder) Update ¶
func (mr *MockCommentsPsqlMockRecorder) Update(ctx, comments interface{}) *gomock.Call
Update indicates an expected call of Update.
type MockNewsPsql ¶
type MockNewsPsql struct {
// contains filtered or unexported fields
}
MockNewsPsql is a mock of NewsPsql interface.
func NewMockNewsPsql ¶
func NewMockNewsPsql(ctrl *gomock.Controller) *MockNewsPsql
NewMockNewsPsql creates a new mock instance.
func (*MockNewsPsql) EXPECT ¶
func (m *MockNewsPsql) EXPECT() *MockNewsPsqlMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNewsPsql) GetNews ¶
func (m *MockNewsPsql) GetNews(ctx context.Context, pq *utils.PaginationQuery) (*entity.NewsList, error)
GetNews mocks base method.
func (*MockNewsPsql) GetNewsByID ¶
GetNewsByID mocks base method.
func (*MockNewsPsql) SearchNews ¶
func (m *MockNewsPsql) SearchNews(ctx context.Context, title string, pq *utils.PaginationQuery) (*entity.NewsList, error)
SearchNews mocks base method.
type MockNewsPsqlMockRecorder ¶
type MockNewsPsqlMockRecorder struct {
// contains filtered or unexported fields
}
MockNewsPsqlMockRecorder is the mock recorder for MockNewsPsql.
func (*MockNewsPsqlMockRecorder) Create ¶
func (mr *MockNewsPsqlMockRecorder) Create(ctx, news interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockNewsPsqlMockRecorder) Delete ¶
func (mr *MockNewsPsqlMockRecorder) Delete(ctx, newsID interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockNewsPsqlMockRecorder) GetNews ¶
func (mr *MockNewsPsqlMockRecorder) GetNews(ctx, pq interface{}) *gomock.Call
GetNews indicates an expected call of GetNews.
func (*MockNewsPsqlMockRecorder) GetNewsByID ¶
func (mr *MockNewsPsqlMockRecorder) GetNewsByID(ctx, newsID interface{}) *gomock.Call
GetNewsByID indicates an expected call of GetNewsByID.
func (*MockNewsPsqlMockRecorder) SearchNews ¶
func (mr *MockNewsPsqlMockRecorder) SearchNews(ctx, title, pq interface{}) *gomock.Call
SearchNews indicates an expected call of SearchNews.
func (*MockNewsPsqlMockRecorder) Update ¶
func (mr *MockNewsPsqlMockRecorder) Update(ctx, news interface{}) *gomock.Call
Update indicates an expected call of Update.