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

Function CreateLegacyActivationFromBindings

testing/testrunner/runner_lib.cc:262–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262absl::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
276bool IsEqual(const ValueProto& expected, const ValueProto& actual) {
277 static auto* kFieldComparator = []() {

Callers

nothing calls this directly

Tested by

no test coverage detected