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:970–978  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

968
969 #[test]
970 fn test_store_load_by_name() {
971 let (_temp, store) = create_test_store();
972
973 let identity = Identity::generate("charlie");
974 store.save(&identity).unwrap();
975
976 let loaded = store.load_by_name("charlie").unwrap();
977 assert_eq!(loaded.id, identity.id);
978 }
979
980 #[test]
981 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