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