From 0ef908567976e96c25ec2bad425c99a6cac3b036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Lindh=C3=A9?= Date: Fri, 10 Apr 2020 14:57:30 +0200 Subject: [PATCH] Rename indexing function to createCacheFiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Lindhé --- cmd/helm/repo_remove_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/helm/repo_remove_test.go b/cmd/helm/repo_remove_test.go index 5d08f86d9..bbc9356a9 100644 --- a/cmd/helm/repo_remove_test.go +++ b/cmd/helm/repo_remove_test.go @@ -62,7 +62,7 @@ func TestRepoRemove(t *testing.T) { t.Error(err) } - idx, idx2 := indexing(rootDir, testRepoName) + idx, idx2 := createCacheFiles(rootDir, testRepoName) // Reset the buffer before running repo remove b.Reset() @@ -101,7 +101,7 @@ func TestRepoRemove(t *testing.T) { t.Error(err) } - cacheIndex, cacheChart := indexing(rootDir, repoName) + cacheIndex, cacheChart := createCacheFiles(rootDir, repoName) idxs[repoName] = []string{cacheIndex, cacheChart} } @@ -140,7 +140,7 @@ func TestRepoRemove(t *testing.T) { } } -func indexing(rootDir string, repoName string) (cacheIndexFile string, cacheChartsFile string) { +func createCacheFiles(rootDir string, repoName string) (cacheIndexFile string, cacheChartsFile string) { idx := filepath.Join(rootDir, helmpath.CacheIndexFile(repoName)) mf, _ := os.Create(idx) mf.Close()