MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/arrow/util/byte_size_test.cc:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace util {
39
40TEST(TotalBufferSize, Arrays) {
41 std::shared_ptr<Array> no_nulls = ArrayFromJSON(int16(), "[1, 2, 3]");
42 ASSERT_EQ(6, TotalBufferSize(*no_nulls->data()));
43
44 std::shared_ptr<Array> with_nulls =
45 ArrayFromJSON(int16(), "[1, 2, 3, 4, null, 6, 7, 8, 9]");
46 ASSERT_EQ(20, TotalBufferSize(*with_nulls->data()));
47}
48
49TEST(TotalBufferSize, NestedArray) {
50 std::shared_ptr<Array> array_with_children =

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
TotalBufferSizeFunction · 0.85
listFunction · 0.85
CheckFixedWidthStartsFunction · 0.85
CheckBufferRangesFunction · 0.85
fixed_size_binaryFunction · 0.85
fixed_size_listFunction · 0.85
mapFunction · 0.85
dense_unionFunction · 0.85
sparse_unionFunction · 0.85
ExampleUuidFunction · 0.85
MakeArrayOfNullFunction · 0.85

Tested by

no test coverage detected