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

Function AddCustomBindingsToLegacyActivation

testing/testrunner/runner_lib.cc:231–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231absl::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
243absl::Status AddTestCaseBindingsToLegacyActivation(
244 const TestCase& test_case, const CelTestContext& context,

Callers 1

Calls 1

InsertValueMethod · 0.80

Tested by

no test coverage detected