Documentation ¶
Overview ¶
Package testdb creates new databases for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTrillianDB ¶
NewTrillianDB creates an empty database with the Trillian schema. The database name is randomly generated. NewTrillianDB is equivalent to Default().NewTrillianDB(ctx).
func NewTrillianDBOrDie ¶
NewTrillianDBOrDie attempts to return a connection to a new postgres test database and fails if unable to do so.
func PGAvailable ¶
func PGAvailable() bool
PGAvailable indicates whether a default PG database is available.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.