| 1620 | } |
| 1621 | |
| 1622 | void TestWriteAfterClose() { |
| 1623 | // Part of GH-35095. |
| 1624 | std::shared_ptr<RecordBatch> batch_ints; |
| 1625 | ASSERT_OK(MakeIntRecordBatch(&batch_ints)); |
| 1626 | |
| 1627 | auto schema = batch_ints->schema(); |
| 1628 | |
| 1629 | WriterHelper writer_helper; |
| 1630 | ASSERT_OK(writer_helper.Init(schema, IpcWriteOptions::Defaults())); |
| 1631 | ASSERT_OK(writer_helper.WriteBatch(batch_ints)); |
| 1632 | ASSERT_OK(writer_helper.Finish()); |
| 1633 | |
| 1634 | // Write after close raises status |
| 1635 | ASSERT_RAISES(Invalid, writer_helper.WriteBatch(batch_ints)); |
| 1636 | } |
| 1637 | |
| 1638 | void TestWriteDifferentSchema() { |
| 1639 | // Test writing batches with a different schema than the RecordBatchWriter |
nothing calls this directly
no test coverage detected