| 26 | }; |
| 27 | |
| 28 | TEST_F(RepeatedFieldTest, empty_array) { |
| 29 | RepeatedMessage m; |
| 30 | std::string json; |
| 31 | |
| 32 | ASSERT_TRUE(json2pb::ProtoMessageToJson(m, &json)); |
| 33 | std::cout << json << std::endl; |
| 34 | |
| 35 | m.add_strings(); |
| 36 | m.add_ints(1); |
| 37 | m.add_msgs(); |
| 38 | json.clear(); |
| 39 | ASSERT_TRUE(json2pb::ProtoMessageToJson(m, &json)); |
| 40 | std::cout << json << std::endl; |
| 41 | } |
nothing calls this directly
no test coverage detected