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

Function TEST_P

cpp/src/arrow/array/array_run_end_test.cc:82–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80};
81
82TEST_P(TestRunEndEncodedArray, MakeArray) {
83 ASSERT_OK_AND_ASSIGN(auto ree_array,
84 RunEndEncodedArray::Make(30, int32_values, string_values));
85 auto array_data = ree_array->data();
86 auto new_array = MakeArray(array_data);
87 ASSERT_ARRAYS_EQUAL(*new_array, *ree_array);
88 // Should be the exact same ArrayData object
89 ASSERT_EQ(new_array->data(), array_data);
90 ASSERT_NE(std::dynamic_pointer_cast<RunEndEncodedArray>(new_array), NULLPTR);
91}
92
93TEST_P(TestRunEndEncodedArray, FromRunEndsAndValues) {
94 std::shared_ptr<RunEndEncodedArray> ree_array;

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
default_memory_poolFunction · 0.85
to_stringFunction · 0.85
run_end_encodedFunction · 0.85
MakeScalarFunction · 0.85
MakeNullScalarFunction · 0.85
ConcatenateFunction · 0.85
FindPhysicalOffsetMethod · 0.80
FindPhysicalLengthMethod · 0.80
LogicalRunEndsMethod · 0.80
push_backMethod · 0.80
emplace_backMethod · 0.80

Tested by

no test coverage detected