MCPcopy Create free account
hub / github.com/goadesign/goa / Merge

Method Merge

eval/eval.go:162–168  ·  view source on GitHub ↗

Merge merges validation errors into the target.

(err *ValidationErrors)

Source from the content-addressed store, hash-verified

160
161// Merge merges validation errors into the target.
162func (verr *ValidationErrors) Merge(err *ValidationErrors) {
163 if err == nil {
164 return
165 }
166 verr.Errors = append(verr.Errors, err.Errors...)
167 verr.Expressions = append(verr.Expressions, err.Expressions...)
168}
169
170// Add adds a validation error to the target.
171func (verr *ValidationErrors) Add(def Expression, format string, vals ...any) {

Callers 2

ValidateMethod · 0.95
TestValidationErrorsFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestValidationErrorsFunction · 0.76