Helper function to clean up DB files
(db_path: &PathBuf)
| 33 | |
| 34 | // Helper function to clean up DB files |
| 35 | fn cleanup(db_path: &PathBuf) { |
| 36 | let base_path = db_path.to_string_lossy().to_string(); |
| 37 | |
| 38 | // Ignore errors as files might not exist |
| 39 | let _ = fs::remove_file(db_path); |
| 40 | let _ = fs::remove_file(format!("{}-shm", base_path)); |
| 41 | let _ = fs::remove_file(format!("{}-wal", base_path)); |
| 42 | } |
| 43 | |
| 44 | // Test utility function to create a test song |
| 45 | fn create_test_song(title: &str, path: &str) -> Song { |
no outgoing calls
no test coverage detected