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

Method SetUp

cpp/src/arrow/dataset/write_node_test.cc:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44class 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_;

Callers

nothing calls this directly

Calls 2

InitializeFunction · 0.70
DefaultWriteOptionsMethod · 0.45

Tested by

no test coverage detected