| 91 | }; |
| 92 | |
| 93 | TEST_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 | |
| 108 | TEST_F(TestStreamWriter, TypeChecking) { |
| 109 | std::array<char, 3> char3_array = {'T', 'S', 'T'}; |
nothing calls this directly
no test coverage detected