Helper method. Creates simple pipeline containing Select step and runs it.
| 49 | |
| 50 | // Helper method. Creates simple pipeline containing Select step and runs it. |
| 51 | std::unique_ptr<FieldBackedMapTestImpl> CreateMap(const TestMessage* message, |
| 52 | const std::string& field, |
| 53 | google::protobuf::Arena* arena) { |
| 54 | const google::protobuf::FieldDescriptor* field_desc = |
| 55 | message->GetDescriptor()->FindFieldByName(field); |
| 56 | |
| 57 | return std::make_unique<FieldBackedMapTestImpl>(message, field_desc, arena); |
| 58 | } |
| 59 | |
| 60 | TEST(FieldBackedMapImplTest, BadKeyTypeTest) { |
| 61 | TestMessage message; |
no test coverage detected