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

Function AssertTsSame

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

Source from the content-addressed store, hash-verified

80
81template <typename T, typename CompareFunctor>
82void AssertTsSame(const T& expected, const T& actual, CompareFunctor&& compare) {
83 if (!compare(actual, expected)) {
84 std::stringstream pp_expected;
85 std::stringstream pp_actual;
86 ::arrow::PrettyPrintOptions options(/*indent=*/2);
87 options.window = 50;
88 ARROW_EXPECT_OK(PrettyPrint(expected, options, &pp_expected));
89 ARROW_EXPECT_OK(PrettyPrint(actual, options, &pp_actual));
90 FAIL() << "Got: \n" << pp_actual.str() << "\nExpected: \n" << pp_expected.str();
91 }
92}
93
94template <typename CompareFunctor>
95void AssertArraysEqualWith(const Array& expected, const Array& actual, bool verbose,

Callers 2

AssertBatchesEqualFunction · 0.85
AssertBatchesApproxEqualFunction · 0.85

Calls 2

strMethod · 0.80
PrettyPrintFunction · 0.50

Tested by

no test coverage detected