mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 18:29:14 +02:00
fix:#57 added test and converted encoding
This commit is contained in:
@@ -10,6 +10,11 @@ type MockCourseService struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
func (m *MockCourseService) FindCourseByCourseName(courseName string) (model.SeminarGroup, error) {
|
||||
args := m.Called(courseName)
|
||||
return args.Get(0).(model.SeminarGroup), args.Error(1)
|
||||
}
|
||||
|
||||
func (m *MockCourseService) GetAllCourses() []string {
|
||||
args := m.Called()
|
||||
return args.Get(0).([]string)
|
||||
|
Reference in New Issue
Block a user