Documentation ¶
Index ¶
- type MysqlTest
- func (t *MysqlTest) CheckReplication() (int64, string, error)
- func (t *MysqlTest) Connect() error
- func (t *MysqlTest) CountConnections() (int64, error)
- func (t *MysqlTest) Disconnect()
- func (t *MysqlTest) GetWeight(val int64, max int64) string
- func (t *MysqlTest) JsonLog(msg string)
- func (t *MysqlTest) Run()
- func (t *MysqlTest) RunOnce() *MysqlTestResult
- func (t *MysqlTest) RunOnceWithTimeout() *MysqlTestResult
- func (t *MysqlTest) WriteHttpResult(testname string, passed bool, description string)
- func (t *MysqlTest) WriteResult(res *MysqlTestResult)
- func (t *MysqlTest) WriteTextResult(testname string, status string)
- type MysqlTestResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlTest ¶
type MysqlTest struct { Name string // contains filtered or unexported fields }
func NewMysqlTest ¶
func (*MysqlTest) CheckReplication ¶
NOTE: only works if one master
func (*MysqlTest) CountConnections ¶
func (*MysqlTest) Disconnect ¶
func (t *MysqlTest) Disconnect()
func (*MysqlTest) JsonLog ¶
This is a very dumb json func. If more interesting stuff needs to be logged, pass it in as a map[string]interface{} and then detect value as int, string, w/e before marshaling json.
func (*MysqlTest) RunOnce ¶
func (t *MysqlTest) RunOnce() *MysqlTestResult
func (*MysqlTest) RunOnceWithTimeout ¶
func (t *MysqlTest) RunOnceWithTimeout() *MysqlTestResult
func (*MysqlTest) WriteHttpResult ¶
func (*MysqlTest) WriteResult ¶
func (t *MysqlTest) WriteResult(res *MysqlTestResult)
takes the MysqlTestResult and writes corresponding files
func (*MysqlTest) WriteTextResult ¶
type MysqlTestResult ¶
func (*MysqlTestResult) AddTextResult ¶
func (r *MysqlTestResult) AddTextResult(subject string, content string)
Click to show internal directories.
Click to hide internal directories.