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

Function AssertTsSame

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

Source from the content-addressed store, hash-verified

76
77template <typename T, typename CompareFunctor>
78void AssertTsSame(const T& expected, const T& actual, CompareFunctor&& compare) {
79 if (!compare(actual, expected)) {
80 std::stringstream pp_expected;
81 std::stringstream pp_actual;
82 ::arrow::PrettyPrintOptions options(/*indent=*/2);
83 options.window = 50;
84 ARROW_EXPECT_OK(PrettyPrint(expected, options, &pp_expected));
85 ARROW_EXPECT_OK(PrettyPrint(actual, options, &pp_actual));
86 FAIL() << "Got: \n" << pp_actual.str() << "\nExpected: \n" << pp_expected.str();
87 }
88}
89
90template <typename CompareFunctor>
91void 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