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

Function TEST

cpp/src/parquet/chunker_internal_test.cc:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270TEST(TestGenerateArray, Integer) {
271 auto field = ::arrow::field("a", ::arrow::int32());
272 ASSERT_OK_AND_ASSIGN(auto array, GenerateArray(field, /*length=*/10, /*seed=*/0));
273 ASSERT_OK(array->ValidateFull());
274 ASSERT_EQ(array->length(), 10);
275 ASSERT_TRUE(array->type()->Equals(::arrow::int32()));
276 ASSERT_EQ(array->null_count(), 1);
277}
278
279TEST(TestGenerateArray, ListOfInteger) {
280 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