MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / TEST_F

Function TEST_F

rtpose_wrapper/src/caffe/test/test_protobuf.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14class ProtoTest : public ::testing::Test {};
15
16TEST_F(ProtoTest, TestSerialization) {
17 LayerParameter param;
18 param.set_name("test");
19 param.set_type("Test");
20 std::cout << "Printing in binary format." << std::endl;
21 std::cout << param.SerializeAsString() << std::endl;
22 std::cout << "Printing in text format." << std::endl;
23 std::string str;
24 google::protobuf::TextFormat::PrintToString(param, &str);
25 std::cout << str << std::endl;
26 EXPECT_TRUE(true);
27}
28
29} // namespace caffe

Callers

nothing calls this directly

Calls 1

PrintToStringFunction · 0.85

Tested by

no test coverage detected