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

Function createCacheFiles

pkg/cmd/repo_remove_test.go:143–153  ·  view source on GitHub ↗
(rootDir string, repoName string)

Source from the content-addressed store, hash-verified

141}
142
143func createCacheFiles(rootDir string, repoName string) (cacheIndexFile string, cacheChartsFile string) {
144 cacheIndexFile = filepath.Join(rootDir, helmpath.CacheIndexFile(repoName))
145 mf, _ := os.Create(cacheIndexFile)
146 mf.Close()
147
148 cacheChartsFile = filepath.Join(rootDir, helmpath.CacheChartsFile(repoName))
149 mf, _ = os.Create(cacheChartsFile)
150 mf.Close()
151
152 return cacheIndexFile, cacheChartsFile
153}
154
155func testCacheFiles(t *testing.T, cacheIndexFile string, cacheChartsFile string, repoName string) {
156 t.Helper()

Callers 1

TestRepoRemoveFunction · 0.85

Calls 4

CacheIndexFileFunction · 0.92
CacheChartsFileFunction · 0.92
CloseMethod · 0.80
CreateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…