[agent/claude] Write tests for /pkg/agentic/ to improve coverage. Current c... #4

Merged
Virgil merged 1 commit from agent/write-tests-for--pkg-agentic--to-improve into main 2026-03-22 00:45:19 +00:00

1 commit

Author SHA1 Message Date
Snider
da6d6cfa1a test(agentic): add unit tests for paths, status, queue, plans
Add comprehensive tests for pkg/agentic covering:
- status.go: writeStatus, readStatus, roundtrip, overwrite, error cases
- plan.go: writePlan, readPlan, planPath, roundtrip, directory creation
- queue.go: baseAgent edge cases, config defaults, concurrency checks
- prep.go: envOr, detectLanguage, detectBuildCmd, detectTestCmd, NewPrep

Coverage improved from 4.2% to 9.2%. All tests use t.TempDir(),
coreio.Local for file I/O, and _Good/_Bad/_Ugly naming convention.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-21 14:03:40 +00:00