Commit graph

2 commits

Author SHA1 Message Date
Claude
9636cdb8ff
fix(test): mock claude binary in HandleTask tests
Tests were spawning real claude subprocess, causing 55s+ runtime and
failures on machines where claude is installed. Use PATH-prepended mock
script (exit 1) — same pattern as existing gh mocks. Suite now runs in
~5s.

Co-Authored-By: Charon <developers@lethean.io>
2026-02-20 11:28:03 +00:00
Claude
5d0269511e
test: push coverage from 85.6% to 96.5%
Add comprehensive tests for previously uncovered code paths:
- service.go: NewService, OnStartup, handleTask, doCommit, doPrompt
- completion.go: CreatePR with mock gh binary, PushChanges success path
- allowance_service.go: ResetAgent error path with mock store
- client.go: connection refused and invalid JSON paths for all methods
- Additional edge cases for CreateBranch, AutoCommit, generateBranchName

Co-Authored-By: Charon <charon@lethean.io>
2026-02-20 02:24:06 +00:00