MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Validate

Method Validate

common/cost/validate.go:48–50  ·  view source on GitHub ↗

Validate reports whether the model is well-formed. A model is checked when it is registered, rather than when it is evaluated, because neither of the two evaluation paths can report a problem: an estimator has nowhere to return an error, and a tracker which cannot answer an expression would have to

()

Source from the content-addressed store, hash-verified

46// ElemTotal, KeyTotal and Length estimate a quantity from the size of a single value, so they are
47// defined over Arg, Target and Result only.
48func (m OverloadModel) Validate() error {
49 return m.validate(false)
50}
51
52func (m OverloadModel) validate(inPrior bool) error {
53 if m.ID == "" {

Callers

nothing calls this directly

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected