chore: gofumpt style

This commit is contained in:
a631807682 2022-06-30 15:14:19 +08:00
parent d4b7f3ddb8
commit 4b16c15d93
No known key found for this signature in database
GPG Key ID: 137D1D75522168AB
3 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,10 @@
package tests_test
import (
"testing"
"gorm.io/gorm"
. "gorm.io/gorm/utils/tests"
"testing"
)
func TestMany2ManyAssociation(t *testing.T) {

View File

@ -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)

View File

@ -113,7 +113,6 @@ func TestSerializer(t *testing.T) {
}
AssertEqual(t, result, data)
}
func TestSerializerAssignFirstOrCreate(t *testing.T) {