diff --git a/tests/associations_many2many_test.go b/tests/associations_many2many_test.go index d7c38bff..7b45befb 100644 --- a/tests/associations_many2many_test.go +++ b/tests/associations_many2many_test.go @@ -1,9 +1,10 @@ package tests_test import ( + "testing" + "gorm.io/gorm" . "gorm.io/gorm/utils/tests" - "testing" ) func TestMany2ManyAssociation(t *testing.T) { diff --git a/tests/migrate_test.go b/tests/migrate_test.go index 0bbef382..3d6a7858 100644 --- a/tests/migrate_test.go +++ b/tests/migrate_test.go @@ -830,11 +830,11 @@ func TestUniqueColumn(t *testing.T) { value, ok = ct.DefaultValue() AssertEqual(t, "", value) AssertEqual(t, false, ok) - } func findColumnType(dest interface{}, columnName string) ( - foundColumn gorm.ColumnType, err error) { + foundColumn gorm.ColumnType, err error, +) { columnTypes, err := DB.Migrator().ColumnTypes(dest) if err != nil { err = fmt.Errorf("ColumnTypes err:%v", err) diff --git a/tests/serializer_test.go b/tests/serializer_test.go index 80e015ff..7232f9df 100644 --- a/tests/serializer_test.go +++ b/tests/serializer_test.go @@ -113,7 +113,6 @@ func TestSerializer(t *testing.T) { } AssertEqual(t, result, data) - } func TestSerializerAssignFirstOrCreate(t *testing.T) { @@ -152,7 +151,7 @@ func TestSerializerAssignFirstOrCreate(t *testing.T) { } AssertEqual(t, result, out) - //update record + // update record data.Roles = append(data.Roles, "r3") data.JobInfo.Location = "Gates Hillman Complex" if err := DB.Assign(data).FirstOrCreate(&out).Error; err != nil {