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

Function TEST_F

cpp/src/parquet/stream_reader_test.cc:233–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231};
232
233TEST_F(TestStreamReader, DefaultConstructed) {
234 StreamReader os;
235 int i;
236 std::string s;
237
238 // N.B. Default constructor objects are not usable.
239 EXPECT_THROW(os >> i, ParquetException);
240 EXPECT_THROW(os >> s, ParquetException);
241 EXPECT_THROW(os >> EndRow, ParquetException);
242
243 EXPECT_EQ(true, os.eof());
244 EXPECT_EQ(0, os.current_column());
245 EXPECT_EQ(0, os.current_row());
246
247 EXPECT_EQ(0, os.num_columns());
248 EXPECT_EQ(0, os.num_rows());
249
250 // Skipping columns and rows is allowed.
251 //
252 EXPECT_EQ(0, os.SkipColumns(100));
253 EXPECT_EQ(0, os.SkipRows(100));
254}
255
256TEST(StreamReaderEmptySchema, ThrowsOnConstruction) {
257 PARQUET_ASSIGN_OR_THROW(auto buffer_os, ::arrow::io::BufferOutputStream::Create());

Callers

nothing calls this directly

Calls 7

GetStringFunction · 0.85
SkipRowsMethod · 0.80
Decimal128Class · 0.50
current_columnMethod · 0.45
num_columnsMethod · 0.45
num_rowsMethod · 0.45
SkipColumnsMethod · 0.45

Tested by

no test coverage detected