mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 18:29:14 +02:00
fix:#41 fixed naming issue sonarqube
This commit is contained in:
@@ -23,7 +23,7 @@ import (
|
||||
_ "time/tzdata"
|
||||
)
|
||||
|
||||
func Test_getDateFromWeekNumber(t *testing.T) {
|
||||
func TestGetDateFromWeekNumber(t *testing.T) {
|
||||
europeTime, _ := time.LoadLocation("Europe/Berlin")
|
||||
|
||||
type args struct {
|
||||
|
@@ -22,7 +22,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_buildIcalQueryForModules(t *testing.T) {
|
||||
func TestBuildIcalQueryForModules(t *testing.T) {
|
||||
type args struct {
|
||||
modules []string
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_removeEmptyCourses(t *testing.T) {
|
||||
func TestRemoveEmptyCourses(t *testing.T) {
|
||||
type args struct {
|
||||
courses []string
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_splitByCommaWithTime(t *testing.T) {
|
||||
func TestSplitByCommaWithTime(t *testing.T) {
|
||||
type args struct {
|
||||
input string
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func Test_extractSemesterAndYear(t *testing.T) {
|
||||
func TestExtractSemesterAndYear(t *testing.T) {
|
||||
type args struct {
|
||||
semesterString string
|
||||
}
|
||||
@@ -73,7 +73,7 @@ func Test_extractSemesterAndYear(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_replaceEmptyEventNames(t *testing.T) {
|
||||
func TestReplaceEmptyEventNames(t *testing.T) {
|
||||
type args struct {
|
||||
group model.SeminarGroup
|
||||
}
|
||||
@@ -130,7 +130,7 @@ func Test_replaceEmptyEventNames(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_splitEventType(t *testing.T) {
|
||||
func TestSplitEventType(t *testing.T) {
|
||||
type args struct {
|
||||
events []model.Event
|
||||
}
|
||||
@@ -220,7 +220,7 @@ func Test_splitEventType(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_generateUUIDs(t *testing.T) {
|
||||
func TestGenerateUUIDs(t *testing.T) {
|
||||
type args struct {
|
||||
events []model.Event
|
||||
course string
|
||||
@@ -274,7 +274,7 @@ func Test_generateUUIDs(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_createTimeFromHourAndMinuteString(t *testing.T) {
|
||||
func TestCreateTimeFromHourAndMinuteString(t *testing.T) {
|
||||
type args struct {
|
||||
tableTime string
|
||||
}
|
||||
@@ -314,7 +314,7 @@ func Test_createTimeFromHourAndMinuteString(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_replaceTimeInDate(t *testing.T) {
|
||||
func TestReplaceTimeInDate(t *testing.T) {
|
||||
type args struct {
|
||||
date time.Time
|
||||
time time.Time
|
||||
@@ -350,7 +350,7 @@ func Test_replaceTimeInDate(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_convertWeeksToDates(t *testing.T) {
|
||||
func TestConvertWeeksToDates(t *testing.T) {
|
||||
type args struct {
|
||||
events []model.Event
|
||||
semester string
|
||||
@@ -450,7 +450,7 @@ func Test_convertWeeksToDates(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_replaceTimeForDate(t *testing.T) {
|
||||
func TestReplaceTimeForDate(t *testing.T) {
|
||||
type args struct {
|
||||
date time.Time
|
||||
replacementTime time.Time
|
||||
@@ -502,7 +502,7 @@ func Test_replaceTimeForDate(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_isSummerSemester(t *testing.T) {
|
||||
func TestIsSummerSemester(t *testing.T) {
|
||||
type args struct {
|
||||
month time.Month
|
||||
}
|
||||
@@ -535,7 +535,7 @@ func Test_isSummerSemester(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_isWinterSemester(t *testing.T) {
|
||||
func TestIsWinterSemester(t *testing.T) {
|
||||
type args struct {
|
||||
month time.Month
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_contains(t *testing.T) {
|
||||
func TestContains(t *testing.T) {
|
||||
type args struct {
|
||||
groups []model.SeminarGroup
|
||||
group model.SeminarGroup
|
||||
|
@@ -22,7 +22,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_switchNameAndNotesForExam(t *testing.T) {
|
||||
func TestSwitchNameAndNotesForExam(t *testing.T) {
|
||||
type args struct {
|
||||
events []model.Event
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
func Test_calculateSemesterList(t *testing.T) {
|
||||
func TestCalculateSemesterList(t *testing.T) {
|
||||
type args struct {
|
||||
clock mockTime.Clock
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_anonymizeRooms(t *testing.T) {
|
||||
func TestAnonymizeRooms(t *testing.T) {
|
||||
type args struct {
|
||||
events []model.Event
|
||||
}
|
||||
@@ -139,7 +139,7 @@ func Test_anonymizeRooms(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_isRoomInSchedule(t *testing.T) {
|
||||
func TestIsRoomInSchedule(t *testing.T) {
|
||||
type args struct {
|
||||
room string
|
||||
schedule []model.Event
|
||||
@@ -245,7 +245,7 @@ func Test_isRoomInSchedule(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func Test_getFreeRooms(t *testing.T) {
|
||||
func TestGetFreeRooms(t *testing.T) {
|
||||
type args struct {
|
||||
rooms []string
|
||||
schedule []model.Event
|
||||
|
Reference in New Issue
Block a user