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

Function test_store_delete

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

Source from the content-addressed store, hash-verified

1087
1088 #[test]
1089 fn test_store_delete() {
1090 let (_temp, mut store) = create_test_store();
1091
1092 let identity = Identity::generate("to-delete");
1093 store.save(&identity).unwrap();
1094 assert!(store.exists(&identity.id));
1095
1096 store.delete(&identity.id).unwrap();
1097 assert!(!store.exists(&identity.id));
1098 }
1099
1100 #[test]
1101 fn retire_secret_key_preserves_public_verification_and_audit_data() {

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