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

Method testCompare

bolt/exec/tests/ContainerRowSerdeTest.cpp:203–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 }
202
203 void testCompare(const VectorPtr& vector) {
204 auto positions = serializeWithPositions(vector);
205
206 CompareFlags compareFlags =
207 CompareFlags::equality(CompareFlags::NullHandlingMode::kNullAsValue);
208
209 DecodedVector decodedVector(*vector);
210
211 for (auto i = 0; i < positions.size(); ++i) {
212 auto stream = HashStringAllocator::prepareRead(positions.at(i).header);
213 ASSERT_EQ(
214 0,
215 ContainerRowSerde::compare(*stream, decodedVector, i, compareFlags))
216 << "at " << i << ": " << vector->toString(i);
217 }
218 }
219
220 HashStringAllocator allocator_{pool()};
221};

Callers

nothing calls this directly

Calls 5

prepareReadFunction · 0.85
compareFunction · 0.50
sizeMethod · 0.45
atMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected