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`).
This commit is contained in:
elipeter 2025-06-17 00:03:48 +02:00
parent 15920328d7
commit 0831b9fb48

View file

@ -141,7 +141,7 @@ mod tests {
#[test]
fn modified_mtime_alone_triggers_rescan() -> Result<(), Box<dyn Error>> {
// Compile this test only when the optional `filetime` feature is enabled.
#[cfg(feature = "filetime")] {
{
use std::time::{Duration, SystemTime};
use filetime::FileTime;