| 14 | class ProtoTest : public ::testing::Test {}; |
| 15 | |
| 16 | TEST_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 |
nothing calls this directly
no test coverage detected