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

Function checkInvalidArgs

ext/math.go:889–897  ·  view source on GitHub ↗
(meh cel.MacroExprFactory, funcName string, args []ast.Expr)

Source from the content-addressed store, hash-verified

887}
888
889func checkInvalidArgs(meh cel.MacroExprFactory, funcName string, args []ast.Expr) *cel.Error {
890 for _, arg := range args {
891 err := checkInvalidArgLiteral(funcName, arg)
892 if err != nil {
893 return meh.NewError(arg.ID(), err.Error())
894 }
895 }
896 return nil
897}
898
899func checkInvalidArgLiteral(funcName string, arg ast.Expr) error {
900 if !isNumericArgType(arg) {

Callers 2

mathLeastFunction · 0.85
mathGreatestFunction · 0.85

Calls 4

checkInvalidArgLiteralFunction · 0.85
NewErrorMethod · 0.65
IDMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected