| 44 | class SimpleWriteNodeTest : public ::testing::Test { |
| 45 | protected: |
| 46 | void SetUp() override { |
| 47 | internal::Initialize(); |
| 48 | mock_fs_ = std::make_shared<fs::internal::MockFileSystem>(fs::kNoTime); |
| 49 | auto ipc_format = std::make_shared<dataset::IpcFileFormat>(); |
| 50 | |
| 51 | fs_write_options_.filesystem = mock_fs_; |
| 52 | fs_write_options_.base_dir = "/my_dataset"; |
| 53 | fs_write_options_.basename_template = "{i}.arrow"; |
| 54 | fs_write_options_.file_write_options = ipc_format->DefaultWriteOptions(); |
| 55 | fs_write_options_.partitioning = dataset::Partitioning::Default(); |
| 56 | } |
| 57 | |
| 58 | std::shared_ptr<fs::internal::MockFileSystem> mock_fs_; |
| 59 | dataset::FileSystemDatasetWriteOptions fs_write_options_; |
nothing calls this directly
no test coverage detected