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

Function create_test_store

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

Source from the content-addressed store, hash-verified

926 use tempfile::TempDir;
927
928 fn create_test_store() -> (TempDir, IdentityStore) {
929 let temp_dir = TempDir::new().unwrap();
930 let store = IdentityStore::open(temp_dir.path()).unwrap();
931 (temp_dir, store)
932 }
933
934 #[test]
935 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 3

openFunction · 0.85
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