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

Function validateWorkflowTemplate

workflow/validate/validate_test.go:55–59  ·  view source on GitHub ↗

validateWorkflowTemplate is a test helper to accept WorkflowTemplate YAML as a string and return its validation result.

(ctx context.Context, yamlStr string, opts ValidateOpts)

Source from the content-addressed store, hash-verified

53// validateWorkflowTemplate is a test helper to accept WorkflowTemplate YAML as a string and return
54// its validation result.
55func validateWorkflowTemplate(ctx context.Context, yamlStr string, opts ValidateOpts) error {
56 wftmpl := unmarshalWftmpl(yamlStr)
57 err := ValidateWorkflowTemplate(ctx, wftmplGetter, cwftmplGetter, wftmpl, nil, opts)
58 return err
59}
60
61func unmarshalWf(yamlStr string) *wfv1.Workflow {
62 var wf wfv1.Workflow

Calls 2

ValidateWorkflowTemplateFunction · 0.85
unmarshalWftmplFunction · 0.70

Tested by

no test coverage detected