MCPcopy Create free account
hub / github.com/baidu/babylon / TEST_F

Function TEST_F

test/serialization/test_string.cpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15};
16
17TEST_F(StringTest, serializable) {
18 using S = ::std::string;
19 ASSERT_TRUE(SerializeTraits<S>::SERIALIZABLE);
20 S s = ::std::to_string(gen());
21 ASSERT_TRUE(Serialization::serialize_to_string(s, string));
22 S ss;
23 ASSERT_TRUE(Serialization::parse_from_string(string, ss));
24 ASSERT_EQ(s, ss);
25}
26
27TEST_F(StringTest, empty_serialize_to_nothing) {
28 using S = ::std::string;

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected