| 186 | } |
| 187 | |
| 188 | void SubarrayPartitionerDenseFx::write_default_1d_array() { |
| 189 | tiledb::test::QueryBuffers buffers; |
| 190 | std::vector<int> a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; |
| 191 | uint64_t a_size = a.size() * sizeof(int); |
| 192 | std::vector<uint64_t> b_off = { |
| 193 | 0, |
| 194 | sizeof(int), |
| 195 | 3 * sizeof(int), |
| 196 | 6 * sizeof(int), |
| 197 | 9 * sizeof(int), |
| 198 | 11 * sizeof(int), |
| 199 | 15 * sizeof(int), |
| 200 | 16 * sizeof(int), |
| 201 | 17 * sizeof(int), |
| 202 | 18 * sizeof(int)}; |
| 203 | uint64_t b_off_size = b_off.size() * sizeof(uint64_t); |
| 204 | std::vector<int> b_val = { |
| 205 | 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 6, 6, 6, 6, 7, 8, 9, 10}; |
| 206 | uint64_t b_val_size = b_val.size() * sizeof(int); |
| 207 | buffers["a"] = tiledb::test::QueryBuffer({&a[0], a_size, nullptr, 0}); |
| 208 | buffers["b"] = |
| 209 | tiledb::test::QueryBuffer({&b_off[0], b_off_size, &b_val[0], b_val_size}); |
| 210 | write_array(ctx_, array_name_, TILEDB_GLOBAL_ORDER, buffers); |
| 211 | } |
| 212 | |
| 213 | void SubarrayPartitionerDenseFx::write_default_2d_array() { |
| 214 | tiledb::test::QueryBuffers buffers; |
nothing calls this directly
no test coverage detected