We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c19242b commit ec65ea3Copy full SHA for ec65ea3
cli/templatevariables_test.go
@@ -1,10 +1,11 @@
1
-package cli
+package cli_test
2
3
import (
4
"os"
5
"path/filepath"
6
"testing"
7
8
+ "github.com/coder/coder/v2/cli"
9
"github.com/stretchr/testify/require"
10
)
11
@@ -39,12 +40,12 @@ func TestDiscoverVarsFiles(t *testing.T) {
39
40
41
for _, file := range testFiles {
42
filePath := filepath.Join(tempDir, file)
- err := os.WriteFile(filePath, []byte(""), 0600)
43
+ err := os.WriteFile(filePath, []byte(""), 0o600)
44
require.NoError(t, err)
45
}
46
47
// When
- found, err := DiscoverVarsFiles(tempDir)
48
+ found, err := cli.DiscoverVarsFiles(tempDir)
49
50
51
// Then
0 commit comments