| 76 | } |
| 77 | |
| 78 | void TestOnlySelect(const StructValue& msg, const std::string& field, |
| 79 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
| 80 | google::protobuf::MessageFactory* absl_nonnull message_factory, |
| 81 | google::protobuf::Arena* absl_nonnull arena, |
| 82 | Value* absl_nonnull result) { |
| 83 | absl::StatusOr<bool> has_field = msg.HasFieldByName(field); |
| 84 | |
| 85 | if (!has_field.ok()) { |
| 86 | *result = ErrorValue(std::move(has_field).status()); |
| 87 | return; |
| 88 | } |
| 89 | *result = BoolValue{*has_field}; |
| 90 | } |
| 91 | |
| 92 | void TestOnlySelect(const MapValue& map, const StringValue& field_name, |
| 93 | const google::protobuf::DescriptorPool* absl_nonnull descriptor_pool, |
no test coverage detected