Add is_watch_enabled method to VFS and enhance prefetch cache tests

- Introduced `is_watch_enabled` method to check the status of automatic file watching in the VFS.
- Added a new test for prefetch cache to validate metadata retrieval and error handling for walked roots and external paths.
- Updated the `watch` method in `StdBackend` for cleaner logic.
- Enhanced the `dir_init` field in `PrefetchCache` to store resolved init-file information for directories, improving prefetch operations.
This commit is contained in:
Joe 2026-03-06 21:51:22 -06:00
parent 8b18dc451a
commit 5275d45adc
6 changed files with 91 additions and 9 deletions

View file

@ -544,6 +544,12 @@ mod test {
"DEFAULT_PROJECT_NAMES entry {project_name:?} missing from INIT_FILE_PRIORITY"
);
}
for &name in &priority_names {
assert!(
DEFAULT_PROJECT_NAMES.contains(&name),
"INIT_FILE_PRIORITY has Project entry {name:?} not in DEFAULT_PROJECT_NAMES"
);
}
}
#[test]