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

Function RowsOfOneColumn

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

Source from the content-addressed store, hash-verified

265
266template <typename T>
267std::string RowsOfOneColumn(std::string_view name, std::initializer_list<T> values,
268 decltype(std::to_string(*values.begin()))* = nullptr) {
269 std::stringstream ss;
270 for (auto value : values) {
271 ss << R"({")" << name << R"(":)" << std::to_string(value) << "}\n";
272 }
273 return ss.str();
274}
275
276inline std::string RowsOfOneColumn(std::string_view name,
277 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