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

Function TEST_F

test/serialization/test_set.cpp:19–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17};
18
19TEST_F(SetTest, support_varint_element) {
20 using S = ::std::unordered_set<int>;
21 ASSERT_TRUE(SerializeTraits<S>::SERIALIZABLE);
22 ::std::vector<int> sample(gen() % 10, gen());
23 S s(sample.begin(), sample.end());
24 ASSERT_TRUE(Serialization::serialize_to_string(s, string));
25 S ss;
26 ASSERT_TRUE(Serialization::parse_from_string(string, ss));
27 ASSERT_EQ(s, ss);
28}
29
30TEST_F(SetTest, support_fixed_element) {
31 using S = ::std::unordered_set<float>;

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected