| 39 | using namespace tiledb::test; |
| 40 | |
| 41 | void create_int32_array(Context ctx, const std::string& array_name) { |
| 42 | Domain domain(ctx); |
| 43 | auto d1 = Dimension::create<int32_t>(ctx, "d1", {{0, 100}}); |
| 44 | auto d2 = Dimension::create<int32_t>(ctx, "d2", {{0, 200}}); |
| 45 | domain.add_dimensions(d1, d2); |
| 46 | auto a = Attribute::create<int32_t>(ctx, "a"); |
| 47 | ArraySchema schema(ctx, TILEDB_SPARSE); |
| 48 | schema.set_domain(domain); |
| 49 | schema.add_attribute(a); |
| 50 | schema.set_cell_order(TILEDB_HILBERT); |
| 51 | schema.set_capacity(2); |
| 52 | CHECK_NOTHROW(schema.check()); |
| 53 | Array::create(array_name, schema); |
| 54 | } |
| 55 | |
| 56 | void create_int32_array_negative_domain( |
| 57 | Context ctx, const std::string& array_name) { |
no test coverage detected