Documentation
¶
Overview ¶
Package pckg contains high level representations of package coverage statistics.
Index ¶
- type Group
- func (g *Group) CoveragePercent() (coveragePercent float64)
- func (g *Group) EstimateCount() (estimatedCount float64)
- func (g *Group) MedianStatementCount() float64
- func (g *Group) SetEstimatedStmtCountFrom(reference Group)
- func (g *Group) StatementCounts() (statementCounts []float64)
- func (g *Group) TotalCovered() float64
- func (g *Group) TotalStatementCount() float64
- func (g *Group) TotalUncovered() float64
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group []*Stats
Group is a slice of package stats.
func (*Group) CoveragePercent ¶
CoveragePercent calculates the coverage percentage across all packages.
func (*Group) EstimateCount ¶
EstimateCount returns the number of packages who have had their coverage percentages estimated.
func (*Group) MedianStatementCount ¶
MedianStatementCount calculates the median number of statements in packages that currently have associated tests.
func (*Group) SetEstimatedStmtCountFrom ¶
SetEstimatedStmtCountFrom sets the estimated statement count based on the average number of statements in other packages in the group.
func (*Group) StatementCounts ¶
StatementCounts returns a list of statement counts from the group.
func (*Group) TotalCovered ¶
TotalCovered returns the total number of statements that have been covered by unit tests.
func (*Group) TotalStatementCount ¶
TotalStatementCount returns the sum of statements across all packaes that currently have associated tests.
Source Files
¶
- doc.go
- group.go
- stats.go