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

Function TEST_F

bolt/expression/tests/ArrayWriterTest.cpp:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136};
137
138TEST_F(ArrayWriterTest, addNull) {
139 auto [result, vectorWriter] = makeTestWriter();
140
141 auto& arrayWriter = vectorWriter->current();
142 arrayWriter.add_null();
143 arrayWriter.add_null();
144 arrayWriter.add_null();
145
146 vectorWriter->commit();
147
148 auto expected = std::vector<std::vector<std::optional<int64_t>>>{
149 {std::nullopt, std::nullopt, std::nullopt}};
150 assertEqualVectors(result, makeNullableArrayVector(expected));
151}
152
153TEST_F(ArrayWriterTest, pushBackNull) {
154 auto [result, vectorWriter] = makeTestWriter();

Callers

nothing calls this directly

Calls 15

prepareResultFunction · 0.85
ArrayTypeClass · 0.85
fromMillisFunction · 0.85
evaluateFunction · 0.85
ensureWritableFunction · 0.85
ARRAYFunction · 0.85
add_nullMethod · 0.80
add_itemMethod · 0.80
add_itemsMethod · 0.80
has_valueMethod · 0.80
makeCopyFromTestDataFunction · 0.70
assertEqualVectorsFunction · 0.50

Tested by

no test coverage detected