Documentation ¶
Index ¶
Constants ¶
View Source
const MimeType = "application/json+coverage"
MimeType used by coverage reports.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Name string `json:"filename"` Digest string `json:"checksum,omitempty"` Coverage []*int `json:"coverage"` Covered float64 `json:"covered_percent,omitempty"` CoveredStrength float64 `json:"covered_strength,omitempty"` CoveredLines int `json:"covered_lines,omitempty"` TotalLines int `json:"lines_of_code"` }
File represents a coverage report for a single file.
type Metrics ¶
type Metrics struct { Covered float64 `json:"covered_percent"` CoveredStrength float64 `json:"covered_strength"` CoveredLines int `json:"covered_lines"` TotalLines int `json:"total_lines"` }
Metrics represents total coverage metrics for all files.
Click to show internal directories.
Click to hide internal directories.