Documentation ¶
Index ¶
- type Option
- type Package
- type PackageSummary
- func (s *PackageSummary) NumFailedTests() int
- func (s *PackageSummary) NumPassedTests() int
- func (s *PackageSummary) NumSkippedTests() int
- func (s *PackageSummary) NumTotalTests() int
- func (s *PackageSummary) PercentFailedTests() float64
- func (s *PackageSummary) PercentPassedTests() float64
- func (s *PackageSummary) PercentSkippedTests() float64
- type Run
- type RunMeta
- type RunSummary
- func (s *RunSummary) NumErrorRuns() int
- func (s *RunSummary) NumFailedTests() int
- func (s *RunSummary) NumPassedTests() int
- func (s *RunSummary) NumRuns() int
- func (s *RunSummary) NumSkippedTests() int
- func (s *RunSummary) NumTotalTests() int
- func (s *RunSummary) PercentFailedTests() float64
- func (s *RunSummary) PercentPassedTests() float64
- func (s *RunSummary) PercentSkippedTests() float64
- type T
- type TB
- type TBLog
- type TBState
- type Test
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct { Name string `json:"name"` Value string `json:"value"` Description string `json:"description"` Default string `json:"default"` }
Option represents an option for how a package can be run.
type Package ¶
type Package struct { Name string `json:"name"` Path string `json:"path"` SHA256Sum string `json:"sha256sum"` RunDelay time.Duration `json:"run_delay"` Options []Option `json:"options"` }
Package represents a go package that can be tested or benchmarked.
type PackageSummary ¶
type PackageSummary struct { Package string RunIDs []uuid.UUID ErrorRunIDs []uuid.UUID PassedTests map[string][]uuid.UUID FailedTests map[string][]uuid.UUID SkippedTests map[string][]uuid.UUID }
func (*PackageSummary) NumFailedTests ¶
func (s *PackageSummary) NumFailedTests() int
func (*PackageSummary) NumPassedTests ¶
func (s *PackageSummary) NumPassedTests() int
func (*PackageSummary) NumSkippedTests ¶
func (s *PackageSummary) NumSkippedTests() int
func (*PackageSummary) NumTotalTests ¶
func (s *PackageSummary) NumTotalTests() int
func (*PackageSummary) PercentFailedTests ¶
func (s *PackageSummary) PercentFailedTests() float64
func (*PackageSummary) PercentPassedTests ¶
func (s *PackageSummary) PercentPassedTests() float64
func (*PackageSummary) PercentSkippedTests ¶
func (s *PackageSummary) PercentSkippedTests() float64
type Run ¶
type Run struct { ID uuid.UUID `json:"id"` Package string `json:"package"` Args []string `json:"args"` Meta RunMeta `json:"meta"` EnqueuedAt time.Time `json:"enqueued_at"` StartedAt time.Time `json:"started_at"` FinishedAt time.Time `json:"finished_at"` Tests []*Test `json:"tests"` Error string `json:"error"` }
Run is the representation of a pending test or benchmark that has not completed.
type RunMeta ¶
type RunMeta struct {
Runner string `json:"runner"`
}
RunMeta is additional metadata associated with the run.
type RunSummary ¶
type RunSummary struct { Time time.Time Duration time.Duration PackageSummary map[string]*PackageSummary }
func (*RunSummary) NumErrorRuns ¶
func (s *RunSummary) NumErrorRuns() int
func (*RunSummary) NumFailedTests ¶
func (s *RunSummary) NumFailedTests() int
func (*RunSummary) NumPassedTests ¶
func (s *RunSummary) NumPassedTests() int
func (*RunSummary) NumRuns ¶
func (s *RunSummary) NumRuns() int
func (*RunSummary) NumSkippedTests ¶
func (s *RunSummary) NumSkippedTests() int
func (*RunSummary) NumTotalTests ¶
func (s *RunSummary) NumTotalTests() int
func (*RunSummary) PercentFailedTests ¶
func (s *RunSummary) PercentFailedTests() float64
func (*RunSummary) PercentPassedTests ¶
func (s *RunSummary) PercentPassedTests() float64
func (*RunSummary) PercentSkippedTests ¶
func (s *RunSummary) PercentSkippedTests() float64
type TB ¶
type TB struct { Name string `json:"name"` StartedAt time.Time `json:"started_at"` FinishedAt time.Time `json:"finished_at"` State TBState `json:"state"` }
TB is the representation of the common fields of a testing.TB.
Click to show internal directories.
Click to hide internal directories.