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

Function makeCopyFromTestData

bolt/expression/tests/ArrayWriterTest.cpp:562–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

560}
561
562auto makeCopyFromTestData() {
563 std::vector<std::unordered_map<int64_t, int64_t>> data;
564
565 data.clear();
566 data.resize(10);
567 for (auto i = 0; i < data.size(); i++) {
568 auto& map = data[i];
569 for (auto j = 0; j < i; j++) {
570 map.emplace(i, j + i);
571 }
572 }
573 return data;
574}
575
576template <typename T>
577struct CopyFromFunc {

Callers 2

callMethod · 0.70
TEST_FFunction · 0.70

Calls 4

clearMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected