Skip to content

Commit f842623

Browse files
committed
fix(nerdgraphclient): dont generate integration test file yet, needs more work before its ready
1 parent b3af300 commit f842623

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

generators/nerdgraphclient/generator.go

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package nerdgraphclient
33
import (
44
"fmt"
55
"os"
6-
"strings"
76

87
log "github.com/sirupsen/logrus"
98

@@ -130,23 +129,23 @@ func (g *Generator) Execute(genConfig *config.GeneratorConfig, pkgConfig *config
130129
}
131130
}
132131

133-
fileName_ := fmt.Sprintf("%s_integration_test.go", strings.ToLower(pkgConfig.Name))
134-
testFilePath, err := codegen.RenderStringFromGenerator(fmt.Sprintf("%s/%s", destinationPath, fileName_), g)
135-
if err != nil {
136-
return err
137-
}
132+
// fileName_ := fmt.Sprintf("%s_integration_test.go", strings.ToLower(pkgConfig.Name))
133+
// testFilePath, err := codegen.RenderStringFromGenerator(fmt.Sprintf("%s/%s", destinationPath, fileName_), g)
134+
// if err != nil {
135+
// return err
136+
// }
138137

139-
cg := codegen.CodeGen{
140-
TemplateDir: templateDir,
141-
TemplateName: "integration_test.go.tmpl",
142-
DestinationFile: testFilePath,
143-
DestinationDir: destinationPath,
144-
}
138+
// cg := codegen.CodeGen{
139+
// TemplateDir: templateDir,
140+
// TemplateName: "integration_test.go.tmpl",
141+
// DestinationFile: testFilePath,
142+
// DestinationDir: destinationPath,
143+
// }
145144

146-
err = cg.WriteFile(g)
147-
if err != nil {
148-
return err
149-
}
145+
// err = cg.WriteFile(g)
146+
// if err != nil {
147+
// return err
148+
// }
150149

151150
c := codegen.CodeGen{
152151
TemplateDir: templateDir,
@@ -160,7 +159,7 @@ func (g *Generator) Execute(genConfig *config.GeneratorConfig, pkgConfig *config
160159
return err
161160
}
162161

163-
output.PrintSuccessMessage(c.DestinationDir, []string{filePath, testFilePath})
162+
output.PrintSuccessMessage(c.DestinationDir, []string{filePath})
164163

165164
return nil
166165
}

0 commit comments

Comments
 (0)