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

Function AssertChunkedEquivalent

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

Source from the content-addressed store, hash-verified

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