| 455 | use tempfile::TempDir; |
| 456 | |
| 457 | fn schema() -> Arc<ArraySchema> { |
| 458 | Arc::new( |
| 459 | ArraySchemaBuilder::new("a") |
| 460 | .dim(DimSpec::new( |
| 461 | "x", |
| 462 | DimType::Int64, |
| 463 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 464 | )) |
| 465 | .dim(DimSpec::new( |
| 466 | "y", |
| 467 | DimType::Int64, |
| 468 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(15)), |
| 469 | )) |
| 470 | .attr(AttrSpec::new("v", AttrType::Int64, true)) |
| 471 | .tile_extents(vec![4, 4]) |
| 472 | .build() |
| 473 | .unwrap(), |
| 474 | ) |
| 475 | } |
| 476 | |
| 477 | #[test] |
| 478 | fn open_creates_directory_and_empty_manifest() { |