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

Function create_test_store

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

Source from the content-addressed store, hash-verified

775 use tempfile::TempDir;
776
777 fn create_test_store() -> (TempDir, IdentityStore) {
778 let temp_dir = TempDir::new().unwrap();
779 let store = IdentityStore::open(temp_dir.path()).unwrap();
780 (temp_dir, store)
781 }
782
783 #[test]
784 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