Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Jan 28, 2025
1 parent 14efd1e commit 9038a4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/codegen/buildconfig/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import (
"testing"
"text/template"

"github.com/rancher/prometheus-federator/pkg/codegen/buildconfig"
"github.com/stretchr/testify/require"

mainpkg "github.com/rancher/prometheus-federator/pkg/codegen/buildconfig"
)

func TestGoConstantsWriterRun(t *testing.T) {
Expand All @@ -26,7 +27,7 @@ c: 3.14`
`
tmpl, err := template.New("").Parse(rawTemplate)
require.NoError(t, err)
w := &main.GoConstantsWriter{
w := &mainpkg.GoConstantsWriter{
Tmpl: tmpl,
Input: in,
Output: out,
Expand Down Expand Up @@ -106,7 +107,7 @@ c: 3.14`
test := test
t.Run(test.name, func(t *testing.T) {
t.Parallel()
w := main.GoConstantsWriter{
w := mainpkg.GoConstantsWriter{
Input: test.input,
Output: test.output,
Tmpl: test.tmpl,
Expand Down

0 comments on commit 9038a4f

Please sign in to comment.