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

Function test_store_delete

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

Source from the content-addressed store, hash-verified

1021
1022 #[test]
1023 fn test_store_delete() {
1024 let (_temp, mut store) = create_test_store();
1025
1026 let identity = Identity::generate("to-delete");
1027 store.save(&identity).unwrap();
1028 assert!(store.exists(&identity.id));
1029
1030 store.delete(&identity.id).unwrap();
1031 assert!(!store.exists(&identity.id));
1032 }
1033
1034 #[test]
1035 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