From b09c6d56832eb1718c07d74abf3bc6ae3fe4e030 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:36:04 +0200 Subject: Adding upstream version 1.1.0. Signed-off-by: Daniel Baumann --- .../pkg/mod/github.com/lib/pq@v1.10.7/TESTS.md | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dependencies/pkg/mod/github.com/lib/pq@v1.10.7/TESTS.md (limited to 'dependencies/pkg/mod/github.com/lib/pq@v1.10.7/TESTS.md') diff --git a/dependencies/pkg/mod/github.com/lib/pq@v1.10.7/TESTS.md b/dependencies/pkg/mod/github.com/lib/pq@v1.10.7/TESTS.md new file mode 100644 index 0000000..f050211 --- /dev/null +++ b/dependencies/pkg/mod/github.com/lib/pq@v1.10.7/TESTS.md @@ -0,0 +1,33 @@ +# Tests + +## Running Tests + +`go test` is used for testing. A running PostgreSQL +server is required, with the ability to log in. The +database to connect to test with is "pqgotest," on +"localhost" but these can be overridden using [environment +variables](https://www.postgresql.org/docs/9.3/static/libpq-envars.html). + +Example: + + PGHOST=/run/postgresql go test + +## Benchmarks + +A benchmark suite can be run as part of the tests: + + go test -bench . + +## Example setup (Docker) + +Run a postgres container: + +``` +docker run --expose 5432:5432 postgres +``` + +Run tests: + +``` +PGHOST=localhost PGPORT=5432 PGUSER=postgres PGSSLMODE=disable PGDATABASE=postgres go test +``` -- cgit v1.2.3