package
0.0.0-20230413211923-af321b4d2f66
Repository: https://github.com/hashicorp/horizon.git
Documentation: pkg.go.dev

# Functions

TestAssertCount is a helper for asserting the expected number of rows exist in the DB.
TestDBCommit commits a query and verifies it succeeds.
TestDBConnect connects to the local test database but does not recreate it.
TestDBConnectSuper connects to the local database as a super user but does not recreate it.
TestDBSave saves a changed model.
TestPostgresDB sets up the test DB to use, including running any migrations.
TestPostgresDBString returns the connection string for the database.
TestPostgresDB sets up the test DB to use, including running any migrations.

# Variables

DefaultDBName is the default name of the database to create for tests.
MigrationsDir is the directory path that is looked for for migrations.
UserName and UserPassword are the username and password, respectively, of the test user to create with access to the test database.
These variables control the database created for tests.

# Structs

TestDBOptions collects options that customize the test databases.