beads/internal/daemon
Steve Yegge a140436db8 test: improve internal/daemon test coverage to 60%
Adds fast unit tests for previously uncovered functions in the daemon package:

- checkDaemonErrorFile: tests reading daemon error files
- StopDaemon: tests error handling for non-running daemons
- KillAllDaemons: tests empty lists and non-alive daemons
- FindDaemonByWorkspace: tests not found case
- discoverDaemon: tests missing socket scenario
- CleanupStaleSockets: tests edge cases (already removed, alive daemon)
- Registry: tests corrupted file handling and unregistering non-existent entries

Coverage improved from 22.5% to 60.0% with only fast tests (<1s runtime).
All new tests work in -short mode and don't start actual daemons.

Fixes bd-3f80d9e0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 01:20:03 -08:00
..
discovery.go Standardize daemon detection with tryDaemonLock probe (bd-wgu4) 2025-11-07 21:02:38 -08:00
discovery_test.go test: improve internal/daemon test coverage to 60% 2025-11-08 01:20:03 -08:00
kill_unix.go Implement bd daemons killall and logs (bd-153, bd-152) 2025-10-26 19:03:00 -07:00
kill_wasm.go WIP: WASM port - switch to ncruces/go-sqlite3, add WASM stubs 2025-11-02 22:17:08 -08:00
kill_windows.go Remove unused strings import in Windows build 2025-10-26 23:47:14 -07:00
registry.go Fix gosec warnings: tighten file permissions and add exclusions (bd-b47c034e) 2025-11-02 15:39:00 -08:00
registry_test.go test: improve internal/daemon test coverage to 60% 2025-11-08 01:20:03 -08:00