(t *testing.T)
| 1460 | } |
| 1461 | |
| 1462 | func 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 | } |
| 1476 | func 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"}, |
nothing calls this directly
no test coverage detected
searching dependent graphs…