Skip to content

test(scheduler): add FileWatchStrategy and TriggerConfig::FileWatch tests#876

Open
geoffjay wants to merge 3 commits intoissue-812from
issue-813
Open

test(scheduler): add FileWatchStrategy and TriggerConfig::FileWatch tests#876
geoffjay wants to merge 3 commits intoissue-812from
issue-813

Conversation

@geoffjay
Copy link
Copy Markdown
Owner

Add 13 unit tests for FileWatchStrategy (construction with each WatchMode, polling detection of create/modify/delete, glob pattern filtering, event-kind filtering, debounce, shutdown, object safety) and 5 tests for TriggerConfig::FileWatch (serde roundtrip, minimal defaults, polling mode deserialization, trigger_type(), is_implemented(), is_one_shot()). Also fixes glob validation to run before spawning the polling task (fail-fast).

Closes #813

@geoffjay geoffjay added the review-agent Used to invoke a review by an agent tracking this label label Mar 28, 2026
…ard fields

The Native and Polling fields are intentional drop-guards: they keep the
watcher alive (or cancel the polling task) purely via their Drop impl.
Add #[allow(dead_code)] with an explanatory doc comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-agent Used to invoke a review by an agent tracking this label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant