https://github.com/aodin/go-sql-test-harness
Go code for confirming SQL connections are closed during testing
https://github.com/aodin/go-sql-test-harness
Last synced: 2 months ago
JSON representation
Go code for confirming SQL connections are closed during testing
- Host: GitHub
- URL: https://github.com/aodin/go-sql-test-harness
- Owner: aodin
- License: mit
- Created: 2016-04-19T01:46:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-19T01:58:19.000Z (about 9 years ago)
- Last Synced: 2025-01-21T08:29:58.300Z (4 months ago)
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-sql-test-harness
Confirm connections are properly closed during testingRequires Go >= 1.4 because of `TestMain`
Set credentials for a postgres DB in `harness_test.setup`. Compare the output of:
go test -run=TestGood
to:
go test -run=TestBad
Happy hacking!
aodin, 2016