| 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 | }; |
nothing calls this directly
no test coverage detected