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

Function RowsOfOneColumn

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

Source from the content-addressed store, hash-verified

270
271template <typename T>
272std::string RowsOfOneColumn(std::string_view name, std::initializer_list<T> values,
273 decltype(std::to_string(*values.begin()))* = nullptr) {
274 std::stringstream ss;
275 for (auto value : values) {
276 ss << R"({")" << name << R"(":)" << std::to_string(value) << "}\n";
277 }
278 return ss.str();
279}
280
281inline std::string RowsOfOneColumn(std::string_view name,
282 std::initializer_list<std::string> values) {

Callers 1

TESTFunction · 0.85

Calls 3

to_stringFunction · 0.85
strMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected