forge
Explore
Log in

Don't you dare go Hollow

yumush

Clone
★ 0

0 watching0 forksRustAGPL-3.06.8 MiB27ceb05Tahinli8 hours ago399 commits

test.rs17 lines, 341 bytesHistoryRawDownload
1use std::path::PathBuf;
2
3use crate::db::Db;
4
5pub async fn db() -> Db {
6 Db::open(":memory:").await.unwrap()
7}
8
9pub fn directory() -> PathBuf {
10 let directory = PathBuf::from(concat!(
11 env!("CARGO_MANIFEST_DIR"),
12 "/../../target/attachment-tests"
13 ));
14 std::fs::create_dir_all(&directory).unwrap();
15
16 directory
17}