Implement #4442 , goctl generate unit test files for api handler and logic (#4443)

This commit is contained in:
Devin
2025-01-22 14:52:49 +08:00
committed by GitHub
parent bf883101d7
commit 6138f85470
10 changed files with 338 additions and 6 deletions

View File

@@ -348,7 +348,7 @@ func validateWithCamel(t *testing.T, api, camel string) {
assert.Nil(t, err)
err = initMod(dir)
assert.Nil(t, err)
err = DoGenProject(api, dir, camel)
err = DoGenProject(api, dir, camel, true)
assert.Nil(t, err)
filepath.Walk(dir, func(path string, info os.FileInfo, err error) error {
if strings.HasSuffix(path, ".go") {