MCPcopy Index your code
hub / github.com/helm/helm / testCacheFiles

Function testCacheFiles

pkg/cmd/repo_remove_test.go:155–163  ·  view source on GitHub ↗
(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string)

Source from the content-addressed store, hash-verified

153}
154
155func testCacheFiles(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) {
156 t.Helper()
157 if _, err := os.Stat(cacheIndexFile); err == nil {
158 t.Errorf("Error cache index file was not removed for repository %s", repoName)
159 }
160 if _, err := os.Stat(cacheChartsFile); err == nil {
161 t.Errorf("Error cache chart file was not removed for repository %s", repoName)
162 }
163}
164
165func TestRepoRemoveCompletion(t *testing.T) {
166 ts := repotest.NewTempServer(

Callers 1

TestRepoRemoveFunction · 0.85

Calls 1

HelperMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…