use std::fs;
use std::path::Path;
use tempfile::TempDir;
pub fn create_temp_dir() -> TempDir {
tempfile::tempdir().expect("Failed to create temp directory")
}
pub fn create_test_file(dir: &Path, filename: &str, content: &str) -> String {
let file_path = dir.join(filename);
fs::write(&file_path, content).expect("Failed to write test file");
file_path.to_string_lossy().to_string()
}
#[path = "tools/test_edit_file.rs"]
mod test_edit_file;
#[path = "tools/test_read_file.rs"]
mod test_read_file;
#[path = "tools/test_write_file.rs"]
mod test_write_file;