Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Querier ¶
type Querier interface {
// Query called in Test.Run. Querier implementation do some query and check it results.
Query(ctx context.Context, tx Tx) error
}
Querier is query'like object. Which whould be called in Test.Run.
type QueryDelimiter ¶
type QueryDelimiter func([]byte) position
type QueryParser ¶
type QueryParser interface {
// Parse is trying to parse query source to Querier object or updated context.
//
// If query source is not related to QueryParser implementation, it should return nils.
// That is, Parse returns either the context, or the Querier, or nothing.
// If it returns not nil, then the processing of the current query will be stopped at this QueryParser.
Parse(context.Context, []byte) (context.Context, Querier, error)
}
type Rows ¶
type Rows interface {
Close()
Next() bool
Err() error
// String returns string representation of row values.
String() (string, error)
}
Rows returned by Tx.Query.
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
func DefaultFileSet ¶
func NewFileSet ¶
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
type TestRunner ¶
Click to show internal directories.
Click to hide internal directories.