Skip to content

Commit

Permalink
Merge pull request #4635 from konrad945/master
Browse files Browse the repository at this point in the history
Testing code leaked to production
  • Loading branch information
k8s-ci-robot committed May 19, 2022
2 parents 03ac2e1 + ba7315c commit ba5335c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kyaml/kio/testing.go → kyaml/kio/testing_test.go
Expand Up @@ -18,7 +18,7 @@ type Setup struct {
Root string
}

// setupDirectories creates directories for reading test configuration from
// SetupDirectories creates directories for reading test configuration from
func SetupDirectories(t *testing.T, dirs ...string) Setup {
t.Helper()
d, err := ioutil.TempDir("", "kyaml-test")
Expand All @@ -32,7 +32,7 @@ func SetupDirectories(t *testing.T, dirs ...string) Setup {
return Setup{Root: d}
}

// writeFile writes a file under the test directory
// WriteFile writes a file under the test directory
func (s Setup) WriteFile(t *testing.T, path string, value []byte) {
t.Helper()
err := os.MkdirAll(filepath.Dir(filepath.Join(s.Root, path)), 0700)
Expand All @@ -41,7 +41,7 @@ func (s Setup) WriteFile(t *testing.T, path string, value []byte) {
require.NoError(t, err)
}

// clean deletes the test config
// Clean deletes the test config
func (s Setup) Clean() {
os.RemoveAll(s.Root)
}

0 comments on commit ba5335c

Please sign in to comment.