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

Function test_store_open_creates_directory

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

Source from the content-addressed store, hash-verified

933
934 #[test]
935 fn test_store_open_creates_directory() {
936 let temp_dir = TempDir::new().unwrap();
937 let store_path = temp_dir.path().join("identities");
938
939 assert!(!store_path.exists());
940 let _store = IdentityStore::open(&store_path).unwrap();
941 assert!(store_path.exists());
942 }
943
944 #[test]
945 fn test_store_save_and_load() {

Callers

nothing calls this directly

Calls 3

openFunction · 0.85
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected