aboutsummaryrefslogtreecommitdiff
path: root/pgruntime/pgruntime.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-08-01 14:49:15 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-08-01 14:49:49 +0200
commit6d72c85766a8355e1d660ff0c19b43e93faad4d8 (patch)
tree118c3cbdf43a9d4355ece98ea70bd184630b4e1c /pgruntime/pgruntime.go
parente26a214de3958e48e94cdac0e1ae0641e3221deb (diff)
downloadgo-gg-6d72c85766a8355e1d660ff0c19b43e93faad4d8.tar.gz
add testing/pgruntime
Testing pgruntime has quickly turned out to be a nightmare, because so many parts of the test logic are not easily reproducible (e.g. `stopDBIfLingering`). I decided to not waste a bunch of time testing code that is relatively compact and easy to verify by careful examination, and that is unlikely to change a lot in the future.
Diffstat (limited to 'pgruntime/pgruntime.go')
-rw-r--r--pgruntime/pgruntime.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pgruntime/pgruntime.go b/pgruntime/pgruntime.go
index 17a6c94..0283eaa 100644
--- a/pgruntime/pgruntime.go
+++ b/pgruntime/pgruntime.go
@@ -20,12 +20,10 @@
// This is a clean-room reimplementation of one half of [easypg] with several interface improvements and cleanups, most notably:
// - The hard dependency on lib/pq has been removed.
// - Support for creating databases on first use has been removed (except in ConnectForTest).
-// - ConnectForTest now recreates databases instead of just wiping their contents.
+// - The reset logic in ConnectForTest is completely reworked and massively simplified.
//
// [easypg]: https://pkg.go.dev/github.com/sapcc/go-bits/easypg
// [lib/pq]: https://pkg.go.dev/github.com/lib/pq
// [pgx]: https://pkg.go.dev/github.com/jackc/pgx/v5
// [gg-pgx]: https://git.xyrillian.de/go-gg-pgx/
package pgruntime
-
-// TODO: test coverage via separate module importing github.com/lib/pq