Skip to content

Cover the excluded-directory branch in FileFilter with a direct test#3014

Merged
Kludex merged 1 commit into
mainfrom
cover-file-filter-exclude-dirs
Jul 4, 2026
Merged

Cover the excluded-directory branch in FileFilter with a direct test#3014
Kludex merged 1 commit into
mainfrom
cover-file-filter-exclude-dirs

Conversation

@Kludex

@Kludex Kludex commented Jul 4, 2026

Copy link
Copy Markdown
Owner

What this does

Adds a direct unit test for FileFilter's excluded-directory branch and removes the pragma: no cover workaround from #2974.

The reload tests that exercise this branch through real file watching are skipped on Windows and macOS, so per-job coverage intermittently missed the line on 3.14t runs and failed fail_under = 100 (the pragma from #2974 only moved the miss to the adjacent line). The unit test pins the current behavior deterministically on every platform: a glob include inside an excluded directory is not watched.

No behavior change.

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

Review in cubic

The reload tests that exercise this branch through real file watching are
skipped on Windows and macOS, so per-job coverage intermittently missed it
on 3.14t runs. A direct unit test pins the behavior deterministically on
every platform and lets the pragma workaround from #2974 go.
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

📖 Docs preview: https://f97bac18-uvicorn.marcelotryle.workers.dev

@codspeed-hq

codspeed-hq Bot commented Jul 4, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing cover-file-filter-exclude-dirs (0ecefc4) with main (837b5f9)

Open in CodSpeed

@Kludex
Kludex enabled auto-merge (squash) July 4, 2026 07:54

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Re-trigger cubic

@Kludex
Kludex merged commit 1bf3ab4 into main Jul 4, 2026
25 checks passed
@Kludex
Kludex deleted the cover-file-filter-exclude-dirs branch July 4, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant