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

Function test_schema

nodedb/src/engine/array/purge/execute.rs:306–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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