feat: more clear output
This commit is contained in:
@@ -122,7 +122,7 @@ func CheckOneToMany(pass *analysis.Pass, models map[string]common.Model) {
|
|||||||
|
|
||||||
if !foundOneToMany {
|
if !foundOneToMany {
|
||||||
if foundBelongsTo {
|
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 {
|
} else if hasOne {
|
||||||
fmt.Printf("`%s` has one `%s` \n", model.Name, relatedModel.Name)
|
fmt.Printf("`%s` has one `%s` \n", model.Name, relatedModel.Name)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -7,6 +7,5 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestNullSafety(t *testing.T) {
|
func TestNullSafety(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
analysistest.Run(t, analysistest.TestData(), nullSafetyCheck.NullSafetyAnalyzer, "null_safety")
|
analysistest.Run(t, analysistest.TestData(), nullSafetyCheck.NullSafetyAnalyzer, "null_safety")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,5 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestRelationsCheck(t *testing.T) {
|
func TestRelationsCheck(t *testing.T) {
|
||||||
t.Parallel()
|
|
||||||
analysistest.Run(t, analysistest.TestData(), relationsCheck.RelationsAnalyzer, "relations_check")
|
analysistest.Run(t, analysistest.TestData(), relationsCheck.RelationsAnalyzer, "relations_check")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user