Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
namespace {
38
void 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
46
TEST(VariantTest, arrayInferType) {
Callers
1
TEST
Function · 0.85
Calls
2
create
Function · 0.50
serialize
Method · 0.45
Tested by
no test coverage detected