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

Function PrettyPrint

cpp/src/arrow/json/test_common.h:260–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260static inline std::string PrettyPrint(string_view one_line) {
261 rj::Document document;
262
263 // Must pass size to avoid ASAN issues.
264 document.Parse(one_line.data(), one_line.size());
265 rj::StringBuffer sb;
266 rj::PrettyWriter<rj::StringBuffer> writer(sb);
267 document.Accept(writer);
268 return sb.GetString();
269}
270
271template <typename T>
272std::string RowsOfOneColumn(std::string_view name, std::initializer_list<T> values,

Callers 14

GenerateTestDataFunction · 0.70
ValidateArrowVsJsonFunction · 0.50
ToStringMethod · 0.50
TEST_PFunction · 0.50
CompareFuzzBatchesFunction · 0.50
CompareArraysDetailedFunction · 0.50
AssertTsSameFunction · 0.50
AssertArraysEqualWithFunction · 0.50
AssertChunkedEquivalentFunction · 0.50
PrintArrayDiffFunction · 0.50

Calls 5

ParseMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
AcceptMethod · 0.45
GetStringMethod · 0.45

Tested by

no test coverage detected