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

Function lookupHelm

helm/provisioner/tests/chart_test.go:251–259  ·  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

249// lookupHelm ensures that Helm is available in $PATH and returns the path to the
250// Helm executable.
251func lookupHelm(t testing.TB) string {
252 helmPath, err := exec.LookPath("helm")
253 if err != nil {
254 t.Fatalf("helm not found in $PATH: %v", err)
255 return ""
256 }
257 t.Logf("Using helm at %q", helmPath)
258 return helmPath
259}
260
261func TestMain(m *testing.M) {
262 flag.Parse()

Callers 2

TestRenderChartFunction · 0.70
TestUpdateGoldenFilesFunction · 0.70

Calls 2

LogfMethod · 0.65
FatalfMethod · 0.45

Tested by

no test coverage detected