You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(crawlers): chmod-based unreadable-dir coverage across crawlers
Adds a shared `tests/common/mod.rs` helper with `uid_is_root()` and
`chmod_{unreadable,readable}` so each crawler test file can drive the
`read_dir(...).await` Err arm without depending on an installed
binary or specific filesystem layout. Per-crawler tests skip under
uid 0 because chmod is a no-op for root.
Coverage added:
* cargo: scan_crate_source short-circuits on unreadable src_path
* composer: read_installed_json short-circuits on unreadable file
* go: scan_dir_recursive short-circuits on unreadable cache_path
* npm: scan_node_modules + find_workspace_node_modules both short-
circuit on unreadable dirs; the workspace test stages a readable
and an unreadable workspace side-by-side to prove the readable
one is still discovered.
* nuget: scan_package_dir + scan_global_cache_package both short-
circuit on unreadable dirs (the latter via an unreadable per-name
version directory).
* python: find_by_purls + scan_site_packages short-circuit on
unreadable site-packages.
* ruby: scan_gem_dir short-circuits on unreadable gem dir.
Assisted-by: Claude Code:claude-opus-4-7
0 commit comments