MCPcopy Create free account
hub / github.com/bytedance/bolt / testSerDe

Function testSerDe

bolt/type/tests/VariantTest.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37namespace {
38void testSerDe(const variant& value) {
39 auto serialized = value.serialize();
40 auto copy = variant::create(serialized);
41
42 ASSERT_EQ(value, copy);
43}
44} // namespace
45
46TEST(VariantTest, arrayInferType) {

Callers 1

TESTFunction · 0.85

Calls 2

createFunction · 0.50
serializeMethod · 0.45

Tested by

no test coverage detected