diff --git a/relationsCheck/relationsCheck.go b/relationsCheck/relationsCheck.go index 756dcb8..5360fb3 100644 --- a/relationsCheck/relationsCheck.go +++ b/relationsCheck/relationsCheck.go @@ -122,7 +122,7 @@ func CheckOneToMany(pass *analysis.Pass, models map[string]common.Model) { if !foundOneToMany { if foundBelongsTo { - fmt.Printf("Found belongs to relation in model `%s` with model `%s`\n", model.Name, *baseType) + fmt.Printf("`%s` belongs `%s`\n", *baseType, model.Name) } else if hasOne { fmt.Printf("`%s` has one `%s` \n", model.Name, relatedModel.Name) } else { diff --git a/tests/null_safety_check_test.go b/tests/null_safety_check_test.go index 4e6ac27..eb3cd21 100644 --- a/tests/null_safety_check_test.go +++ b/tests/null_safety_check_test.go @@ -7,6 +7,5 @@ import ( ) func TestNullSafety(t *testing.T) { - t.Parallel() analysistest.Run(t, analysistest.TestData(), nullSafetyCheck.NullSafetyAnalyzer, "null_safety") } diff --git a/tests/relations_check_test.go b/tests/relations_check_test.go index 3cd8d1b..a57e122 100644 --- a/tests/relations_check_test.go +++ b/tests/relations_check_test.go @@ -7,6 +7,5 @@ import ( ) func TestRelationsCheck(t *testing.T) { - t.Parallel() analysistest.Run(t, analysistest.TestData(), relationsCheck.RelationsAnalyzer, "relations_check") }