Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCommentI
- func (m *MockCommentI) Create(ctx context.Context, req *model.CreateCommentRequestRepository) (int64, error)
- func (m *MockCommentI) EXPECT() *MockCommentIMockRecorder
- func (m *MockCommentI) GetCommentsByPostID(ctx context.Context, req *model.GetComment) ([]*model.CommentResponse, error)
- func (m *MockCommentI) GetLastComment(ctx context.Context, id int64) (*model.CommentResponse, error)
- func (m *MockCommentI) GetTotalComments(ctx context.Context, userPostID int64) (*int64, error)
- type MockCommentIMockRecorder
- func (mr *MockCommentIMockRecorder) Create(ctx, req interface{}) *gomock.Call
- func (mr *MockCommentIMockRecorder) GetCommentsByPostID(ctx, req interface{}) *gomock.Call
- func (mr *MockCommentIMockRecorder) GetLastComment(ctx, id interface{}) *gomock.Call
- func (mr *MockCommentIMockRecorder) GetTotalComments(ctx, userPostID interface{}) *gomock.Call
- type MockPostI
- func (m *MockPostI) AddLikeOnPost(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) error
- func (m *MockPostI) CheckHealthReadiness(ctx context.Context) error
- func (m *MockPostI) CheckIsExistLikeOnPostBy(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) (bool, error)
- func (m *MockPostI) EXPECT() *MockPostIMockRecorder
- func (m *MockPostI) GetActor(ctx context.Context, id int64) (*model.UserResponse, error)
- func (m *MockPostI) GetDetailPost(ctx context.Context, id int64) (*model.PostResponse, error)
- func (m *MockPostI) GetListPost(ctx context.Context, request *model.UserPostRequest) ([]*model.PostResponse, error)
- func (m *MockPostI) GetListPostByMe(ctx context.Context, request *model.UserPostByMeRequest) ([]*model.PostResponse, error)
- func (m *MockPostI) GetMetadataPost(ctx context.Context, request *model.UserPostRequest) (*int64, error)
- func (m *MockPostI) GetMetadataPostByMe(ctx context.Context, request *model.UserPostByMeRequest) (*int64, error)
- func (m *MockPostI) InsertPost(ctx context.Context, request *model.CreateNewPostRequestRepository) error
- func (m *MockPostI) RemoveLikeOnPost(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) error
- func (m *MockPostI) UpdateDetailOfUserPost(ctx context.Context, request *model.UpdatePostRequest) error
- type MockPostIMockRecorder
- func (mr *MockPostIMockRecorder) AddLikeOnPost(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) CheckHealthReadiness(ctx interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) CheckIsExistLikeOnPostBy(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) GetActor(ctx, id interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) GetDetailPost(ctx, id interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) GetListPost(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) GetListPostByMe(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) GetMetadataPost(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) GetMetadataPostByMe(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) InsertPost(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) RemoveLikeOnPost(ctx, request interface{}) *gomock.Call
- func (mr *MockPostIMockRecorder) UpdateDetailOfUserPost(ctx, request interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommentI ¶
type MockCommentI struct {
// contains filtered or unexported fields
}
MockCommentI is a mock of CommentI interface.
func NewMockCommentI ¶
func NewMockCommentI(ctrl *gomock.Controller) *MockCommentI
NewMockCommentI creates a new mock instance.
func (*MockCommentI) Create ¶
func (m *MockCommentI) Create(ctx context.Context, req *model.CreateCommentRequestRepository) (int64, error)
Create mocks base method.
func (*MockCommentI) EXPECT ¶
func (m *MockCommentI) EXPECT() *MockCommentIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCommentI) GetCommentsByPostID ¶
func (m *MockCommentI) GetCommentsByPostID(ctx context.Context, req *model.GetComment) ([]*model.CommentResponse, error)
GetCommentsByPostID mocks base method.
func (*MockCommentI) GetLastComment ¶
func (m *MockCommentI) GetLastComment(ctx context.Context, id int64) (*model.CommentResponse, error)
GetLastComment mocks base method.
func (*MockCommentI) GetTotalComments ¶
GetTotalComments mocks base method.
type MockCommentIMockRecorder ¶
type MockCommentIMockRecorder struct {
// contains filtered or unexported fields
}
MockCommentIMockRecorder is the mock recorder for MockCommentI.
func (*MockCommentIMockRecorder) Create ¶
func (mr *MockCommentIMockRecorder) Create(ctx, req interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockCommentIMockRecorder) GetCommentsByPostID ¶
func (mr *MockCommentIMockRecorder) GetCommentsByPostID(ctx, req interface{}) *gomock.Call
GetCommentsByPostID indicates an expected call of GetCommentsByPostID.
func (*MockCommentIMockRecorder) GetLastComment ¶
func (mr *MockCommentIMockRecorder) GetLastComment(ctx, id interface{}) *gomock.Call
GetLastComment indicates an expected call of GetLastComment.
func (*MockCommentIMockRecorder) GetTotalComments ¶
func (mr *MockCommentIMockRecorder) GetTotalComments(ctx, userPostID interface{}) *gomock.Call
GetTotalComments indicates an expected call of GetTotalComments.
type MockPostI ¶
type MockPostI struct {
// contains filtered or unexported fields
}
MockPostI is a mock of PostI interface.
func NewMockPostI ¶
func NewMockPostI(ctrl *gomock.Controller) *MockPostI
NewMockPostI creates a new mock instance.
func (*MockPostI) AddLikeOnPost ¶
func (m *MockPostI) AddLikeOnPost(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) error
AddLikeOnPost mocks base method.
func (*MockPostI) CheckHealthReadiness ¶
CheckHealthReadiness mocks base method.
func (*MockPostI) CheckIsExistLikeOnPostBy ¶
func (m *MockPostI) CheckIsExistLikeOnPostBy(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) (bool, error)
CheckIsExistLikeOnPostBy mocks base method.
func (*MockPostI) EXPECT ¶
func (m *MockPostI) EXPECT() *MockPostIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostI) GetDetailPost ¶
GetDetailPost mocks base method.
func (*MockPostI) GetListPost ¶
func (m *MockPostI) GetListPost(ctx context.Context, request *model.UserPostRequest) ([]*model.PostResponse, error)
GetListPost mocks base method.
func (*MockPostI) GetListPostByMe ¶
func (m *MockPostI) GetListPostByMe(ctx context.Context, request *model.UserPostByMeRequest) ([]*model.PostResponse, error)
GetListPostByMe mocks base method.
func (*MockPostI) GetMetadataPost ¶
func (m *MockPostI) GetMetadataPost(ctx context.Context, request *model.UserPostRequest) (*int64, error)
GetMetadataPost mocks base method.
func (*MockPostI) GetMetadataPostByMe ¶
func (m *MockPostI) GetMetadataPostByMe(ctx context.Context, request *model.UserPostByMeRequest) (*int64, error)
GetMetadataPostByMe mocks base method.
func (*MockPostI) InsertPost ¶
func (m *MockPostI) InsertPost(ctx context.Context, request *model.CreateNewPostRequestRepository) error
InsertPost mocks base method.
func (*MockPostI) RemoveLikeOnPost ¶
func (m *MockPostI) RemoveLikeOnPost(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) error
RemoveLikeOnPost mocks base method.
func (*MockPostI) UpdateDetailOfUserPost ¶
func (m *MockPostI) UpdateDetailOfUserPost(ctx context.Context, request *model.UpdatePostRequest) error
UpdateDetailOfUserPost mocks base method.
type MockPostIMockRecorder ¶
type MockPostIMockRecorder struct {
// contains filtered or unexported fields
}
MockPostIMockRecorder is the mock recorder for MockPostI.
func (*MockPostIMockRecorder) AddLikeOnPost ¶
func (mr *MockPostIMockRecorder) AddLikeOnPost(ctx, request interface{}) *gomock.Call
AddLikeOnPost indicates an expected call of AddLikeOnPost.
func (*MockPostIMockRecorder) CheckHealthReadiness ¶
func (mr *MockPostIMockRecorder) CheckHealthReadiness(ctx interface{}) *gomock.Call
CheckHealthReadiness indicates an expected call of CheckHealthReadiness.
func (*MockPostIMockRecorder) CheckIsExistLikeOnPostBy ¶
func (mr *MockPostIMockRecorder) CheckIsExistLikeOnPostBy(ctx, request interface{}) *gomock.Call
CheckIsExistLikeOnPostBy indicates an expected call of CheckIsExistLikeOnPostBy.
func (*MockPostIMockRecorder) GetActor ¶
func (mr *MockPostIMockRecorder) GetActor(ctx, id interface{}) *gomock.Call
GetActor indicates an expected call of GetActor.
func (*MockPostIMockRecorder) GetDetailPost ¶
func (mr *MockPostIMockRecorder) GetDetailPost(ctx, id interface{}) *gomock.Call
GetDetailPost indicates an expected call of GetDetailPost.
func (*MockPostIMockRecorder) GetListPost ¶
func (mr *MockPostIMockRecorder) GetListPost(ctx, request interface{}) *gomock.Call
GetListPost indicates an expected call of GetListPost.
func (*MockPostIMockRecorder) GetListPostByMe ¶
func (mr *MockPostIMockRecorder) GetListPostByMe(ctx, request interface{}) *gomock.Call
GetListPostByMe indicates an expected call of GetListPostByMe.
func (*MockPostIMockRecorder) GetMetadataPost ¶
func (mr *MockPostIMockRecorder) GetMetadataPost(ctx, request interface{}) *gomock.Call
GetMetadataPost indicates an expected call of GetMetadataPost.
func (*MockPostIMockRecorder) GetMetadataPostByMe ¶
func (mr *MockPostIMockRecorder) GetMetadataPostByMe(ctx, request interface{}) *gomock.Call
GetMetadataPostByMe indicates an expected call of GetMetadataPostByMe.
func (*MockPostIMockRecorder) InsertPost ¶
func (mr *MockPostIMockRecorder) InsertPost(ctx, request interface{}) *gomock.Call
InsertPost indicates an expected call of InsertPost.
func (*MockPostIMockRecorder) RemoveLikeOnPost ¶
func (mr *MockPostIMockRecorder) RemoveLikeOnPost(ctx, request interface{}) *gomock.Call
RemoveLikeOnPost indicates an expected call of RemoveLikeOnPost.
func (*MockPostIMockRecorder) UpdateDetailOfUserPost ¶
func (mr *MockPostIMockRecorder) UpdateDetailOfUserPost(ctx, request interface{}) *gomock.Call
UpdateDetailOfUserPost indicates an expected call of UpdateDetailOfUserPost.