MCPcopy Create free account
hub / github.com/TileDB-Inc/TileDB / SubarrayPartitionerErrorFx

Method SubarrayPartitionerErrorFx

test/src/unit-SubarrayPartitioner-error.cc:70–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68};
69
70SubarrayPartitionerErrorFx::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
91SubarrayPartitionerErrorFx::~SubarrayPartitionerErrorFx() {
92 tiledb_array_free(&array_);

Callers

nothing calls this directly

Calls 8

vfs_test_get_fs_vecFunction · 0.85
vfs_test_initFunction · 0.85
create_dirFunction · 0.85
tiledb_array_allocFunction · 0.85
okMethod · 0.80
file_prefixMethod · 0.80
temp_dirMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected