| 229 | } |
| 230 | |
| 231 | absl::Status AddCustomBindingsToLegacyActivation(const CelTestContext& context, |
| 232 | Activation& activation, |
| 233 | google::protobuf::Arena* arena) { |
| 234 | for (const auto& binding : context.custom_bindings()) { |
| 235 | CEL_ASSIGN_OR_RETURN( |
| 236 | LegacyCelValue value, |
| 237 | ValueToCelValue(/*value_proto=*/binding.second, arena)); |
| 238 | activation.InsertValue(/*name=*/binding.first, value); |
| 239 | } |
| 240 | return absl::OkStatus(); |
| 241 | } |
| 242 | |
| 243 | absl::Status AddTestCaseBindingsToLegacyActivation( |
| 244 | const TestCase& test_case, const CelTestContext& context, |
no test coverage detected