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

Function test_store_load_by_name

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

Source from the content-addressed store, hash-verified

817
818 #[test]
819 fn test_store_load_by_name() {
820 let (_temp, store) = create_test_store();
821
822 let identity = Identity::generate("charlie");
823 store.save(&identity).unwrap();
824
825 let loaded = store.load_by_name("charlie").unwrap();
826 assert_eq!(loaded.id, identity.id);
827 }
828
829 #[test]
830 fn test_store_list() {

Callers

nothing calls this directly

Calls 4

load_by_nameMethod · 0.80
create_test_storeFunction · 0.70
unwrapMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected