MCPcopy Create free account

hub / github.com/cel-expr/cel-go / functions

Functions9,178 in github.com/cel-expr/cel-go

MethodEstimateCallCost
(string, string, *cost.AstNode, []cost.AstNode)
common/cost/optional_cost_test.go:64
MethodEstimateCallCost
(function, overloadID string, target *AstNode, args []AstNode)
common/cost/model_test.go:1365
MethodEstimateCallCost
EstimateCallCost implements the cost.Estimator interface, deferring to the library's own estimators, which are what these tests exist to check.
common/cost/cost_bounds_test.go:124
MethodEstimateCallCost
(function, overloadID string, target *AstNode, args []AstNode)
common/cost/estimator.go:1183
MethodEstimateCallCost
(function, overloadID string, target *cost.AstNode, args []cost.AstNode)
common/cost/cost_test.go:490
MethodEstimateCallCost
(function, overloadID string, target *cost.AstNode, args []cost.AstNode)
common/cost/cost_test.go:665
MethodEstimateCallCost
(function, overloadID string, target *checker.AstNode, args []checker.AstNode)
examples/example_cel_execution_cost_test.go:38
MethodEstimateSize
(element AstNode)
checker/cost_test.go:106
MethodEstimateSize
(element cost.AstNode)
ext/sets_test.go:601
MethodEstimateSize
(element cost.AstNode)
ext/strings_test.go:694
MethodEstimateSize
(cost.AstNode)
ext/security/hmac/hmac_test.go:1090
MethodEstimateSize
(element cost.AstNode)
cel/cost_k8s_test.go:941
MethodEstimateSize
(node cost.AstNode)
cel/cost_k8s_test.go:998
MethodEstimateSize
(element cost.AstNode)
cel/cel_test.go:5163
MethodEstimateSize
(node AstNode)
common/cost/aggregate_strategy_test.go:92
MethodEstimateSize
(node AstNode)
common/cost/aggregate_strategy_test.go:108
MethodEstimateSize
(ctx cost.EstimateContext, node cost.AstNode)
common/cost/tracker_test.go:375
MethodEstimateSize
(_ EstimateContext, _ AstNode)
common/cost/version_test.go:28
MethodEstimateSize
(_ AstNode)
common/cost/version_test.go:41
MethodEstimateSize
EstimateSize computes the size estimate for an AST node during cost estimation.
common/cost/default_strategy.go:35
MethodEstimateSize
EstimateSize computes recursive aggregate size estimates for an AST node during cost estimation.
common/cost/aggregate_strategy.go:66
MethodEstimateSize
(node cost.AstNode)
common/cost/optional_cost_test.go:49
MethodEstimateSize
EstimateSize computes the size estimate for an AST node during cost estimation. For lists and maps, the returned SizeEstimate can recursively include
common/cost/strategy.go:25
MethodEstimateSize
(ctx EstimateContext, node AstNode)
common/cost/model_test.go:1284
MethodEstimateSize
(EstimateContext, AstNode)
common/cost/model_test.go:1322
MethodEstimateSize
(node AstNode)
common/cost/model_test.go:1353
MethodEstimateSize
EstimateSize implements the cost.Estimator interface.
common/cost/cost_bounds_test.go:114
MethodEstimateSize
(element AstNode)
common/cost/estimator.go:1176
MethodEstimateSize
(element cost.AstNode)
common/cost/cost_test.go:482
MethodEstimateSize
(element cost.AstNode)
common/cost/cost_test.go:653
MethodEstimateSize
(ctx cost.EstimateContext, node cost.AstNode)
common/cost/cost_test.go:2231
MethodEstimateSize
(element checker.AstNode)
examples/example_cel_execution_cost_test.go:31
MethodEstimator
Estimator returns the user-provided Estimator, if configured.
common/cost/model.go:50
MethodEstimator
()
common/cost/model_test.go:75
MethodEstimator
()
common/cost/model_test.go:629
MethodEval
(vars Activation)
interpreter/interpreter_test.go:3091
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:272
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:337
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:394
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:446
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:496
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:561
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:602
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:678
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:767
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:871
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:924
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1100
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1218
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1325
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1425
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1458
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1477
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1541
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1677
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1733
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1789
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1828
MethodEval
Eval implements the Interpretable interface method.
interpreter/interpretable.go:1881
MethodEval
Eval implements the Interpretable Eval function.
interpreter/interpretable.go:1932
MethodEval
(ctx Activation)
interpreter/runtimecost.go:134
MethodEval
Eval evaluates the left-hand side optional to determine whether it contains a value, else proceeds with the right-hand side evaluation.
cel/library.go:1042
MethodEval
Eval evaluates the left-hand side optional to determine whether it contains a value, else proceeds with the right-hand side evaluation.
cel/library.go:1078
FunctionExample
()
cel/cel_example_test.go:27
FunctionExample_cel_Arithmetic
Example_cel_Arithmetic showcases negation, basic operations, modulo, and precedence as documented in https://celbyexample.com/arithmetic/
examples/example_cel_operators_test.go:26
FunctionExample_cel_Collections
Example_cel_Collections showcases membership, indexing, search (exists), all, and filter on complex collections as documented in https://celbyexample.
examples/example_cel_collections_test.go:26
FunctionExample_cel_CommonErrors
Example_cel_CommonErrors showcases handling common runtime errors (division by zero, index out of bounds, missing key) as documented in https://celbye
examples/example_cel_advanced_test.go:25
FunctionExample_cel_Comparison
Example_cel_Comparison showcases equality and ordering comparison operators as documented in https://celbyexample.com/comparison/
examples/example_cel_operators_test.go:63
FunctionExample_cel_Compile
Example_cel_Compile showcases compiling a CEL expression with variable declarations
examples/example_cel_compile_test.go:26
FunctionExample_cel_Compile_options
Example_cel_Compile_options showcases cel.Compile with extension options and multiple variables
examples/example_cel_compile_test.go:46
FunctionExample_cel_ContextEval
Example_cel_ContextEval showcases evaluation cancellation and timeout using ContextEval
examples/example_cel_context_eval_test.go:26
FunctionExample_cel_CustomFunctions
Example_cel_CustomFunctions showcases type safety and receiver syntax for custom functions
examples/example_cel_custom_functions_test.go:107
FunctionExample_cel_CustomMacros
Example_cel_CustomMacros showcases defining custom AST transformation macros as documented in https://celbyexample.com/custom-macros/
examples/example_cel_custom_macros_test.go:31
FunctionExample_cel_ExecutionCost
Example_cel_ExecutionCost showcases static cost estimation with size hints and dynamic cost limits as documented in https://celbyexample.com/execution
examples/example_cel_execution_cost_test.go:50
FunctionExample_cel_Lists
Example_cel_Lists showcases list literals, indexing, membership, concatenation, and equality as documented in https://celbyexample.com/lists/
examples/example_cel_collections_test.go:88
FunctionExample_cel_LogicAndConditions
Example_cel_LogicAndConditions showcases logical operators, conditional (ternary) operator, and evaluation on user data as documented in https://celby
examples/example_cel_logic_and_conditions_test.go:26
FunctionExample_cel_LogicalOperators
Example_cel_LogicalOperators showcases logical AND, OR, NOT, and short-circuiting as documented in https://celbyexample.com/logical-operators/
examples/example_cel_logic_and_conditions_test.go:62
FunctionExample_cel_Macros
Example_cel_Macros showcases built-in CEL macros (has, all, exists, exists_one, filter, map) as documented in https://celbyexample.com/has/, /all/, /e
examples/example_cel_transforming_data_test.go:73
FunctionExample_cel_Maps
Example_cel_Maps showcases map literals, size, field/key access, membership, and comparison as documented in https://celbyexample.com/maps/
examples/example_cel_collections_test.go:137
FunctionExample_cel_MemberOverload
Example_cel_MemberOverload showcases defining custom receiver/member functions with cel.MemberOverload as documented in https://celbyexample.com/custo
examples/example_cel_custom_functions_test.go:62
FunctionExample_cel_NameResolution
Example_cel_NameResolution showcases scope resolution order and macro variable shadowing as documented in https://celbyexample.com/name-resolution/
examples/example_cel_advanced_test.go:60
FunctionExample_cel_NativeTypes
Example_cel_NativeTypes showcases evaluating Go native structs using ext.NativeTypes() with json struct tags
examples/example_cel_native_structs_test.go:28
FunctionExample_cel_NativeTypes_structTags
Example_cel_NativeTypes_structTags showcases mapping struct field names via cel tags
examples/example_cel_native_structs_test.go:65
FunctionExample_cel_Null
Example_cel_Null showcases null literal and null equality checks as documented in https://celbyexample.com/null/
examples/example_cel_operators_test.go:100
FunctionExample_cel_Overload
Example_cel_Overload showcases defining custom global functions with cel.Overload as documented in https://celbyexample.com/custom-functions/
examples/example_cel_custom_functions_test.go:28
FunctionExample_cel_Primitives
Example_cel_Primitives showcases int, uint, double, bool, bytes, and string primitive literals as documented in https://celbyexample.com/primitives/
examples/example_cel_strings_and_numbers_test.go:147
FunctionExample_cel_ProtocolBuffers
Example_cel_ProtocolBuffers showcases evaluating protobuf messages, enum values, field presence (has), and default values as documented in https://cel
examples/example_cel_protocol_buffers_test.go:29
FunctionExample_cel_Strings
Example_cel_Strings showcases built-in string manipulation functions as documented in https://celbyexample.com/strings/
examples/example_cel_strings_and_numbers_test.go:73
FunctionExample_cel_StringsAndNumbers
Example_cel_StringsAndNumbers showcases string functions, concatenation, and numeric comparisons on user data as documented in https://celbyexample.co
examples/example_cel_strings_and_numbers_test.go:27
FunctionExample_cel_StringsExtension
Example_cel_StringsExtension showcases string extension library functions (ext.Strings()) as documented in https://celbyexample.com/strings/
examples/example_cel_strings_and_numbers_test.go:108
FunctionExample_cel_Ternary
Example_cel_Ternary showcases ternary conditional expressions as documented in https://celbyexample.com/ternary/
examples/example_cel_logic_and_conditions_test.go:95
FunctionExample_cel_Time
Example_cel_Time showcases timezones, timestamp components, and epoch conversions as documented in https://celbyexample.com/time/
examples/example_cel_time_test.go:67
FunctionExample_cel_TimestampsAndDurations
Example_cel_TimestampsAndDurations showcases timestamps, durations, arithmetic, and field access as documented in https://celbyexample.com/timestamps-
examples/example_cel_time_test.go:26
FunctionExample_cel_TransformingData
Example_cel_TransformingData showcases building maps, transforming lists with map(), filtering and transforming, and combining techniques as documente
examples/example_cel_transforming_data_test.go:26
FunctionExample_cel_TypeConversions
Example_cel_TypeConversions showcases type casting functions (int, uint, double, string, bytes, dyn) as documented in https://celbyexample.com/type-co
examples/example_cel_type_conversions_test.go:26
FunctionExample_cel_TypeIntrospection
Example_cel_TypeIntrospection showcases type identification using type(x) as documented in https://celbyexample.com/type-introspection/
examples/example_cel_type_conversions_test.go:65
FunctionExample_cel_WellKnownTypes
Example_cel_WellKnownTypes showcases wrapper types (StringValue, BoolValue) and google.protobuf.Struct as documented in https://celbyexample.com/well-
examples/example_cel_protocol_buffers_test.go:73
FunctionExample_globalOverload
()
cel/cel_example_test.go:74
FunctionExample_statefulOverload
()
cel/cel_example_test.go:122
MethodExec
(frame *ExecutionFrame)
interpreter/decorators.go:222
← previousnext →4,601–4,700 of 9,178, ranked by callers