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

Function WrapMessageOrDie

eval/tests/modern_benchmark_test.cc:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114template <typename T>
115Value WrapMessageOrDie(const T& message, google::protobuf::Arena* absl_nonnull arena) {
116 auto value = extensions::ProtoMessageToValue(
117 message, internal::GetTestingDescriptorPool(),
118 internal::GetTestingMessageFactory(), arena);
119 ABSL_CHECK_OK(value.status());
120 return std::move(value).value();
121}
122
123// Benchmark test
124// Evaluates cel expression:

Callers 3

ASSERT_OK_AND_ASSIGNFunction · 0.85
BM_HasProtoFunction · 0.85
BM_HasProtoMapFunction · 0.85

Calls 2

ProtoMessageToValueFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected