MCPcopy
hub / github.com/helm/helm / setupMockRepoServer

Function setupMockRepoServer

pkg/cmd/dependency_update_test.go:257–271  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

255}
256
257func setupMockRepoServer(t *testing.T) *repotest.Server {
258 t.Helper()
259 srv := repotest.NewTempServer(
260 t,
261 repotest.WithChartSourceGlob("testdata/testcharts/*.tgz"),
262 )
263
264 t.Logf("Listening on directory %s", srv.Root())
265
266 if err := srv.LinkIndices(); err != nil {
267 t.Fatal(err)
268 }
269
270 return srv
271}
272
273// createTestingMetadata creates a basic chart that depends on reqtest-0.1.0
274//

Calls 6

NewTempServerFunction · 0.92
WithChartSourceGlobFunction · 0.92
HelperMethod · 0.80
LinkIndicesMethod · 0.80
FatalMethod · 0.80
RootMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…