Skip to content

Commit 9dc1b93

Browse files
committed
rename cmdName attribute
1 parent f7ac701 commit 9dc1b93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/convert/convert_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import (
1313
)
1414

1515
// runConvertTests runs common conversion tests with the given test directory and convert function
16-
func runConvertTests(t *testing.T, testDir string, convert func(testName string, inConfig []byte) ([]byte, error)) {
16+
func runConvertTests(t *testing.T, cmdName string, convert func(testName string, inConfig []byte) ([]byte, error)) {
1717
t.Helper()
1818
const (
1919
inSuffix = ".in.tf"
2020
outSuffix = ".out.tf"
2121
errFilename = "errors.json"
2222
)
23-
root := filepath.Join("testdata", testDir)
23+
root := filepath.Join("testdata", cmdName)
2424
fs := afero.NewOsFs()
2525
errMap := make(map[string]string)
2626
errContent, err := afero.ReadFile(fs, filepath.Join(root, errFilename))

0 commit comments

Comments
 (0)