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

Function store

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

Source from the content-addressed store, hash-verified

1097 use tempfile::TempDir;
1098
1099 fn store() -> (TempDir, IdentityStore) {
1100 let dir = TempDir::new().unwrap();
1101 let store = IdentityStore::open(dir.path()).unwrap();
1102 (dir, store)
1103 }
1104
1105 #[test]
1106 fn save_and_load_round_trips_bytes_verbatim() {

Calls 3

openFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45