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

Method emptyTest

bolt/expression/tests/ArrayViewTest.cpp:255–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 }
254
255 void emptyTest() {
256 auto arrayVector = makeNullableArrayVector<int32_t>({{}, {2, 3}});
257 DecodedVector decoded;
258 exec::VectorReader<Array<int32_t>> reader(
259 decode(decoded, *arrayVector.get()));
260 ASSERT_TRUE(read(reader, 0).empty());
261 ASSERT_FALSE(read(reader, 1).empty());
262 }
263
264 void iteratorSubscriptTest() {
265 std::vector<std::vector<std::optional<int32_t>>> intArray{

Callers

nothing calls this directly

Calls 4

decodeFunction · 0.70
readFunction · 0.50
getMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected