forge
Explore
Log in

Don't you dare go Hollow

forge

Clone
★ 0

0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits

common.rs13 lines, 291 bytesHistoryRawDownload
1//! Helpers shared by the store test modules.
2
3use std::path::{Path, PathBuf};
4
5use forge_core::Store;
6
7pub fn db_path(dir: &tempfile::TempDir) -> PathBuf {
8 dir.path().join("forge.db")
9}
10
11pub async fn open_store(path: &Path) -> Store {
12 Store::open(path).await.expect("open store")
13}