mocks

package
v0.0.0-...-52f6943 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

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

Create mocks base method.

func (*MockCommentI) EXPECT

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

func (m *MockCommentI) GetTotalComments(ctx context.Context, userPostID int64) (*int64, error)

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

func (m *MockPostI) CheckHealthReadiness(ctx context.Context) error

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

func (m *MockPostI) GetActor(ctx context.Context, id int64) (*model.UserResponse, error)

GetActor mocks base method.

func (*MockPostI) GetDetailPost

func (m *MockPostI) GetDetailPost(ctx context.Context, id int64) (*model.PostResponse, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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