use std::rand::random;
use std::io::fs;

/// Test helper to standardize how random files and directories are generated.
pub fn random_name() -> String {
    format!("test_{}", random::<f64>())
}

pub fn cleanup_file(path: &Path) {
    match fs::unlink(path) {
        Ok(()) => (), // succeeded
        Err(e) => println!("Failed to unlink the path {} with error {}", path.display(), e),
    }
}

use std::rand::random;

/// Test helper to standardize how random files and directories are generated.
pub fn random_name() -> String {
    format!("test_{}", random::<f64>())
}


--- 
+++ 
@@ -1,7 +1,14 @@
 use std::rand::random;
+use std::io::fs;
 
 /// Test helper to standardize how random files and directories are generated.
 pub fn random_name() -> String {
     format!("test_{}", random::<f64>())
 }
 
+pub fn cleanup_file(path: &Path) {
+    match fs::unlink(path) {
+        Ok(()) => (), // succeeded
+        Err(e) => println!("Failed to unlink the path {} with error {}", path.display(), e),
+    }
+}
Add a method to quickly clean up the files created during testing.
