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

Function test_store_exists

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

Source from the content-addressed store, hash-verified

1081
1082 #[test]
1083 fn test_store_exists() {
1084 let (_temp, store) = create_test_store();
1085
1086 let identity = Identity::generate("exists-test");
1087 assert!(!store.exists(&identity.id));
1088
1089 store.save(&identity).unwrap();
1090 assert!(store.exists(&identity.id));
1091 }
1092}
1093
1094#[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