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

Function AssertConvertedArray

cpp/src/arrow/flight/sql/odbc/odbc_impl/util_test.cc:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 ::testing::AddGlobalTestEnvironment(new ComputeKernelEnvironment);
42
43void AssertConvertedArray(const std::shared_ptr<Array>& expected_array,
44 const std::shared_ptr<Array>& converted_array, uint64_t size,
45 Type::type arrow_type) {
46 ASSERT_EQ(converted_array->type_id(), arrow_type);
47 ASSERT_EQ(converted_array->length(), size);
48 ASSERT_EQ(expected_array->ToString(), converted_array->ToString());
49}
50
51std::shared_ptr<Array> convertArray(const std::shared_ptr<Array>& original_array,
52 CDataType c_type) {

Callers 3

TestArrayConversionFunction · 0.85

Calls 3

type_idMethod · 0.45
lengthMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected