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

Method MaybeWrapValue

eval/public/structs/cel_proto_wrapper.cc:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48absl::optional<CelValue> CelProtoWrapper::MaybeWrapValue(
49 const Descriptor* descriptor, google::protobuf::MessageFactory* factory,
50 const CelValue& value, Arena* arena) {
51 const Message* msg =
52 internal::MaybeWrapValueToMessage(descriptor, factory, value, arena);
53 if (msg != nullptr) {
54 return InternalWrapMessage(msg);
55 } else {
56 return absl::nullopt;
57 }
58}
59
60} // namespace google::api::expr::runtime

Callers

nothing calls this directly

Calls 1

MaybeWrapValueToMessageFunction · 0.85

Tested by

no test coverage detected