testsupport

package
v0.0.2-cli Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadReader

type BadReader struct {
	Error error
}

func (*BadReader) Close

func (r *BadReader) Close() error

func (*BadReader) Read

func (r *BadReader) Read(buffer []byte) (int, error)

type DBConnectionInfo

type DBConnectionInfo struct {
	Type     string
	Hostname string
	Port     string
	Username string
	Password string
}

func GetDBConnectionInfo

func GetDBConnectionInfo() *DBConnectionInfo

func GetMySQLDBConnectionInfo

func GetMySQLDBConnectionInfo() *DBConnectionInfo

func GetPostgresDBConnectionInfo

func GetPostgresDBConnectionInfo() *DBConnectionInfo

func (*DBConnectionInfo) CreateDatabase

func (c *DBConnectionInfo) CreateDatabase(dbName string) *TestDatabase

func (*DBConnectionInfo) RemoveDatabase

func (c *DBConnectionInfo) RemoveDatabase(db *TestDatabase)

type TestDatabase

type TestDatabase struct {
	Name     string
	ConnInfo *DBConnectionInfo
}

func (*TestDatabase) DBConfig

func (d *TestDatabase) DBConfig() db.Config

func (*TestDatabase) Destroy

func (d *TestDatabase) Destroy()

Jump to

Keyboard shortcuts

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