Documentation
¶
Index ¶
Constants ¶
View Source
const ( CodeStatsName = "codestats" ThirdPartiesName = "thirdparties" TestCoverageName = "testcoverage" TestDurationName = "testduration" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChecklistItem ¶
type CoveragePackage ¶
type EvaluatorResponse ¶
type LinterMessage ¶
type LinterResult ¶
type LinterResult struct { Linter string `json:"linter"` Messages []LinterMessage `json:"messages"` }
type Results ¶
type Results struct { Coverage struct { Label string `json:"label"` Data struct { Packages []CoveragePackage `json:"packages"` Coverage float64 `json:"coverage"` } `json:"data"` RawOutput string `json:"rawOutput"` ExecutionTime float64 `json:"executionTime"` } `json:"coverage"` Download struct { Label string `json:"label"` Data interface{} `json:"data"` RawOutput string `json:"rawOutput"` ExecutionTime float64 `json:"executionTime"` } `json:"download"` CodeStats struct { Label string `json:"label"` Data map[string]int `json:"data"` RawOutput string `json:"rawOutput"` ExecutionTime float64 `json:"executionTime"` } `json:"codeStats"` Checklist struct { Label string `json:"label"` Data Checklist `json:"data"` RawOutput string `json:"rawOutput"` ExecutionTime float64 `json:"executionTime"` } `json:"checklist"` Test struct { Label string `json:"label"` Data []TestPackage `json:"data"` RawOutput string `json:"rawOutput"` ExecutionTime float64 `json:"executionTime"` } `json:"test"` ThirdParties struct { Label string `json:"label"` Data []string `json:"data"` RawOutput string `json:"rawOutput"` ExecutionTime float64 `json:"executionTime"` } `json:"thirdParties"` Linters struct { Label string `json:"label"` Data LinterResults `json:"data"` RawOutput string `json:"rawOutput"` ExecutionTime float64 `json:"executionTime"` } `json:"linters"` }
Results received from the test runner.
func (Results) GetMeanCodeCov ¶
GetAvgCodeCov returns the code coverage average.
func (Results) GetMeanTestDuration ¶
GetAvgTestDuration returns the average test duration.
type Score ¶
type Score struct { Value float64 `json:"value"` Rank string `json:"rank"` Details []*EvaluatorResponse `json:"details,omitempty"` }
Click to show internal directories.
Click to hide internal directories.