Documentation ¶
Index ¶
- func CreateDSN(t *testing.T) []string
- func CreateDataSources(t *testing.T) ([]string, func())
- func Diff(expected, actual interface{}) []string
- func LoadData(t *testing.T, ds *db.DataSource, table string, data db.QueryResult)
- func LoadDataFromFixture(t *testing.T, ds *db.DataSource, fixture string)
- func NewStorage(t *testing.T, source string) *storage.Storage
- func NewStorages(t *testing.T) (storages []*storage.Storage)
- func SetupDataSources(t *testing.T) (db.DataSources, func())
- func SetupServer(ds db.DataSources) func()
- type TestFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDataSources ¶
func Diff ¶
func Diff(expected, actual interface{}) []string
Diff returns a string of differences between expected and actual if any
func LoadData ¶
func LoadData(t *testing.T, ds *db.DataSource, table string, data db.QueryResult)
func LoadDataFromFixture ¶
func LoadDataFromFixture(t *testing.T, ds *db.DataSource, fixture string)
func SetupDataSources ¶
func SetupDataSources(t *testing.T) (db.DataSources, func())
func SetupServer ¶ added in v0.3.0
func SetupServer(ds db.DataSources) func()
SetupServer starts a test server and returns its cleanup function
Types ¶
type TestFile ¶
type TestFile struct {
// contains filtered or unexported fields
}
TestFile represents a test file
func NewFixture ¶
NewFixture returns a TestFile from a given fixture
func NewGoldenFile ¶
NewGoldenFile returns a TestFile from a given golden name file
func (*TestFile) ParseOrUpdate ¶
Click to show internal directories.
Click to hide internal directories.