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

Function TEST_F

cpp/src/parquet/stream_writer_test.cc:93–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91};
92
93TEST_F(TestStreamWriter, DefaultConstructed) {
94 StreamWriter os;
95
96 // Default constructor objects are not usable for writing data.
97 EXPECT_THROW(os << 4, ParquetException);
98 EXPECT_THROW(os << "bad", ParquetException);
99 EXPECT_THROW(os << EndRow, ParquetException);
100 EXPECT_THROW(os << EndRowGroup, ParquetException);
101
102 EXPECT_EQ(0, os.current_column());
103 EXPECT_EQ(0, os.current_row());
104 EXPECT_EQ(0, os.num_columns());
105 EXPECT_EQ(0, os.SkipColumns(11));
106}
107
108TEST_F(TestStreamWriter, TypeChecking) {
109 std::array<char, 3> char3_array = {'T', 'S', 'T'};

Callers

nothing calls this directly

Calls 8

FixedStringViewFunction · 0.85
to_stringFunction · 0.85
SetMaxRowGroupSizeMethod · 0.80
GetSchemaFunction · 0.50
current_columnMethod · 0.45
num_columnsMethod · 0.45
SkipColumnsMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected