github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/cmd/internal/svc/codegen/config_test.go (about) 1 package codegen 2 3 import ( 4 "os" 5 "path/filepath" 6 "testing" 7 ) 8 9 func TestGenConfig(t *testing.T) { 10 dir := testDir + "config" 11 InitSvc(dir) 12 defer os.RemoveAll(dir) 13 GenConfig(dir) 14 } 15 16 func TestGenConfig1(t *testing.T) { 17 GenConfig(filepath.Join(testDir)) 18 }