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

Function test_store_exists

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

Source from the content-addressed store, hash-verified

930
931 #[test]
932 fn test_store_exists() {
933 let (_temp, store) = create_test_store();
934
935 let identity = Identity::generate("exists-test");
936 assert!(!store.exists(&identity.id));
937
938 store.save(&identity).unwrap();
939 assert!(store.exists(&identity.id));
940 }
941}

Callers

nothing calls this directly

Calls 3

create_test_storeFunction · 0.70
unwrapMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected