Discover Packages
github.com/ffffwh/qlbridge
testutil
package
Version:
v0.0.0-...-fc2d520
Opens a new window with list of versions in this module.
Published: Oct 26, 2018
License: MIT
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0 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.
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
ExecSpec(t, q)
ExecSqlSpec(t, q)
RunDDLTests(t)
RunSimpleSuite(t)
RunTestSuite(t)
Setup()
TestExec(t, sql)
TestSelect(t, sql, expects)
TestSelectErr(t, sql, expects)
TestSqlSelect(t, source, sql, expects)
Types
Source Files
Documentation
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 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
ExecSpec execute a queryspec test
ExecSqlSpec execute a test harness of QuerySpec
RunDDLTests run the DDL (CREATE SCHEMA, TABLE, alter) test harness suite.
RunSimpleSuite run the normal DML SQL test 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.