fix(goctl): fix the unit test bug of goctl (#2458)

master
chen quan 2 years ago committed by GitHub
parent 63cfe60f1a
commit 4f6a900fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -119,7 +119,7 @@ func TestFolderName(t *testing.T) {
pkg := g.pkg
err = g.StartFromDDL(sqlFile, true, "go_zero")
err = g.StartFromDDL(sqlFile, true, true, "go_zero")
assert.Nil(t, err)
assert.True(t, func() bool {
_, err := os.Stat(filepath.Join(camelDir, "TestUserModel.go"))
@ -132,7 +132,7 @@ func TestFolderName(t *testing.T) {
})
assert.Nil(t, err)
err = g.StartFromDDL(sqlFile, true, "go_zero")
err = g.StartFromDDL(sqlFile, true, true, "go_zero")
assert.Nil(t, err)
assert.True(t, func() bool {
_, err := os.Stat(filepath.Join(snakeDir, "test_user_model.go"))

Loading…
Cancel
Save