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

Function TEST

cpp/src/parquet/chunker_internal_test.cc:265–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265TEST(TestGenerateArray, Integer) {
266 auto field = ::arrow::field("a", ::arrow::int32());
267 ASSERT_OK_AND_ASSIGN(auto array, GenerateArray(field, /*length=*/10, /*seed=*/0));
268 ASSERT_OK(array->ValidateFull());
269 ASSERT_EQ(array->length(), 10);
270 ASSERT_TRUE(array->type()->Equals(::arrow::int32()));
271 ASSERT_EQ(array->null_count(), 1);
272}
273
274TEST(TestGenerateArray, ListOfInteger) {
275 auto field = ::arrow::field("a", ::arrow::list(::arrow::int32()));

Callers

nothing calls this directly

Calls 14

listFunction · 0.85
FindDifferencesFunction · 0.85
GenerateArrayFunction · 0.70
fieldFunction · 0.50
ValidateFullMethod · 0.45
lengthMethod · 0.45
EqualsMethod · 0.45
typeMethod · 0.45
null_countMethod · 0.45
IsNullMethod · 0.45
IsValidMethod · 0.45
value_lengthMethod · 0.45

Tested by

no test coverage detected