Documentation ¶
Overview ¶
Package calculation calculates coverage through summarizing and filtering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoverageList ¶
CoverageList is a collection and summary over multiple file Coverage objects
func ProduceCovList ¶
func ProduceCovList(profiles []*cover.Profile) *CoverageList
ProduceCovList summarizes profiles and returns the result
func (CoverageList) ListDirectories ¶
func (covList CoverageList) ListDirectories() []string
ListDirectories gets a list a sub-directories that contains source code.
func (*CoverageList) Ratio ¶
func (covList *CoverageList) Ratio() float32
Ratio summarizes the list of coverages and returns the summarized ratio
func (*CoverageList) Subset ¶
func (covList *CoverageList) Subset(prefix string) *CoverageList
Subset returns the subset obtained through applying filter
Click to show internal directories.
Click to hide internal directories.