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

Function create_test_store

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

Source from the content-addressed store, hash-verified

992 use tempfile::TempDir;
993
994 fn create_test_store() -> (TempDir, IdentityStore) {
995 let temp_dir = TempDir::new().unwrap();
996 let store = IdentityStore::open(temp_dir.path()).unwrap();
997 (temp_dir, store)
998 }
999
1000 #[test]
1001 fn test_store_open_creates_directory() {

Calls 3

openFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45