(name: &str)
| 31 | /// One-dimensional Int64 schema over [0, 99] with attribute "v" (Float64). |
| 32 | #[allow(dead_code)] |
| 33 | pub fn simple_schema(name: &str) -> ArraySchema { |
| 34 | ArraySchema { |
| 35 | name: name.into(), |
| 36 | dims: vec![DimSpec::new( |
| 37 | "x", |
| 38 | DimType::Int64, |
| 39 | Domain::new(DomainBound::Int64(0), DomainBound::Int64(99)), |
| 40 | )], |
| 41 | attrs: vec![AttrSpec::new("v", AttrType::Float64, true)], |
| 42 | tile_extents: vec![10], |
| 43 | cell_order: CellOrder::RowMajor, |
| 44 | tile_order: TileOrder::RowMajor, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /// Build a real Loro snapshot for `array_name` and return |
| 49 | /// `(snapshot_bytes, schema_hlc)` suitable for `import_snapshot` calls. |
no outgoing calls
no test coverage detected