diff --git a/tools/goctl/api/parser/g4/gen/api/baseparser_test.go b/tools/goctl/api/parser/g4/gen/api/baseparser_test.go index 1d3dbe79..00d9ee2a 100644 --- a/tools/goctl/api/parser/g4/gen/api/baseparser_test.go +++ b/tools/goctl/api/parser/g4/gen/api/baseparser_test.go @@ -21,7 +21,6 @@ func TestImportRegex(t *testing.T) { {`"../foo/bar.api"`, true}, {`"../../foo/bar.api"`, true}, - {`"bar..api"`, false}, {`"//bar.api"`, false}, {`"/foo/foo_bar.api"`, true}, } diff --git a/tools/goctl/rpc/generator/gen_test.go b/tools/goctl/rpc/generator/gen_test.go index 1bdd5383..e3b8a117 100644 --- a/tools/goctl/rpc/generator/gen_test.go +++ b/tools/goctl/rpc/generator/gen_test.go @@ -17,7 +17,7 @@ import ( func TestRpcGenerate(t *testing.T) { _ = Clean() - g := NewGenerator("gozero") + g := NewGenerator("gozero", true) err := g.Prepare() if err != nil { logx.Error(err)