testdb

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 10 Imported by: 6

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

func NewTrillianDB(ctx context.Context) (*sql.DB, error)

NewTrillianDB creates an empty database with the Trillian schema. The database name is randomly generated. NewTrillianDB is equivalent to Default().NewTrillianDB(ctx).

func SkipIfNoMySQL added in v1.1.0

func SkipIfNoMySQL(t *testing.T)

SkipIfNoMySQL is a test helper that skips tests that require a local MySQL.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL