From 7d0f88976cc68cd79daec235f73d27f118b46692 Mon Sep 17 00:00:00 2001 From: demoManito <1430482733@qq.com> Date: Mon, 26 Sep 2022 22:55:10 +0800 Subject: [PATCH] style fmt import order --- logger/sql_test.go | 1 + schema/field.go | 1 + schema/relationship.go | 1 + tests/connection_test.go | 1 + tests/connpool_test.go | 1 + tests/create_test.go | 1 + tests/go.mod | 11 +++++++---- tests/migrate_test.go | 1 + tests/postgres_test.go | 1 + tests/tests_test.go | 1 + 10 files changed, 16 insertions(+), 4 deletions(-) diff --git a/logger/sql_test.go b/logger/sql_test.go index c5b181a9..d4356a1b 100644 --- a/logger/sql_test.go +++ b/logger/sql_test.go @@ -9,6 +9,7 @@ import ( "testing" "github.com/jinzhu/now" + "gorm.io/gorm/logger" ) diff --git a/schema/field.go b/schema/field.go index 1589d984..dd59e46d 100644 --- a/schema/field.go +++ b/schema/field.go @@ -12,6 +12,7 @@ import ( "time" "github.com/jinzhu/now" + "gorm.io/gorm/clause" "gorm.io/gorm/utils" ) diff --git a/schema/relationship.go b/schema/relationship.go index bb8aeb64..19208303 100644 --- a/schema/relationship.go +++ b/schema/relationship.go @@ -7,6 +7,7 @@ import ( "strings" "github.com/jinzhu/inflection" + "gorm.io/gorm/clause" ) diff --git a/tests/connection_test.go b/tests/connection_test.go index 7bc23009..2dd9bc91 100644 --- a/tests/connection_test.go +++ b/tests/connection_test.go @@ -5,6 +5,7 @@ import ( "testing" "gorm.io/driver/mysql" + "gorm.io/gorm" ) diff --git a/tests/connpool_test.go b/tests/connpool_test.go index fbae2294..31df03e1 100644 --- a/tests/connpool_test.go +++ b/tests/connpool_test.go @@ -8,6 +8,7 @@ import ( "testing" "gorm.io/driver/mysql" + "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) diff --git a/tests/create_test.go b/tests/create_test.go index 274a7f48..125866e7 100644 --- a/tests/create_test.go +++ b/tests/create_test.go @@ -7,6 +7,7 @@ import ( "time" "github.com/jinzhu/now" + "gorm.io/gorm" "gorm.io/gorm/clause" . "gorm.io/gorm/utils/tests" diff --git a/tests/go.mod b/tests/go.mod index ebebabc0..b31e4f94 100644 --- a/tests/go.mod +++ b/tests/go.mod @@ -3,13 +3,9 @@ module gorm.io/gorm/tests go 1.16 require ( - github.com/denisenkom/go-mssqldb v0.12.2 // indirect - github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect github.com/google/uuid v1.3.0 github.com/jinzhu/now v1.1.5 github.com/lib/pq v1.10.7 - github.com/mattn/go-sqlite3 v1.14.15 // indirect - golang.org/x/crypto v0.0.0-20220919173607-35f4265a4bc0 // indirect gorm.io/driver/mysql v1.3.6 gorm.io/driver/postgres v1.3.10 gorm.io/driver/sqlite v1.3.6 @@ -17,4 +13,11 @@ require ( gorm.io/gorm v1.23.9 ) +require ( + github.com/denisenkom/go-mssqldb v0.12.2 // indirect + github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect + github.com/mattn/go-sqlite3 v1.14.15 // indirect + golang.org/x/crypto v0.0.0-20220919173607-35f4265a4bc0 // indirect +) + replace gorm.io/gorm => ../ diff --git a/tests/migrate_test.go b/tests/migrate_test.go index 32e84e77..cbef9047 100644 --- a/tests/migrate_test.go +++ b/tests/migrate_test.go @@ -9,6 +9,7 @@ import ( "time" "gorm.io/driver/postgres" + "gorm.io/gorm" "gorm.io/gorm/schema" . "gorm.io/gorm/utils/tests" diff --git a/tests/postgres_test.go b/tests/postgres_test.go index b5b672a9..54ae8fc4 100644 --- a/tests/postgres_test.go +++ b/tests/postgres_test.go @@ -6,6 +6,7 @@ import ( "github.com/google/uuid" "github.com/lib/pq" + "gorm.io/gorm" ) diff --git a/tests/tests_test.go b/tests/tests_test.go index dcba3cbf..75f82f18 100644 --- a/tests/tests_test.go +++ b/tests/tests_test.go @@ -11,6 +11,7 @@ import ( "gorm.io/driver/postgres" "gorm.io/driver/sqlite" "gorm.io/driver/sqlserver" + "gorm.io/gorm" "gorm.io/gorm/logger" . "gorm.io/gorm/utils/tests"