types

package
v0.0.0-...-13b0add Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestStatusPending string = "pending"
	TestStatusRunning string = "running"
	TestStatusDone    string = "done"

	TestStatusOK   string = "OK"
	TestStatusSkip string = "skip"
	TestStatusFail string = "fail"
)

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 GetTestById(id int64) (*Test, error)

func ListTest

func ListTest() ([]*Test, error)

func (*Test) GetAdjusts

func (test *Test) GetAdjusts() []string

func (*Test) GetComparor

func (test *Test) GetComparor() interfaces.SqlResultComparer

func (*Test) GetDataLoaders

func (test *Test) GetDataLoaders() interfaces.DataLoader

func (*Test) GetLoop

func (test *Test) GetLoop() int

func (*Test) GetLoopInterval

func (test *Test) GetLoopInterval() int

func (*Test) GetName

func (test *Test) GetName() string

func (*Test) GetQueryLoaders

func (test *Test) GetQueryLoaders() interfaces.QueryLoader

func (*Test) Persistent

func (test *Test) Persistent() error

persistent the result and set the id

func (*Test) Update

func (test *Test) Update() error

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

Jump to

Keyboard shortcuts

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