Documentation ¶
Overview ¶
Package testdb creates new databases for tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MySQLAvailable ¶ added in v1.1.0
func MySQLAvailable() bool
MySQLAvailable indicates whether a default MySQL database is available.
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 SetFDLimit ¶ added in v1.3.4
SetFDULimit sets the soft limit on the maximum number of open file descriptors. See http://man7.org/linux/man-pages/man2/setrlimit.2.html
func SkipIfNoMySQL ¶ added in v1.1.0
SkipIfNoMySQL is a test helper that skips tests that require a local MySQL.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.