Skip to content

Commit

Permalink
also generate match_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonk committed Jun 24, 2024
1 parent f416166 commit a522523
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/mdatagen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ func run(ymlPath string) error {
toGenerate[filepath.Join(tmplDir, "resource.go.tmpl")] = filepath.Join(codeDir, "generated_resource.go")
toGenerate[filepath.Join(tmplDir, "resource_test.go.tmpl")] = filepath.Join(codeDir, "generated_resource_test.go")
}
if err = generateFile(filepath.Join(tmplDir, "match_test.go.tmpl"),
filepath.Join(codeDir, "generated_match_test.go"), md, "metadata"); err != nil {
return err
}

if err = generateFile(filepath.Join(tmplDir, "config.go.tmpl"),
filepath.Join(codeDir, "generated_config.go"), md, "metadata"); err != nil {
Expand All @@ -149,6 +145,10 @@ func run(ymlPath string) error {
filepath.Join(codeDir, "generated_match.go"), md, "metadata"); err != nil {
return err
}
if err = generateFile(filepath.Join(tmplDir, "match_test.go.tmpl"),
filepath.Join(codeDir, "generated_match_test.go"), md, "metadata"); err != nil {
return err
}
}

for tmpl, dst := range toGenerate {
Expand Down

0 comments on commit a522523

Please sign in to comment.