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

Function checkInvalidArgs

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

Source from the content-addressed store, hash-verified

910}
911
912func checkInvalidArgs(meh cel.MacroExprFactory, funcName string, args []ast.Expr) *cel.Error {
913 for _, arg := range args {
914 err := checkInvalidArgLiteral(funcName, arg)
915 if err != nil {
916 return meh.NewError(arg.ID(), err.Error())
917 }
918 }
919 return nil
920}
921
922func checkInvalidArgLiteral(funcName string, arg ast.Expr) error {
923 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