MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / test_schema

Function test_schema

nodedb/src/engine/array/purge/plan.rs:311–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309 use nodedb_types::{Surrogate, TenantId};
310
311 fn test_schema() -> Arc<nodedb_array::schema::ArraySchema> {
312 Arc::new(
313 ArraySchemaBuilder::new("t")
314 .dim(DimSpec::new(
315 "x",
316 DimType::Int64,
317 Domain::new(DomainBound::Int64(0), DomainBound::Int64(1000)),
318 ))
319 .attr(AttrSpec::new("v", AttrType::Int64, true))
320 .tile_extents(vec![100])
321 .build()
322 .unwrap(),
323 )
324 }
325
326 fn test_aid() -> ArrayId {
327 ArrayId::new(TenantId::new(0), "t")

Calls 4

buildMethod · 0.45
tile_extentsMethod · 0.45
attrMethod · 0.45
dimMethod · 0.45

Tested by

no test coverage detected