fix:#41 fixed naming issue sonarqube

This commit is contained in:
Elmar Kresse
2024-06-24 15:29:58 +02:00
parent 3e2b3c3720
commit bfb05b6704
12 changed files with 30 additions and 30 deletions

View File

@@ -20,7 +20,7 @@ import (
"testing" "testing"
) )
func Test_setupApp(t *testing.T) { func TestSetupApp(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
}{ }{

View File

@@ -24,7 +24,7 @@ import (
"github.com/pocketbase/pocketbase/tools/types" "github.com/pocketbase/pocketbase/tools/types"
) )
func TestEvents_Contains(t *testing.T) { func TestEventsContains(t *testing.T) {
specificTime, _ := types.ParseDateTime("2020-01-01 12:00:00.000Z") specificTime, _ := types.ParseDateTime("2020-01-01 12:00:00.000Z")
type args struct { type args struct {
@@ -70,7 +70,7 @@ func TestEvents_Contains(t *testing.T) {
} }
} }
func TestEvent_Equals(t *testing.T) { func TestEventEquals(t *testing.T) {
specificTime, _ := types.ParseDateTime("2020-01-01 12:00:00.000Z") specificTime, _ := types.ParseDateTime("2020-01-01 12:00:00.000Z")
type fields struct { type fields struct {
@@ -148,7 +148,7 @@ func TestEvent_Equals(t *testing.T) {
} }
} }
func TestEvent_AnonymizeEvent(t *testing.T) { func TestEventAnonymizeEvent(t *testing.T) {
type fields struct { type fields struct {
UUID string UUID string
Day string Day string
@@ -218,7 +218,7 @@ func TestEvent_AnonymizeEvent(t *testing.T) {
} }
} }
func TestEvent_GetName(t *testing.T) { func TestEventGetName(t *testing.T) {
type fields struct { type fields struct {
UUID string UUID string
Day string Day string
@@ -278,7 +278,7 @@ func TestEvent_GetName(t *testing.T) {
} }
} }
func TestEvent_SetCourse(t *testing.T) { func TestEventSetCourse(t *testing.T) {
type fields struct { type fields struct {
UUID string UUID string
Day string Day string
@@ -338,7 +338,7 @@ func TestEvent_SetCourse(t *testing.T) {
} }
} }
func TestEvent_SetName(t *testing.T) { func TestEventSetName(t *testing.T) {
type fields struct { type fields struct {
UUID string UUID string
Day string Day string
@@ -398,7 +398,7 @@ func TestEvent_SetName(t *testing.T) {
} }
} }
func TestEvent_TableName(t *testing.T) { func TestEventTableName(t *testing.T) {
type fields struct { type fields struct {
UUID string UUID string
Day string Day string
@@ -453,7 +453,7 @@ func TestEvent_TableName(t *testing.T) {
} }
} }
func TestEvents_Contains1(t *testing.T) { func TestEventsContains1(t *testing.T) {
type args struct { type args struct {
event Event event Event
} }

View File

@@ -23,7 +23,7 @@ import (
_ "time/tzdata" _ "time/tzdata"
) )
func Test_getDateFromWeekNumber(t *testing.T) { func TestGetDateFromWeekNumber(t *testing.T) {
europeTime, _ := time.LoadLocation("Europe/Berlin") europeTime, _ := time.LoadLocation("Europe/Berlin")
type args struct { type args struct {

View File

@@ -22,7 +22,7 @@ import (
"testing" "testing"
) )
func Test_buildIcalQueryForModules(t *testing.T) { func TestBuildIcalQueryForModules(t *testing.T) {
type args struct { type args struct {
modules []string modules []string
} }

View File

@@ -21,7 +21,7 @@ import (
"testing" "testing"
) )
func Test_removeEmptyCourses(t *testing.T) { func TestRemoveEmptyCourses(t *testing.T) {
type args struct { type args struct {
courses []string courses []string
} }

View File

@@ -21,7 +21,7 @@ import (
"testing" "testing"
) )
func Test_splitByCommaWithTime(t *testing.T) { func TestSplitByCommaWithTime(t *testing.T) {
type args struct { type args struct {
input string input string
} }

View File

@@ -25,7 +25,7 @@ import (
"time" "time"
) )
func Test_extractSemesterAndYear(t *testing.T) { func TestExtractSemesterAndYear(t *testing.T) {
type args struct { type args struct {
semesterString string 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 { type args struct {
group model.SeminarGroup 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 { type args struct {
events []model.Event 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 { type args struct {
events []model.Event events []model.Event
course string 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 { type args struct {
tableTime string 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 { type args struct {
date time.Time date time.Time
time 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 { type args struct {
events []model.Event events []model.Event
semester string 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 { type args struct {
date time.Time date time.Time
replacementTime 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 { type args struct {
month time.Month 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 { type args struct {
month time.Month month time.Month
} }

View File

@@ -21,7 +21,7 @@ import (
"testing" "testing"
) )
func Test_contains(t *testing.T) { func TestContains(t *testing.T) {
type args struct { type args struct {
groups []model.SeminarGroup groups []model.SeminarGroup
group model.SeminarGroup group model.SeminarGroup

View File

@@ -22,7 +22,7 @@ import (
"testing" "testing"
) )
func Test_switchNameAndNotesForExam(t *testing.T) { func TestSwitchNameAndNotesForExam(t *testing.T) {
type args struct { type args struct {
events []model.Event events []model.Event
} }

View File

@@ -7,7 +7,7 @@ import (
"time" "time"
) )
func Test_calculateSemesterList(t *testing.T) { func TestCalculateSemesterList(t *testing.T) {
type args struct { type args struct {
clock mockTime.Clock clock mockTime.Clock
} }

View File

@@ -23,7 +23,7 @@ import (
"testing" "testing"
) )
func Test_anonymizeRooms(t *testing.T) { func TestAnonymizeRooms(t *testing.T) {
type args struct { type args struct {
events []model.Event 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 { type args struct {
room string room string
schedule []model.Event 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 { type args struct {
rooms []string rooms []string
schedule []model.Event schedule []model.Event

View File

@@ -7,7 +7,7 @@ import (
"time" "time"
) )
func Test_calculateSemesterList(t *testing.T) { func TestCalculateSemesterList(t *testing.T) {
type args struct { type args struct {
clock mockTime.Clock clock mockTime.Clock
} }