+14
−0
internal/pgint/pgint_test.go
0 → 100644
+716
−0
File added.
Preview size limit exceeded, changes collapsed.
Loading
The hermetic suites encode the store contracts against fakes; PGRepo drifted behind them three times (attempt accounting, a missing JOIN, a missing FOR UPDATE) while every unit test stayed green. This harness replays the real embedded migrations onto a throwaway database — its name must contain "pgint" or the harness refuses to run — and exercises the SQL directly: sessions, the onboarding email-OTP lifecycle (supersede/expiry/lockout), the pre-session login consume, the op-login state machine, link and bind-code redemption, submissions, and builds with the image admission round trip. Run it after touching SQL under internal/api/pgrepo.go, internal/submit, or internal/build; CONTRIBUTING.md carries the one-liner.
File added.
Preview size limit exceeded, changes collapsed.