| 42 | using internal::checked_cast; |
| 43 | |
| 44 | static Result<std::shared_ptr<Table>> ReadToTable(std::string json, |
| 45 | const ReadOptions& read_options, |
| 46 | const ParseOptions& parse_options) { |
| 47 | std::shared_ptr<io::InputStream> input; |
| 48 | RETURN_NOT_OK(MakeStream(json, &input)); |
| 49 | ARROW_ASSIGN_OR_RAISE(auto reader, TableReader::Make(default_memory_pool(), input, |
| 50 | read_options, parse_options)); |
| 51 | return reader->Read(); |
| 52 | } |
| 53 | |
| 54 | class ReaderTest : public ::testing::TestWithParam<bool> { |
| 55 | public: |
no test coverage detected