MCPcopy
hub / github.com/argoproj/argo-workflows / TestCustomTemplateVariable

Function TestCustomTemplateVariable

workflow/validate/validate_test.go:1463–1467  ·  view source on GitHub ↗

TestCustomTemplateVariable verifies custom template variable

(t *testing.T)

Source from the content-addressed store, hash-verified

1461
1462// TestCustomTemplateVariable verifies custom template variable
1463func TestCustomTemplateVariable(t *testing.T) {
1464 wf := unmarshalWf(customVariableInput)
1465 err := ValidateWorkflow(logging.TestContext(t.Context()), wftmplGetter, cwftmplGetter, wf, nil, ValidateOpts{Lint: true})
1466 require.NoError(t, err)
1467}
1468
1469var templateRefTarget = `
1470apiVersion: argoproj.io/v1alpha1

Callers

nothing calls this directly

Calls 4

TestContextFunction · 0.92
unmarshalWfFunction · 0.85
ValidateWorkflowFunction · 0.85
ContextMethod · 0.65

Tested by

no test coverage detected