Skip to content

Commit 76eb123

Browse files
Apply gci import order changes
1 parent 4093695 commit 76eb123

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

cmd/gf/internal/cmd/cmd_z_init_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ import (
1515
)
1616

1717
var (
18-
ctx = context.Background()
19-
testDB gdb.DB
20-
testPgDB gdb.DB
21-
testGaussDB gdb.DB
22-
link = "mysql:root:12345678@tcp(127.0.0.1:3306)/test?loc=Local&parseTime=true"
23-
linkPg = "pgsql:postgres:12345678@tcp(127.0.0.1:5432)/test"
24-
linkGaussDB = "gaussdb:gaussdb:UTpass@1234@tcp(127.0.0.1:9950)/postgres"
18+
ctx = context.Background()
19+
testDB gdb.DB
20+
testPgDB gdb.DB
21+
testGaussDB gdb.DB
22+
link = "mysql:root:12345678@tcp(127.0.0.1:3306)/test?loc=Local&parseTime=true"
23+
linkPg = "pgsql:postgres:12345678@tcp(127.0.0.1:5432)/test"
24+
linkGaussDB = "gaussdb:gaussdb:UTpass@1234@tcp(127.0.0.1:9950)/postgres"
2525
)
2626

2727
func init() {

cmd/gf/internal/cmd/cmd_z_unit_gen_dao_issue_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -866,12 +866,12 @@ func Test_Gen_Dao_Issue4495_PgSchema(t *testing.T) {
866866
}
867867
gtest.C(t, func(t *gtest.T) {
868868
var (
869-
err error
870-
db = testPgDB
871-
schema = "test_gendao_schema"
872-
table1 = "schema_user"
873-
table2 = "schema_order"
874-
linkPgSP = fmt.Sprintf("pgsql:postgres:12345678@tcp(127.0.0.1:5432)/test?search_path=%s,public", schema)
869+
err error
870+
db = testPgDB
871+
schema = "test_gendao_schema"
872+
table1 = "schema_user"
873+
table2 = "schema_order"
874+
linkPgSP = fmt.Sprintf("pgsql:postgres:12345678@tcp(127.0.0.1:5432)/test?search_path=%s,public", schema)
875875
)
876876

877877
// Create schema
@@ -954,11 +954,11 @@ func Test_Gen_Dao_Issue4495_GaussDBSchema(t *testing.T) {
954954
}
955955
gtest.C(t, func(t *gtest.T) {
956956
var (
957-
err error
958-
db = testGaussDB
959-
schema = "test_gendao_schema"
960-
table1 = "schema_user"
961-
table2 = "schema_order"
957+
err error
958+
db = testGaussDB
959+
schema = "test_gendao_schema"
960+
table1 = "schema_user"
961+
table2 = "schema_order"
962962
linkGaussDBSP = fmt.Sprintf("gaussdb:gaussdb:UTpass@1234@tcp(127.0.0.1:9950)/postgres?search_path=%s,public", schema)
963963
)
964964

0 commit comments

Comments
 (0)