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

Function TEST

cpp/src/arrow/array/concatenate_test.cc:234–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232};
233
234TEST(ConcatenateEmptyArraysTest, TestValueBuffersNullPtr) {
235 ArrayVector inputs;
236
237 std::shared_ptr<Array> binary_array;
238 BinaryBuilder builder;
239 ASSERT_OK(builder.Finish(&binary_array));
240 inputs.push_back(std::move(binary_array));
241
242 builder.Reset();
243 ASSERT_OK(builder.AppendNull());
244 ASSERT_OK(builder.Finish(&binary_array));
245 inputs.push_back(std::move(binary_array));
246
247 ASSERT_OK_AND_ASSIGN(auto actual, Concatenate(inputs));
248 AssertArraysEqual(*actual, *inputs[1]);
249}
250
251template <typename PrimitiveType>
252class PrimitiveConcatenateTest : public ConcatenateTest {

Callers

nothing calls this directly

Calls 5

AssertArraysEqualFunction · 0.85
push_backMethod · 0.80
FinishMethod · 0.45
ResetMethod · 0.45
AppendNullMethod · 0.45

Tested by

no test coverage detected