MCPcopy Create free account
hub / github.com/Autoparallel/learner / test_storage_path_persistence

Function test_storage_path_persistence

crates/learner/src/database/tests.rs:68–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66#[traced_test]
67#[tokio::test]
68async fn test_storage_path_persistence() {
69 let (db, db_path, _dir) = setup_test_db().await;
70
71 // Set custom storage path
72 let custom_path = PathBuf::from("/tmp/custom/storage");
73 db.set_storage_path(&custom_path).await.unwrap();
74
75 // Reopen database and check path
76 drop(db);
77 let db = Database::open(db_path).await.unwrap();
78 let storage_path = db.get_storage_path().await.expect("Storage path should be set");
79 assert!(storage_path.ends_with(custom_path));
80}
81
82#[traced_test]
83#[tokio::test]

Callers

nothing calls this directly

Calls 3

setup_test_dbFunction · 0.85
set_storage_pathMethod · 0.80
get_storage_pathMethod · 0.80

Tested by

no test coverage detected