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

Function CompareArraysDetailed

cpp/src/arrow/ipc/test_common.cc:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59namespace test {
60
61void CompareArraysDetailed(int index, const Array& result, const Array& expected) {
62 if (!expected.Equals(result)) {
63 std::stringstream pp_result;
64 std::stringstream pp_expected;
65
66 ASSERT_OK(PrettyPrint(expected, 0, &pp_expected));
67 ASSERT_OK(PrettyPrint(result, 0, &pp_result));
68
69 FAIL() << "Index: " << index << " Expected: " << pp_expected.str()
70 << "\nGot: " << pp_result.str();
71 }
72}
73
74void CompareBatchColumnsDetailed(const RecordBatch& result, const RecordBatch& expected) {
75 for (int i = 0; i < expected.num_columns(); ++i) {

Callers 2

TestArrayRoundTripFunction · 0.85

Calls 3

strMethod · 0.80
PrettyPrintFunction · 0.50
EqualsMethod · 0.45

Tested by

no test coverage detected