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
()
| 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. |
| 48 | func (m OverloadModel) Validate() error { |
| 49 | return m.validate(false) |
| 50 | } |
| 51 | |
| 52 | func (m OverloadModel) validate(inPrior bool) error { |
| 53 | if m.ID == "" { |