hatch-surf/internal/store
Riley Zhang ceaf7f9fb5 test: add unit tests for handler and store packages
- Added TestSearchRequests for store package (0% → 100% coverage)
- Added TestOpenInMemory for store package Open function
- Added TestNewSQLiteRepoNilDB for error handling
- Added TestV1ReplayRequest for handler package (0% → 100% coverage)
- Added TestPrettyJSON and TestFormatTime for inspect helpers
- Added TestJoinPath for path joining utility
- Added TestHandleMockReturnsErrorOnInvalidJSON
- Added TestInspectReturnsHTMLErrorOnRepoFailure
- Added TestCaptureMissingEndpointID, TestV1CaptureRequestMissingEndpoint, TestV1ListRequestsMissingEndpoint

Coverage improvements:
- Handler: 77.1% → 82.2%
- Store: 61.1% → 82.2%

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-24 05:07:50 +02:00
..
db.go test: add unit tests for handler and store packages 2026-06-24 05:07:50 +02:00
doc.go feat: mock endpoint — configure response per endpoint 2026-06-22 14:32:53 +02:00
models.go Implement JSON API layer for Hatch (ELF-160) 2026-06-23 09:53:13 +02:00
schema.sql feat: add one-click replay for captured requests 2026-06-22 16:58:42 +02:00
sqlite_repo_test.go test: add unit tests for handler and store packages 2026-06-24 05:07:50 +02:00
sqlite_repo.go Implement JSON API layer for Hatch (ELF-160) 2026-06-23 09:53:13 +02:00