[agent/claude] Write tests for /pkg/monitor/ to reach 80% coverage. Current... #2

Merged
Virgil merged 1 commit from agent/write-tests-for--pkg-monitor--to-reach-8 into main 2026-03-22 00:46:00 +00:00

1 commit

Author SHA1 Message Date
Snider
2d58145e65 test(monitor): add unit tests for completions, inbox, lifecycle
Cover checkCompletions, checkInbox, syncRepos, loop, Poke,
Start/Shutdown, New, initSyncTimestamp, and agentStatusResource.
Mock HTTP endpoints with httptest, use t.TempDir for workspace
scanning, and create fake status.json files for completions.

Also fix dispatch.go build error (removed unsupported RunOptions
fields: KillGroup, Timeout, GracePeriod).

Coverage: 23.2% → 86.5%

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 00:45:43 +00:00