Scanner exclude/include pattern tests lack edge case coverage #56
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
The scanner tests in
tests/test_scanner.conly test basic directory scanning (single file, multiple files, subdirectories, empty directory). They do NOT test:--excludefunctionality)--includefunctionality)--max-size,--min-size)/in paths (theglob_matchtest covers slash filtering, but the scanner doesn't)Location
tests/test_scanner.c:125-130Suggested Fix
Add tests that exercise the scanner's pattern-matching and size-filtering capabilities:
Also test that patterns are matched against the filename (not full path), and that the scanner correctly handles multiple include patterns as a whitelist.
Severity
Low
Category
Quality