| 260 | } |
| 261 | |
| 262 | absl::StatusOr<Activation> CreateLegacyActivationFromBindings( |
| 263 | const TestCase& test_case, const CelTestContext& context, |
| 264 | google::protobuf::Arena* arena) { |
| 265 | Activation activation; |
| 266 | |
| 267 | CEL_RETURN_IF_ERROR( |
| 268 | AddCustomBindingsToLegacyActivation(context, activation, arena)); |
| 269 | |
| 270 | CEL_RETURN_IF_ERROR(AddTestCaseBindingsToLegacyActivation(test_case, context, |
| 271 | activation, arena)); |
| 272 | |
| 273 | return activation; |
| 274 | } |
| 275 | |
| 276 | bool IsEqual(const ValueProto& expected, const ValueProto& actual) { |
| 277 | static auto* kFieldComparator = []() { |
nothing calls this directly
no test coverage detected