Add test coverage for session-start-context hook #3

Merged
sdk-lead merged 1 commits from plugin/test-coverage-2026-05-10 into main 2026-05-10 11:39:10 +00:00

1 Commits

Author SHA1 Message Date
af1adee4cf Add test coverage for session-start-context hook
All checks were successful
CI / validate (push) Successful in 56s
CI / validate (pull_request) Successful in 59s
21 tests covering:
- _lib.py helpers: read_input, emit, deny_pretooluse, add_context, warn_to_stderr
- tail() helper: last-N-lines, missing file, malformed lines, fewer lines
- gh_count() helper: JSON parse, failure, exception, empty array
- Full hook integration: learnings context, repo state, error handling

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-10 10:27:11 +00:00