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

Function put_then_get_roundtrip

nodedb/src/control/security/catalog/database.rs:285–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283
284 #[test]
285 fn put_then_get_roundtrip() {
286 let (_dir, cat) = open_catalog();
287 cat.bootstrap_default_database().unwrap();
288 let desc = cat.get_database(DatabaseId::DEFAULT).unwrap().unwrap();
289 assert_eq!(desc.name, "default");
290 let by_name = cat.get_database_id_by_name("default").unwrap();
291 assert_eq!(by_name, Some(DatabaseId::DEFAULT));
292 }
293
294 #[test]
295 fn missing_returns_none() {

Callers

nothing calls this directly

Calls 4

get_databaseMethod · 0.80
open_catalogFunction · 0.70

Tested by

no test coverage detected