MCPcopy Create free account
hub / github.com/apache/brpc / TEST_F

Function TEST_F

test/brpc_repeated_field_unittest.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26};
27
28TEST_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}

Callers

nothing calls this directly

Calls 2

ProtoMessageToJsonFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected