MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_store_exists

Function test_store_exists

atomic-identity/src/store.rs:1290–1298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1288
1289 #[test]
1290 fn test_store_exists() {
1291 let (_temp, store) = create_test_store();
1292
1293 let identity = Identity::generate("exists-test");
1294 assert!(!store.exists(&identity.id));
1295
1296 store.save(&identity).unwrap();
1297 assert!(store.exists(&identity.id));
1298 }
1299}
1300
1301#[cfg(test)]

Callers

nothing calls this directly

Calls 3

create_test_storeFunction · 0.70
unwrapMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected