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

Function test_store_delete

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

Source from the content-addressed store, hash-verified

870
871 #[test]
872 fn test_store_delete() {
873 let (_temp, mut store) = create_test_store();
874
875 let identity = Identity::generate("to-delete");
876 store.save(&identity).unwrap();
877 assert!(store.exists(&identity.id));
878
879 store.delete(&identity.id).unwrap();
880 assert!(!store.exists(&identity.id));
881 }
882
883 #[test]
884 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