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

Function TEST_F

test/serialization/test_array.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36TEST_F(ArrayTest, serializable_with_salar_element) {
37 ASSERT_TRUE(SerializeTraits<int[4]>::SERIALIZABLE);
38 int a[4] = {10010, 10086, 0, 0};
39 ASSERT_TRUE(Serialization::serialize_to_string(a, string));
40 int aa[4] = {-1, -1, -1, -1};
41 ASSERT_TRUE(Serialization::parse_from_string(string, aa));
42 assert_eq(a, aa);
43}
44
45TEST_F(ArrayTest, support_varint_element) {
46 using S = int[4];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected