Documentation
¶
Overview ¶
Package testreport is what a saved script version keeps of its tests (#1972): each test_* function's outcome at the save and the share of the version's statements the tests reach. It is its own package so a version record in pkg/script carries it without growing that package's public surface, and so the save gate that produces it and the store that keeps it share one type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coverage ¶
type Coverage struct {
Statements int `json:"statements" example:"140"`
Covered int `json:"covered" example:"126"`
Percent float64 `json:"percent" example:"90"`
MissedLines []int `json:"missed_lines"`
}
Coverage is the statements the tests reach, and the lines of the ones they do not.
Click to show internal directories.
Click to hide internal directories.