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

Function CheckStream

cpp/src/arrow/pretty_print_test.cc:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template <typename T>
55void CheckStream(const T& obj, const PrettyPrintOptions& options,
56 std::string_view expected) {
57 std::ostringstream sink;
58 ASSERT_OK(PrettyPrint(obj, options, &sink));
59 std::string result = sink.str();
60 ASSERT_EQ(expected, result);
61}
62
63void CheckArray(const Array& arr, const PrettyPrintOptions& options,
64 std::string_view expected, bool check_operator = true) {

Callers 4

CheckArrayFunction · 0.85
TEST_FFunction · 0.85

Calls 2

strMethod · 0.80
PrettyPrintFunction · 0.70

Tested by

no test coverage detected