// Code generated by MockGen. DO NOT EDIT. // Source: ./pkg/domain/repository/comment.go // // Generated by this command: // // mockgen -source=./pkg/domain/repository/comment.go -destination=./pkg/mock/repository/comment.go -package=mock // // Package mock is a generated GoMock package. package mock import ( entity "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/entity" repository "code.30cm.net/digimon/app-cloudep-comment-server/pkg/domain/repository" context "context" reflect "reflect" gomock "go.uber.org/mock/gomock" ) // MockCommentRepository is a mock of CommentRepository interface. type MockCommentRepository struct { ctrl *gomock.Controller recorder *MockCommentRepositoryMockRecorder isgomock struct{} } // MockCommentRepositoryMockRecorder is the mock recorder for MockCommentRepository. type MockCommentRepositoryMockRecorder struct { mock *MockCommentRepository } // NewMockCommentRepository creates a new mock instance. func NewMockCommentRepository(ctrl *gomock.Controller) *MockCommentRepository { mock := &MockCommentRepository{ctrl: ctrl} mock.recorder = &MockCommentRepositoryMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. func (m *MockCommentRepository) EXPECT() *MockCommentRepositoryMockRecorder { return m.recorder } // CreateComment mocks base method. func (m *MockCommentRepository) CreateComment(ctx context.Context, comment *entity.Comments) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "CreateComment", ctx, comment) ret0, _ := ret[0].(error) return ret0 } // CreateComment indicates an expected call of CreateComment. func (mr *MockCommentRepositoryMockRecorder) CreateComment(ctx, comment any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateComment", reflect.TypeOf((*MockCommentRepository)(nil).CreateComment), ctx, comment) } // DeleteCommentByID mocks base method. func (m *MockCommentRepository) DeleteCommentByID(ctx context.Context, id string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "DeleteCommentByID", ctx, id) ret0, _ := ret[0].(error) return ret0 } // DeleteCommentByID indicates an expected call of DeleteCommentByID. func (mr *MockCommentRepositoryMockRecorder) DeleteCommentByID(ctx, id any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteCommentByID", reflect.TypeOf((*MockCommentRepository)(nil).DeleteCommentByID), ctx, id) } // ListComments mocks base method. func (m *MockCommentRepository) ListComments(ctx context.Context, req repository.ListCommentRequest) ([]*entity.Comments, int64, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ListComments", ctx, req) ret0, _ := ret[0].([]*entity.Comments) ret1, _ := ret[1].(int64) ret2, _ := ret[2].(error) return ret0, ret1, ret2 } // ListComments indicates an expected call of ListComments. func (mr *MockCommentRepositoryMockRecorder) ListComments(ctx, req any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListComments", reflect.TypeOf((*MockCommentRepository)(nil).ListComments), ctx, req) } // UpdateCommentMessage mocks base method. func (m *MockCommentRepository) UpdateCommentMessage(ctx context.Context, id, message string) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "UpdateCommentMessage", ctx, id, message) ret0, _ := ret[0].(error) return ret0 } // UpdateCommentMessage indicates an expected call of UpdateCommentMessage. func (mr *MockCommentRepositoryMockRecorder) UpdateCommentMessage(ctx, id, message any) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCommentMessage", reflect.TypeOf((*MockCommentRepository)(nil).UpdateCommentMessage), ctx, id, message) }