| 206 | std::unique_ptr<DriverCtx> driverCtx_; |
| 207 | }; |
| 208 | |
| 209 | TEST_F(OperatorUtilsTest, wrapChildConstant) { |
| 210 | auto constant = makeConstant(11, 1'000); |
| 211 | |
| 212 | BufferPtr mapping = allocateIndices(1'234, pool_.get()); |
| 213 | auto rawMapping = mapping->asMutable<vector_size_t>(); |
| 214 | for (auto i = 0; i < 1'234; i++) { |
| 215 | rawMapping[i] = i / 2; |
| 216 | } |
| 217 | |
| 218 | auto wrapped = exec::wrapChild(1'234, mapping, constant); |
| 219 | ASSERT_EQ(wrapped->size(), 1'234); |
| 220 | ASSERT_TRUE(wrapped->isConstantEncoding()); |
| 221 | ASSERT_TRUE(wrapped->equalValueAt(constant.get(), 100, 100)); |
| 222 | } |
| 223 | |
| 224 | TEST_F(OperatorUtilsTest, gatherCopy) { |
nothing calls this directly
no test coverage detected