diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-28 16:10:14 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-01-28 16:10:14 -0500 |
| commit | b06eba3df09a8fcd777b8fe350c2b184758963d1 (patch) | |
| tree | 0a2ad3aa9537c0457688b7325a3858c1b328bea2 /vendor/github.com/lib/pq/TESTS.md | |
| parent | Add version cmd to docs (diff) | |
| download | cli-b06eba3df09a8fcd777b8fe350c2b184758963d1.zip | |
Use checkmate for tests
Diffstat (limited to 'vendor/github.com/lib/pq/TESTS.md')
| -rw-r--r-- | vendor/github.com/lib/pq/TESTS.md | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vendor/github.com/lib/pq/TESTS.md b/vendor/github.com/lib/pq/TESTS.md deleted file mode 100644 index f050211..0000000 --- a/vendor/github.com/lib/pq/TESTS.md +++ /dev/null @@ -1,33 +0,0 @@ -# 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 -``` |