The highest tagged major version is
v7.
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Oct 16, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Rows(args ...string) [][]interface{}
Rows is similar to RowsWithSep, use white space as separator string.
Result is the result returned by MustQuery.
func (res *Result) Check(expected [][]interface{})
Check asserts the result equals the expected results.
func (res *Result) Rows() [][]interface{}
Rows returns the result data.
Sort sorts and return the result.
TestKit is a utility to run sql test.
NewTestKit returns a new *TestKit.
NewTestKitWithInit returns a new *TestKit and creates a session.
func (tk *TestKit) CheckExecResult(affectedRows, insertID int64)
CheckExecResult checks the affected rows and the insert id after executing MustExec.
Exec executes a sql statement.
MustExec executes a sql statement and asserts nil error.
MustQuery query the statements and returns result rows.
If expected result is set it asserts the query result equals expected result.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.