package
Version:
v0.0.0-...-0807726
Opens a new window with list of versions in this module.
Published: Mar 24, 2018
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package testutil a Test only package for harness to load, implement SQL tests.
-
func ExecSpec(t TestingT, q *QuerySpec)
-
func ExecSqlSpec(t TestingT, q *QuerySpec)
-
func RunDDLTests(t TestingT)
-
func RunTestSuite(t TestingT)
-
func Setup()
-
func TestExec(t TestingT, sql string)
-
func TestSelect(t TestingT, sql string, expects [][]driver.Value)
-
func TestSelectErr(t TestingT, sql string, expects [][]driver.Value)
-
func TestSqlSelect(t TestingT, source, sql string, expects [][]driver.Value)
-
type QuerySpec
-
type TestingT
ExecSpec execute a queryspec test
ExecSqlSpec execute a test harness of QuerySpec
RunDDLTests run the DDL (CREATE SCHEMA, TABLE, alter) test harness suite.
RunTestSuite run the normal DML SQL test suite.
Setup enables -vv verbose logging or sends logs to /dev/null
env var VERBOSELOGS=true was added to support verbose logging with alltests
TestSqlSelect tests using the database/sql driver
type TestingT interface {
Errorf(format string, args ...interface{})
}
TestingT is an interface wrapper around *testing.T so when we import
this go dep, govendor don't import "testing"
Source Files
¶
Click to show internal directories.
Click to hide internal directories.