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

Function TEST_F

bolt/expression/tests/ConstantFlatVectorReaderTest.cpp:68–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68TEST_F(ConstantFlatVectorReaderTest, flatContainsNoNulls) {
69 auto vector =
70 makeFlatVector<int32_t>(10, [](vector_size_t row) { return row * 2; });
71
72 FlatVectorReader<int32_t> reader1(*vector);
73 auto reader2 = this->makeConstantFlatVectorReader(vector);
74
75 testFlatContainsNoNulls(reader1, vector);
76 testFlatContainsNoNulls(reader2, vector);
77}
78
79template <typename T>
80void testFlatContainsNull(const T& reader, const VectorPtr& vector) {

Callers

nothing calls this directly

Calls 5

testFlatContainsNoNullsFunction · 0.85
testFlatContainsNullFunction · 0.85
testConstantFunction · 0.85
testConstantNullFunction · 0.85

Tested by

no test coverage detected