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

Function register_accepts_array_kind

nodedb/src/engine/bitemporal/registry.rs:246–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

244
245 #[test]
246 fn register_accepts_array_kind() {
247 let r = BitemporalRetentionRegistry::new();
248 r.register(
249 TenantId::new(0),
250 "my_array",
251 BitemporalEngineKind::Array,
252 ret(86_400_000, 0),
253 )
254 .unwrap();
255 assert_eq!(r.len(), 1);
256 let snap = r.snapshot();
257 assert_eq!(snap[0].engine, BitemporalEngineKind::Array);
258 assert_eq!(snap[0].collection, "my_array");
259 }
260}

Callers

nothing calls this directly

Calls 3

retFunction · 0.85
registerMethod · 0.45
snapshotMethod · 0.45

Tested by

no test coverage detected