use std::path::Path;
use tempfile::TempDir;
pub struct TestFixture {
temp_dir: TempDir,
}
impl TestFixture {
pub fn new() -> Self {
Self {
temp_dir: TempDir::new().expect("Failed to create temp dir"),
}
}
#[allow(dead_code)]
pub fn root(&self) -> &Path {
self.temp_dir.path()
}
}