MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / EvalWithModernBindings

Function EvalWithModernBindings

testing/testrunner/runner_lib.cc:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121absl::StatusOr<cel::Value> EvalWithModernBindings(
122 const CheckedExpr& checked_expr, const CelTestContext& context,
123 const cel::Activation& activation, google::protobuf::Arena* arena) {
124 CEL_ASSIGN_OR_RETURN(std::unique_ptr<cel::Program> program,
125 Plan(checked_expr, context.runtime()));
126 return program->Evaluate(arena, activation);
127}
128
129absl::StatusOr<cel::Value> EvalWithLegacyBindings(
130 const CheckedExpr& checked_expr, const CelTestContext& context,

Callers 2

ResolveExprFunction · 0.85
EvalWithRuntimeMethod · 0.85

Calls 4

PlanFunction · 0.85
runtimeMethod · 0.80
CEL_ASSIGN_OR_RETURNFunction · 0.50
EvaluateMethod · 0.45

Tested by

no test coverage detected