walcraft 0.3.0

A light-weight Write Ahead Log (WAL) solution with garbage collection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::path::PathBuf;

#[allow(dead_code)]
pub(crate) const TESTING_DIR: &str = "./tmp/testing";

/// Utility function to remove the testing directory and create a new blank one for a new test
#[allow(dead_code)]
pub(crate) fn clean_test_dir() {
    let _ = std::fs::remove_dir_all(crate::TESTING_DIR);
    let mut path = PathBuf::from(crate::TESTING_DIR);
    path.push("logs");
    std::fs::create_dir_all(path).unwrap();
}