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

Function TEST_F

test/serialization/test_aggregate.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35 BABYLON_SERIALIZABLE((i, 1)(s, 2)(v, 3))
36};
37TEST_F(AggregateTest, support_basic_types) {
38 using S = BasicTypeSerializable;
39 ASSERT_TRUE(SerializeTraits<S>::SERIALIZABLE);
40 S s {gen};
41 ASSERT_TRUE(Serialization::serialize_to_string(s, string));
42 S ss;
43 ASSERT_TRUE(Serialization::parse_from_string(string, ss));
44 ASSERT_EQ(s, ss);
45}
46
47struct MemberCascadeSerializable {
48 MemberCascadeSerializable() = default;

Callers

nothing calls this directly

Calls 3

assignMethod · 0.80
emptyMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected