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

Function checkInvalidArgLiteral

ext/math.go:899–904  ·  view source on GitHub ↗
(funcName string, arg ast.Expr)

Source from the content-addressed store, hash-verified

897}
898
899func checkInvalidArgLiteral(funcName string, arg ast.Expr) error {
900 if !isNumericArgType(arg) {
901 return fmt.Errorf("%s simple literal arguments must be numeric", funcName)
902 }
903 return nil
904}
905
906func isNumericArgType(arg ast.Expr) bool {
907 switch arg.Kind() {

Callers 1

checkInvalidArgsFunction · 0.85

Calls 1

isNumericArgTypeFunction · 0.85

Tested by

no test coverage detected