MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / Push100Nodes

Method Push100Nodes

tests/node_test.cpp:119–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 void Push100Nodes(NodeType& node, Allocator& a) {
120 node.SetArray();
121 for (int i = 0; i < 100; ++i) {
122 node.PushBack(NodeType(i), a);
123 }
124 EXPECT_EQ(100, node.Size());
125 }
126};
127
128using SAllocType = SimpleAllocator;

Callers

nothing calls this directly

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected