Documentation
¶
Index ¶
- Constants
- type LoopResult
- type Test
- func (test *Test) GetAdjusts() []string
- func (test *Test) GetComparor() interfaces.SqlResultComparer
- func (test *Test) GetDataLoaders() interfaces.DataLoader
- func (test *Test) GetLoop() int
- func (test *Test) GetLoopInterval() int
- func (test *Test) GetName() string
- func (test *Test) GetQueryLoaders() interfaces.QueryLoader
- func (test *Test) Persistent() error
- func (test *Test) Update() error
- type TestResult
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoopResult ¶
type LoopResult struct {
ID int64 `json:"id",gorm:"primary_key"`
TestID int64 `rql:"filter,sort"`
Loop int `rql:"filter,sort"`
Status string `rql:"filter,sort"`
Start int64 `rql:"filter,sort"`
End int64 `rql:"filter,sort"`
}
func ListLoopResult ¶
func ListLoopResult(id int64) ([]*LoopResult, error)
func (*LoopResult) Persistent ¶
func (result *LoopResult) Persistent() error
persistent the result and set the id
type Test ¶
type Test struct {
ID int64 `json:"id",gorm:"primary_key" rql:"filter,sort"`
TestName string `json:"testName" rql:"filter,sort"`
Comparer string `json:"comparer"`
DataLoader string `json:"dataLoader" rql:"filter,sort"`
QueryLoader string `json:"queryLoader" rql:"filter,sort"`
Loop int `json:"loop"`
LoopInterval int `json:"loopInterval" rql:"filter,sort"`
Yy string `gorm:"type:TEXT;" rql:"filter,sort"`
Zz string `gorm:"type:TEXT;" rql:"filter,sort"`
Queries int `json:"queries" rql:"filter,sort"`
QueryFileName string
DataFileName string
QueryStr string
DataStr string
StrictCompare bool
ContainContent string
AdjustsStr string
// contains filtered or unexported fields
}
func GetTestById ¶
func (*Test) GetAdjusts ¶
func (*Test) GetComparor ¶
func (test *Test) GetComparor() interfaces.SqlResultComparer
func (*Test) GetDataLoaders ¶
func (test *Test) GetDataLoaders() interfaces.DataLoader
func (*Test) GetLoopInterval ¶
func (*Test) GetQueryLoaders ¶
func (test *Test) GetQueryLoaders() interfaces.QueryLoader
type TestResult ¶
type TestResult struct {
ID int64 `json:"id" gorm:"primary_key" rql:"filter,sort"`
TestID int64 `rql:"filter,sort"`
Name string `rql:"filter,sort"`
Status string `rql:"filter,sort"`
FailedLoopCount int `rql:"filter,sort"`
Loop int `rql:"filter,sort"`
Start int64 `rql:"filter,sort"`
End int64 `rql:"filter,sort"`
}
func ListResult ¶
func ListResult(p *rql.Params) ([]*TestResult, error)
func ListUnFinishedTestResult ¶
func ListUnFinishedTestResult() ([]*TestResult, error)
func (*TestResult) Persistent ¶
func (result *TestResult) Persistent() error
persistent the result and set the id
func (*TestResult) Update ¶
func (result *TestResult) Update() error
Click to show internal directories.
Click to hide internal directories.