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

Function create_test_store

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

Source from the content-addressed store, hash-verified

905 use tempfile::TempDir;
906
907 fn create_test_store() -> (TempDir, IdentityStore) {
908 let temp_dir = TempDir::new().unwrap();
909 let store = IdentityStore::open(temp_dir.path()).unwrap();
910 (temp_dir, store)
911 }
912
913 #[test]
914 fn test_store_open_creates_directory() {

Callers 9

test_store_save_and_loadFunction · 0.70
test_store_load_by_nameFunction · 0.70
test_store_listFunction · 0.70
test_store_list_filteredFunction · 0.70
test_store_deleteFunction · 0.70
test_store_existsFunction · 0.70

Calls 2

unwrapMethod · 0.45
pathMethod · 0.45

Tested by 9

test_store_save_and_loadFunction · 0.56
test_store_load_by_nameFunction · 0.56
test_store_listFunction · 0.56
test_store_list_filteredFunction · 0.56
test_store_deleteFunction · 0.56
test_store_existsFunction · 0.56