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

Method TestWrapMessage

eval/eval/select_step_test.cc:1068–1073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066 : type_provider_(cel::internal::GetTestingDescriptorPool()) {}
1067
1068 cel::Value TestWrapMessage(const google::protobuf::Message* message) {
1069 CelValue value = CelProtoWrapper::CreateMessage(message, &arena_);
1070 auto result = cel::interop_internal::FromLegacyValue(&arena_, value);
1071 ABSL_DCHECK_OK(result.status());
1072 return std::move(result).value();
1073 }
1074
1075 std::vector<std::string> AttributeStrings(const UnknownValue& v) {
1076 std::vector<std::string> result;

Callers

nothing calls this directly

Calls 2

FromLegacyValueFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected