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

Function TEST_F

test/serialization/test_map.cpp:19–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19TEST_F(MapTest, support_varint_element) {
20 using S = ::std::unordered_map<int, int>;
21 ASSERT_TRUE(SerializeTraits<S>::SERIALIZABLE);
22 S s;
23 for (size_t i = 0; i < gen() % 10; ++i) {
24 s.emplace(gen(), gen());
25 }
26 ASSERT_TRUE(Serialization::serialize_to_string(s, string));
27 S ss;
28 ASSERT_TRUE(Serialization::parse_from_string(string, ss));
29 ASSERT_EQ(s, ss);
30}
31
32TEST_F(MapTest, support_fixed_element) {
33 using S = ::std::unordered_map<float, float>;

Callers

nothing calls this directly

Calls 1

emplaceMethod · 0.45

Tested by

no test coverage detected