| 59 | namespace test { |
| 60 | |
| 61 | void 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 | |
| 74 | void CompareBatchColumnsDetailed(const RecordBatch& result, const RecordBatch& expected) { |
| 75 | for (int i = 0; i < expected.num_columns(); ++i) { |
no test coverage detected