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

Function TEST_F

bolt/exec/tests/OperatorUtilsTest.cpp:208–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206 std::unique_ptr<DriverCtx> driverCtx_;
207};
208
209TEST_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
224TEST_F(OperatorUtilsTest, gatherCopy) {

Callers

nothing calls this directly

Calls 15

allocateIndicesFunction · 0.85
wrapChildFunction · 0.85
reverseFunction · 0.85
ARRAYFunction · 0.85
ROWFunction · 0.85
MAPFunction · 0.85
UNKNOWNFunction · 0.85
gatherCopyFunction · 0.85
makeOperatorSpillPathFunction · 0.85
wrapAndCombineDictFunction · 0.85
addOperatorRuntimeStatsFunction · 0.85

Tested by

no test coverage detected