| 112 | }; |
| 113 | |
| 114 | TEST_P(TestEndianness, StreamReader) { |
| 115 | auto open_stream = [this](const std::string& basename, Endianness endianness, |
| 116 | bool ensure_native_endian) |
| 117 | -> Result<std::shared_ptr<arrow::ipc::RecordBatchStreamReader>> { |
| 118 | auto options = IpcReadOptions::Defaults(); |
| 119 | options.ensure_native_endian = ensure_native_endian; |
| 120 | ARROW_ASSIGN_OR_RAISE(auto path, GetTestResourcePath(GetIpcStreamPath(endianness))); |
| 121 | ARROW_ASSIGN_OR_RAISE(auto file, io::ReadableFile::Open(path)); |
| 122 | ARROW_ASSIGN_OR_RAISE(auto reader, RecordBatchStreamReader::Open(file, options)); |
| 123 | return reader; |
| 124 | }; |
| 125 | |
| 126 | TestReader(open_stream); |
| 127 | } |
| 128 | |
| 129 | TEST_P(TestEndianness, FileReader) { |
| 130 | auto open_file = [this](const std::string& basename, Endianness endianness, |
nothing calls this directly
no test coverage detected