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

Function AssertChunkedEquivalent

cpp/src/arrow/testing/gtest_util.cc:189–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void AssertChunkedEquivalent(const ChunkedArray& expected, const ChunkedArray& actual,
190 const EqualOptions& options) {
191 // XXX: AssertChunkedEqual in gtest_util.h does not permit the chunk layouts
192 // to be different
193 if (!actual.Equals(expected, options)) {
194 std::stringstream pp_expected;
195 std::stringstream pp_actual;
196 ::arrow::PrettyPrintOptions options(/*indent=*/2);
197 options.window = 50;
198 ARROW_EXPECT_OK(PrettyPrint(expected, options, &pp_expected));
199 ARROW_EXPECT_OK(PrettyPrint(actual, options, &pp_actual));
200 FAIL() << "Got: \n" << pp_actual.str() << "\nExpected: \n" << pp_expected.str();
201 }
202}
203
204void AssertChunkedApproxEquivalent(const ChunkedArray& expected,
205 const ChunkedArray& actual,

Callers 4

AssertOutputsEqualMethod · 0.85
AssertDatumsEqualFunction · 0.85
DoTestMethod · 0.85

Calls 3

strMethod · 0.80
PrettyPrintFunction · 0.50
EqualsMethod · 0.45

Tested by

no test coverage detected