Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ByName means sort by name ByName = "name" // ByCoverage means sort by coverage percentage ByCoverage = "coverage" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter converts profiles
type Coverage ¶
type Coverage struct { // Total is total statements count Total int // Reached is covered statements count Reached int }
Coverage is coverage report with total and reached statements count
func (*Coverage) Percentage ¶
Percentage gets coverage in percents
type FuncExtent ¶
type FuncExtent struct {
// contains filtered or unexported fields
}
FuncExtent describes a function's extent in the source by file and position.
type FuncVisitor ¶
type FuncVisitor struct {
// contains filtered or unexported fields
}
FuncVisitor implements the visitor that builds the function position list for a file.
type PackageReport ¶
PackageReport is package coverage report
type Packages ¶ added in v0.9.0
type Packages map[string]*PackageReport
Packages is a set of reports for each package
type Report ¶
Report is coverage report from GoCov profile
func (*Report) CheckCoverage ¶
CheckCoverage checks if report satisfies coverage requirements
func (*Report) FormatFull ¶
FormatFull returns detailed report
type StmtExtent ¶
type StmtExtent extent
StmtExtent describes a statements's extent in the source by file and position.
type StmtVisitor ¶
type StmtVisitor struct {
// contains filtered or unexported fields
}
StmtVisitor extracts data from file
func (*StmtVisitor) VisitStmt ¶
func (v *StmtVisitor) VisitStmt(s ast.Stmt)
VisitStmt visits statement
Click to show internal directories.
Click to hide internal directories.