Skip to content

Commit

Permalink
Update comments in tests, jenny changes to make the linter happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
IfSentient committed Jan 6, 2025
1 parent e6c0f6d commit cfb1515
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions codegen/cuekind/generators_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func TestResourceGenerator(t *testing.T) {
files, err := ResourceGenerator(false).Generate(kinds...)
require.Nil(t, err)
// Check number of files generated
// 14 (6 -> object, spec, metadata, status, schema, codec, constants) * 2 versions
// 14 (7 -> object, spec, metadata, status, schema, codec, constants) * 2 versions
assert.Len(t, files, 14, "should be 14 files generated, got %d", len(files))
// Check content against the golden files
compareToGolden(t, files, "go/groupbykind")
Expand All @@ -70,7 +70,7 @@ func TestResourceGenerator(t *testing.T) {
files, err := ResourceGenerator(true).Generate(kinds...)
require.Nil(t, err)
// Check number of files generated
// 14 (6 -> object, spec, metadata, status, schema, codec, constants) * 2 versions
// 14 (7 -> object, spec, metadata, status, schema, codec, constants) * 2 versions
assert.Len(t, files, 14, "should be 14 files generated, got %d", len(files))
// Check content against the golden files
compareToGolden(t, files, "go/groupbygroup")
Expand Down
3 changes: 2 additions & 1 deletion codegen/jennies/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"path/filepath"

"github.com/grafana/codejen"

"github.com/grafana/grafana-app-sdk/codegen"
"github.com/grafana/grafana-app-sdk/codegen/templates"
)
Expand All @@ -17,7 +18,7 @@ type Constants struct {
GroupByKind bool
}

func (c *Constants) JennyName() string {
func (*Constants) JennyName() string {
return "ConstantsGenerator"
}

Expand Down

0 comments on commit cfb1515

Please sign in to comment.