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

Function CheckArray

cpp/src/arrow/pretty_print_test.cc:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void CheckArray(const Array& arr, const PrettyPrintOptions& options,
64 std::string_view expected, bool check_operator = true) {
65 ARROW_SCOPED_TRACE("For datatype: ", arr.type()->ToString());
66 CheckStream(arr, options, expected);
67
68 if (options.indent == 0 && options.element_size_limit == 100 && check_operator) {
69 std::stringstream ss;
70 ss << arr;
71 ASSERT_EQ(expected, ss.str());
72 }
73}
74
75template <typename T>
76void Check(const T& obj, const PrettyPrintOptions& options, std::string_view expected) {

Callers 5

CheckPrimitiveFunction · 0.85
TEST_FFunction · 0.85
array_test.ccFile · 0.85
TEST_FFunction · 0.85

Calls 4

CheckStreamFunction · 0.85
strMethod · 0.80
ToStringMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected