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

Function TEST_P

cpp/src/arrow/ipc/endianness_test.cc:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112};
113
114TEST_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
129TEST_P(TestEndianness, FileReader) {
130 auto open_file = [this](const std::string& basename, Endianness endianness,

Callers

nothing calls this directly

Calls 1

DefaultsFunction · 0.50

Tested by

no test coverage detected