From 0831b9fb48fa029e9b85b63ca0b45cb2f94bf897 Mon Sep 17 00:00:00 2001 From: elipeter Date: Tue, 17 Jun 2025 00:03:48 +0200 Subject: [PATCH] Add unit tests for `Indexer` and update dependencies - Introduced comprehensive tests for `Indexer` to validate file scan behavior. - Added `tempfile` and `filetime` as dependencies for testing. - Removed unused dependencies (`anyhow`, `nix`, `regex`). --- src/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/database.rs b/src/database.rs index ccb05d4c..2aa519e3 100644 --- a/src/database.rs +++ b/src/database.rs @@ -141,7 +141,7 @@ mod tests { #[test] fn modified_mtime_alone_triggers_rescan() -> Result<(), Box> { // Compile this test only when the optional `filetime` feature is enabled. - #[cfg(feature = "filetime")] { + { use std::time::{Duration, SystemTime}; use filetime::FileTime;