| 1481 | } |
| 1482 | |
| 1483 | std::shared_ptr<Array> GenerateString(const std::shared_ptr<DataType>& data_type) { |
| 1484 | if (data_type->id() == Type::FIXED_SIZE_BINARY) { |
| 1485 | auto byte_width = data_type->byte_width(); |
| 1486 | std::string a(byte_width, 'a'); |
| 1487 | std::string b(byte_width, 'b'); |
| 1488 | std::string c(byte_width, 'c'); |
| 1489 | std::stringstream ss; |
| 1490 | ss << R"([")" << a << R"(",")" << b << R"(",")" << c << R"("])"; |
| 1491 | return ArrayFromJSON(data_type, ss.str()); |
| 1492 | } else { |
| 1493 | return ArrayFromJSON(data_type, R"(["a","b","c"])"); |
| 1494 | } |
| 1495 | } |
| 1496 | |
| 1497 | }; // namespace |
| 1498 |
no test coverage detected