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

Function AssertScalarsEqual

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

Source from the content-addressed store, hash-verified

131}
132
133void AssertScalarsEqual(const Scalar& expected, const Scalar& actual, bool verbose,
134 const EqualOptions& options) {
135 if (!expected.Equals(actual, options)) {
136 std::stringstream diff;
137 if (verbose) {
138 diff << "Expected:\n" << expected.ToString();
139 diff << "\nActual:\n" << actual.ToString();
140 }
141 FAIL() << diff.str();
142 }
143}
144
145void AssertScalarsApproxEqual(const Scalar& expected, const Scalar& actual, bool verbose,
146 const EqualOptions& options) {

Callers 13

AssertDatumsEqualFunction · 0.70
AssertJSONScalarFunction · 0.50
AssertAppendScalarFunction · 0.50
TEST_FFunction · 0.50
AssertResultMethod · 0.50
ValidateBooleanAggFunction · 0.50
AssertAnyIsMethod · 0.50
AssertAllIsMethod · 0.50
ASSERT_OK_AND_ASSIGNFunction · 0.50
AssertNullToNullFunction · 0.50
AssertUnaryOpMethod · 0.50
AssertBinaryOpMethod · 0.50

Calls 3

strMethod · 0.80
EqualsMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected