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

Method Add

eval/eval.go:171–173  ·  view source on GitHub ↗

Add adds a validation error to the target.

(def Expression, format string, vals ...any)

Source from the content-addressed store, hash-verified

169
170// Add adds a validation error to the target.
171func (verr *ValidationErrors) Add(def Expression, format string, vals ...any) {
172 verr.AddError(def, fmt.Errorf(format, vals...))
173}
174
175// AddError adds a validation error to the target. It "flattens" validation
176// errors so that the recorded errors are never ValidationErrors themselves.

Callers 15

ValidateMethod · 0.95
TestValidationErrorsFunction · 0.95
TestAdaptiveSamplerFunction · 0.80
TestConnectFunction · 0.80
ReadUDPFunction · 0.80
validateRequirementsMethod · 0.80
validateErrorsMethod · 0.80
ValidateMethod · 0.80
ValidateMethod · 0.80
ValidateMethod · 0.80
ValidateMethod · 0.80

Calls 1

AddErrorMethod · 0.95

Tested by 6

TestValidationErrorsFunction · 0.76
TestAdaptiveSamplerFunction · 0.64
TestConnectFunction · 0.64
TestRaceFunction · 0.64
TestStreamCancelerFunction · 0.64
TestRaceFunction · 0.64