package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Functions
DebugSchema parses /debug/schema and returns a map of the tables keyed by the table name.
DebugVars parses /debug/vars and returns a map.
FetchInt fetches the specified slash-separated tag and returns the value as an int.
FetchJSON fetches JSON content from the specified URL path and returns it as a map.
FetchURL fetches the content from the specified URL path and returns it as a string.
FetchVal fetches the specified slash-separated tag and returns the value as an interface.
NewClient creates a new client for Server.
NewClientWithContext creates a new client for Server with the provided context.
NewQueryCatcher sets up the capture and retuns a QueryCatcher.
NewTxCatcher sets up the capture and returns a new TxCatcher.
QueryStats parses /debug/query_stats and returns a map of the query stats keyed by the query.
RowsToStrings converts qr.Rows to [][]string.
StartServer starts the server and initializes all the global variables.
StopServer must be called once all the tests are done.
StreamQueryz returns the contents of /streamqueryz?format=json.
StreamTerminate terminates the specified streaming query.
# Variables
ResolveChan is the channel that sends dtids that are to be resolved.
Server is the TabletServer for the framework.
ServerAddress is the http URL for the server.
Target is the target info for the server.
# Structs
MultiCase groups a number of test cases under a name.
QueryCatcher allows you to capture and fetch queries that are being executed by TabletServer.
QueryClient provides a convenient wrapper for TabletServer's query service.
QueryStat contains the stats for one query.
StreamQuery contains the streaming query info.
Table is a subset of schema.Table.
TableColumn contains info about a table's column.
TestCase represents one test case.
TxCatcher allows you to capture and fetch transactions that are being executed by TabletServer.
# Interfaces
Testable restricts the types that can be added to a test case.
# Type aliases
TestQuery represents a plain query.