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

Function TEST_F

bolt/exec/tests/RowContainerTest.cpp:731–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729} // namespace
730
731TEST_F(RowContainerTest, storeExtractArrayOfVarchar) {
732 // Make a string vector with two rows each having 2 elements.
733 // Here it is important, that one of the 1st row's elements has more than 12
734 // characters (14 and 13 in this case), since 12 is the number of chars being
735 // inlined in the String View.
736 bytedance::bolt::test::VectorMaker vectorMaker{pool_.get()};
737 std::vector<std::string> strings{
738 "aaaaaaaaaaaaaa", "bbbbbbbbbbbbb", "cccccccc", "ddddd"};
739 std::vector<std::vector<StringView>> elements(2);
740 elements[0].emplace_back(strings[0]);
741 elements[0].emplace_back(strings[1]);
742 elements[1].emplace_back(strings[2]);
743 elements[1].emplace_back(strings[3]);
744 auto input = vectorMaker.arrayVector<StringView>(elements);
745 roundTrip(input);
746}
747
748TEST_F(RowContainerTest, storeExtractArrayOfBigint) {
749 // Make a string vector with two rows each having 2 elements.

Callers

nothing calls this directly

Calls 15

roundTripFunction · 0.85
makeRowContainerFunction · 0.85
ARRAYFunction · 0.85
MAPFunction · 0.85
ROWFunction · 0.85
UNKNOWNFunction · 0.85
hashMixFunction · 0.85
nextOffsetMethod · 0.80
probedFlagOffsetMethod · 0.80
backMethod · 0.80
eraseRowsMethod · 0.80
rowSizeOffsetMethod · 0.80

Tested by

no test coverage detected