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

Function TEST_F

bolt/exec/tests/FilterProjectTest.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74 std::shared_ptr<LazyVector> assertDuplicateIdentityProjectionOverLazy(
75 const std::string& filter,
76 vector_size_t expectedLoadSize,
77 std::function<vector_size_t(vector_size_t)> expectedRowAt) {
78 constexpr vector_size_t size = 100;
79 auto valueAt = [](auto row) -> int32_t { return row; };
80 std::optional<std::function<vector_size_t(vector_size_t)>>
81 expectedRowAtOptional{std::move(expectedRowAt)};
82 auto lazyVector = makeLazyFlatVector<int32_t>(
83 size,
84 valueAt,
85 [](vector_size_t /*row*/) { return false; },
86 expectedLoadSize,
87 expectedRowAtOptional);
88 auto lazyVectors = makeRowVector({

Callers

nothing calls this directly

Calls 15

wrapInDictionaryFunction · 0.85
PlanBuilderClass · 0.85
assertQueryFunction · 0.85
toPlanStatsFunction · 0.85
childAtMethod · 0.80
projectMethod · 0.80
assertEmptyResultsMethod · 0.80
taskStatsMethod · 0.80
createFunction · 0.50
AssertQueryBuilderClass · 0.50
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected