()
| 66 | #[traced_test] |
| 67 | #[tokio::test] |
| 68 | async 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] |
nothing calls this directly
no test coverage detected