From 5e9b9480b4bae62047f92230c77d5956e579c15d Mon Sep 17 00:00:00 2001 From: Karakoc Date: Thu, 5 Dec 2024 18:50:06 +0100 Subject: [PATCH] Mockgen --- mock_dao/courses.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mock_dao/courses.go b/mock_dao/courses.go index 5700234b1..020fc8c43 100644 --- a/mock_dao/courses.go +++ b/mock_dao/courses.go @@ -310,6 +310,21 @@ func (mr *MockCoursesDaoMockRecorder) GetPublicCourses(year, term interface{}) * return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublicCourses", reflect.TypeOf((*MockCoursesDao)(nil).GetPublicCourses), year, term) } +// IsUserEnrolledInCourse mocks base method. +func (m *MockCoursesDao) IsUserEnrolledInCourse(userID, courseID uint) (bool, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "IsUserEnrolledInCourse", userID, courseID) + ret0, _ := ret[0].(bool) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// IsUserEnrolledInCourse indicates an expected call of IsUserEnrolledInCourse. +func (mr *MockCoursesDaoMockRecorder) IsUserEnrolledInCourse(userID, courseID interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUserEnrolledInCourse", reflect.TypeOf((*MockCoursesDao)(nil).IsUserEnrolledInCourse), userID, courseID) +} + // RemoveAdminFromCourse mocks base method. func (m *MockCoursesDao) RemoveAdminFromCourse(userID, courseID uint) error { m.ctrl.T.Helper()