| 151 | } |
| 152 | |
| 153 | absl::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 | |
| 168 | absl::StatusOr<cel::Value> ResolveInputValue(const InputValue& input_value, |
| 169 | const CelTestContext& context, |
no test coverage detected