Documentation ¶
Overview ¶
Package testutil a Test only package for harness to load, implement SQL tests.
Index ¶
- func ExecSpec(t TestingT, q *QuerySpec)
- func ExecSqlSpec(t TestingT, q *QuerySpec)
- func RunDDLTests(t TestingT)
- func RunSimpleSuite(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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecSqlSpec ¶
ExecSqlSpec execute a test harness of QuerySpec
func RunDDLTests ¶
func RunDDLTests(t TestingT)
RunDDLTests run the DDL (CREATE SCHEMA, TABLE, alter) test harness suite.
func RunSimpleSuite ¶
func RunSimpleSuite(t TestingT)
RunSimpleSuite run the normal DML SQL test suite.
Types ¶
Click to show internal directories.
Click to hide internal directories.