Co-authored-by: anqiansong <anqiansong@bytedance.com>
@ -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},
}
@ -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)