Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitbase ¶
func NewGitbase( config regression.Config, version string, releases *regression.Releases, ) *regression.Binary
NewGitbase returns a Binary struct for gitbase Tool.
func NewToolGitbase ¶
func NewToolGitbase() regression.Tool
NewToolGitbase creates a Tool with gitbase parameters filled.
Types ¶
type Comparison ¶
type Comparison struct { regression.Comparison Rows float64 }
Comparison struct holds the percentage difference between two results.
type Query ¶
type Query struct { ID string `yaml:"ID"` Name string `yaml:"Name,omitempty"` Statements []string `yaml:"Statements"` }
Query struct has information about on query. It can consist on more than one statement.
type Result ¶
type Result struct { *regression.Result Query Rows int64 }
Result holds the resources and number of rows from a version test.
type SQLTest ¶
SQLTest holds are the queries that belong to a test and connection functionality.
func NewSQLTest ¶
NewSQLTest creates a new SQLTest.
func (*SQLTest) Disconnect ¶
Disconnect closes the mysql connection.
type Server ¶
type Server struct { *regression.Server // contains filtered or unexported fields }
Server wraps a gitbase server instance.
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test holds the information about a gitbase test.
func (*Test) GetResults ¶
GetResults prints test results and returns if the tests passed.
func (*Test) PrintTabbedResults ¶ added in v0.1.0
func (t *Test) PrintTabbedResults()
func (*Test) SaveLatestCSV ¶ added in v0.1.0
func (t *Test) SaveLatestCSV()