Go code for confirming SQL connections are closed during testing
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
harness.go
harness_test.go

README.md

go-sql-test-harness

Confirm connections are properly closed during testing

Requires 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