Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run() bool
Run is a helper function to determine if the current test context requires the database tests to run. `True` indicates that that `-database` flag was set when the tests were run.
func Setup ¶
Setup connects to a database for testing purposes. The following OS vars are required:
POSTGRES_URI
func TruncateTables ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.