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

Function test_store_delete

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

Source from the content-addressed store, hash-verified

1000
1001 #[test]
1002 fn test_store_delete() {
1003 let (_temp, mut store) = create_test_store();
1004
1005 let identity = Identity::generate("to-delete");
1006 store.save(&identity).unwrap();
1007 assert!(store.exists(&identity.id));
1008
1009 store.delete(&identity.id).unwrap();
1010 assert!(!store.exists(&identity.id));
1011 }
1012
1013 #[test]
1014 fn test_store_default_identity() {

Callers

nothing calls this directly

Calls 4

create_test_storeFunction · 0.70
unwrapMethod · 0.45
saveMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected