feat(api): M4.2 — full REST surface + pgx-backed Postgres #7

Merged
sharang merged 3 commits from feat/m4.2-api into main 2026-05-19 10:52:00 +00:00
Showing only changes of commit 96c9586b4d - Show all commits
+7 -6
View File
@@ -77,12 +77,13 @@ jobs:
with: { version: v2.12.2 }
- name: test
# Coverage scoped to ./internal/... — cmd/server is the entrypoint
# with signal-handling + bind that isn't worth unit-testing.
# -coverpkg lets the server tests count their exercise of store/* —
# store has no test files because every method is exercised end-to-end
# via the server's eachStore harness against both Memory and Postgres.
run: go test -race -coverpkg=./internal/... -coverprofile=cover.out ./internal/...
# Test runs the packages that HAVE test files (server, config). The
# store package is exercised end-to-end via the server's eachStore
# harness against both Memory and Postgres, so we don't need its
# own test binary — and including it triggers a covdata-tool error
# on packages with no _test.go files. -coverpkg makes the server's
# exercise of store/* count toward coverage.
run: go test -race -coverpkg=./internal/... -coverprofile=cover.out ./internal/server/... ./internal/config/...
- name: coverage gate
run: |