Documentation
¶
Index ¶
- Constants
- Variables
- func CoveredPercentage(total, covered int64) int
- func StatsPluckName(stats []Stats) []string
- func StatsSearchMap(stats []Stats) map[string]Stats
- func StatsSerialize(stats []Stats) []byte
- type Config
- type FileCoverageDiff
- type Stats
- func GenerateCoverageStats(log *zap.Logger, cfg Config) ([]Stats, error)
- func StatsCalcTotal(stats []Stats) Stats
- func StatsDeserialize(b []byte) ([]Stats, error)
- func StatsFilterWithCoveredLines(stats []Stats) []Stats
- func StatsFilterWithMissingExplanations(stats []Stats) []Stats
- func StatsFilterWithUncoveredLines(stats []Stats) []Stats
Constants ¶
View Source
const IgnoreText = "coverage-ignore"
Variables ¶
View Source
var ErrInvalidFormat = errors.New("invalid format")
Functions ¶
func CoveredPercentage ¶
func StatsPluckName ¶
func StatsSearchMap ¶
func StatsSerialize ¶
Types ¶
type FileCoverageDiff ¶
FileCoverageDiff holds per-file coverage difference between current and base.
type Stats ¶
type Stats struct {
Name string
Total int64
Covered int64
Threshold int
UncoveredLines []int
AnnotationsWithoutComments []int
}
func GenerateCoverageStats ¶
func StatsCalcTotal ¶
func StatsDeserialize ¶
func StatsFilterWithMissingExplanations ¶
StatsFilterWithMissingExplanations returns stats that have missing explanations
func (Stats) CoveredPercentage ¶
func (Stats) CoveredPercentageF ¶
func (Stats) CoveredPercentageFNR ¶
func (Stats) UncoveredLinesCount ¶
Click to show internal directories.
Click to hide internal directories.