MCPcopy Index your code
hub / github.com/coder/coder / lookupHelm

Function lookupHelm

helm/coder/tests/chart_test.go:305–313  ·  view source on GitHub ↗

lookupHelm ensures that Helm is available in $PATH and returns the path to the Helm executable.

(t testing.TB)

Source from the content-addressed store, hash-verified

303// lookupHelm ensures that Helm is available in $PATH and returns the path to the
304// Helm executable.
305func lookupHelm(t testing.TB) string {
306 helmPath, err := exec.LookPath("helm")
307 if err != nil {
308 t.Fatalf("helm not found in $PATH: %v", err)
309 return ""
310 }
311 t.Logf("Using helm at %q", helmPath)
312 return helmPath
313}
314
315func TestMain(m *testing.M) {
316 flag.Parse()

Callers 2

TestRenderChartFunction · 0.70
TestUpdateGoldenFilesFunction · 0.70

Calls 2

LogfMethod · 0.65
FatalfMethod · 0.45

Tested by

no test coverage detected