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

Method testFlat

bolt/vector/tests/DecodedVectorTest.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143
144 template <typename T>
145 void testFlat(
146 vector_size_t cardinality = 10010,
147 const TypePtr& type = CppToType<T>::create()) {
148 auto cardData = genTestData<T>(cardinality, type, true /* includeNulls */);
149 const auto& data = cardData.data();
150 EXPECT_EQ(cardinality, data.size());
151 auto flatVector = makeNullableFlatVector(data, type);
152 assertDecodedVector(data, flatVector.get(), false);
153 }
154
155 template <typename T>
156 void testConstant(const T& value) {

Callers

nothing calls this directly

Calls 4

createFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected