Skip to content

test: improve watch coverage from 79.9% to 80.4%#48

Open
JordanCoin wants to merge 1 commit intomainfrom
test/watch-coverage-804-e433
Open

test: improve watch coverage from 79.9% to 80.4%#48
JordanCoin wants to merge 1 commit intomainfrom
test/watch-coverage-804-e433

Conversation

@JordanCoin
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 16, 2026 13:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Improves test coverage for the watch/ package by adding targeted unit tests around event log trimming, event handling, and debouncer behavior, and updates CI’s enforced overall coverage floor accordingly.

Changes:

  • Add tests for trimEventLogToBytes behavior with invalid limit inputs.
  • Add tests covering Daemon.handleEvent write/remove behavior and gitignore skipping.
  • Add a test ensuring newEventDebouncer enforces a minimum prune window; bump CI coverage floor to 50%.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
watch/events_limits_test.go Adds coverage for trimEventLogToBytes invalid-limit no-op behavior.
watch/events_handle_test.go Adds coverage for handleEvent graph updates on WRITE/REMOVE and gitignore early return.
watch/events_debounce_test.go Adds coverage for minimum prune window behavior in newEventDebouncer.
.github/workflows/ci.yml Raises enforced total Go coverage floor from 45.0 to 50.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 52 to 55
# Current enforced coverage floor. Codex PRs raise this incrementally toward 90%.
min=45.0
min=50.0
awk -v t="$total" -v m="$min" 'BEGIN {
if (t+0 < m+0) {
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.

2 participants