runner

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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 Runner deprecated

type Runner struct{}

Deprecated: Use TestSuite.RunTest instead

func NewRunner deprecated

func NewRunner() (*Runner, error)

Deprecated: Use NewTestSuite instead

func (*Runner) RunTest

func (r *Runner) RunTest(ctx context.Context, specPath string) error

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 NewTestSuite() (*TestSuite, error)

func (*TestSuite) CleanupSharedInfrastructure

func (s *TestSuite) CleanupSharedInfrastructure(ctx context.Context)

func (*TestSuite) DiscoverServices

func (s *TestSuite) DiscoverServices() error

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

func (s *TestSuite) FindInitScript() string

FindInitScript looks for init.sql in discovered MySQL services

func (*TestSuite) ResetDatabase

func (s *TestSuite) ResetDatabase(ctx context.Context) error

func (*TestSuite) RunTest

func (s *TestSuite) RunTest(ctx context.Context, specPath string) error

func (*TestSuite) SetupSharedInfrastructure

func (s *TestSuite) SetupSharedInfrastructure(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL