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

Function ResolveExpr

testing/testrunner/runner_lib.cc:153–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153absl::StatusOr<cel::Value> ResolveExpr(absl::string_view expr,
154 const CelTestContext& context,
155 google::protobuf::Arena* arena) {
156 CEL_ASSIGN_OR_RETURN(CheckedExpr checked_expr, Compile(expr, context));
157 if (context.runtime() != nullptr) {
158 cel::Activation empty_activation;
159 return EvalWithModernBindings(checked_expr, context, empty_activation,
160 arena);
161 } else {
162 Activation empty_activation;
163 return EvalWithLegacyBindings(checked_expr, context, empty_activation,
164 arena);
165 }
166}
167
168absl::StatusOr<cel::Value> ResolveInputValue(const InputValue& input_value,
169 const CelTestContext& context,

Callers 1

ResolveInputValueFunction · 0.85

Calls 3

EvalWithModernBindingsFunction · 0.85
EvalWithLegacyBindingsFunction · 0.85
runtimeMethod · 0.80

Tested by

no test coverage detected