Documentation
¶
Index ¶
- type ColumnInfo
- type Runnerdeprecated
- func NewRunner() (*Runner, error)deprecated
- type SchemaCache
- type TestSuite
- func (s *TestSuite) CleanupSharedInfrastructure(ctx context.Context)
- func (s *TestSuite) DiscoverServices() error
- func (s *TestSuite) FindInitScript() string
- func (s *TestSuite) ResetDatabase(ctx context.Context) error
- func (s *TestSuite) RunTest(ctx context.Context, specPath string) error
- func (s *TestSuite) SetupSharedInfrastructure(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnInfo ¶
type ColumnInfo struct {
Field string `json:"Field"`
Type string `json:"Type"`
Collation sql.NullString `json:"Collation"`
Null string `json:"Null"`
Key string `json:"Key"`
Default sql.NullString `json:"Default"`
Extra string `json:"Extra"`
Privileges string `json:"Privileges"`
Comment string `json:"Comment"`
}
ColumnInfo represents a single column from SHOW FULL FIELDS
type SchemaCache ¶
type SchemaCache map[string][]ColumnInfo
SchemaCache represents the cached schema for tables
type TestSuite ¶
type TestSuite struct {
// contains filtered or unexported fields
}
func NewTestSuite ¶
func (*TestSuite) CleanupSharedInfrastructure ¶
func (*TestSuite) DiscoverServices ¶
DiscoverServices searches for services with .linespec.yml configuration files in the current directory and subdirectories (up to 2 levels deep for performance)
func (*TestSuite) FindInitScript ¶
FindInitScript looks for init.sql in discovered MySQL services
Click to show internal directories.
Click to hide internal directories.