| 68 | }; |
| 69 | |
| 70 | SubarrayPartitionerErrorFx::SubarrayPartitionerErrorFx() |
| 71 | : fs_vec_(vfs_test_get_fs_vec()) { |
| 72 | // Initialize vfs test |
| 73 | REQUIRE(vfs_test_init(fs_vec_, &ctx_, &vfs_).ok()); |
| 74 | |
| 75 | // Create temporary directory based on the supported filesystem |
| 76 | #ifdef _WIN32 |
| 77 | SupportedFsLocal windows_fs; |
| 78 | temp_dir_ = windows_fs.file_prefix() + windows_fs.temp_dir(); |
| 79 | #else |
| 80 | SupportedFsLocal posix_fs; |
| 81 | temp_dir_ = posix_fs.file_prefix() + posix_fs.temp_dir(); |
| 82 | #endif |
| 83 | |
| 84 | create_dir(temp_dir_, ctx_, vfs_); |
| 85 | |
| 86 | array_name_ = temp_dir_ + ARRAY_NAME; |
| 87 | int rc = tiledb_array_alloc(ctx_, array_name_.c_str(), &array_); |
| 88 | CHECK(rc == TILEDB_OK); |
| 89 | } |
| 90 | |
| 91 | SubarrayPartitionerErrorFx::~SubarrayPartitionerErrorFx() { |
| 92 | tiledb_array_free(&array_); |
nothing calls this directly
no test coverage detected