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

Function TestTraceableError_SimpleForm

pkg/engine/engine_test.go:1462–1475  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1460}
1461
1462func TestTraceableError_SimpleForm(t *testing.T) {
1463 testStrings := []string{
1464 "function_not_found/templates/secret.yaml: error calling include",
1465 }
1466 for _, errString := range testStrings {
1467 trace, done := parseTemplateSimpleErrorString(errString)
1468 if !done {
1469 t.Error("Expected parse to pass but did not")
1470 }
1471 if trace.message != "error calling include" {
1472 t.Errorf("Expected %q, got %q", errString, trace.message)
1473 }
1474 }
1475}
1476func TestTraceableError_ExecutingForm(t *testing.T) {
1477 testStrings := [][]string{
1478 {"function_not_found/templates/secret.yaml:6:11: executing \"function_not_found/templates/secret.yaml\" at <include \"name\" .>: ", "function_not_found/templates/secret.yaml:6:11"},

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…