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

Function TEST_F

test/serialization/test_vector.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected