coverage

package
v2.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const IgnoreText = "coverage-ignore"

Variables

This section is empty.

Functions

func CoveredPercentage

func CoveredPercentage(total, covered int64) int

Types

type Config

type Config struct {
	Profiles     []string
	LocalPrefix  string
	ExcludePaths []string
}

type Stats

type Stats struct {
	Name      string
	Total     int64
	Covered   int64
	Threshold int
}

func CalcTotalStats

func CalcTotalStats(coverageStats []Stats) Stats

func GenerateCoverageStats

func GenerateCoverageStats(cfg Config) ([]Stats, error)

func (Stats) CoveredPercentage

func (s Stats) CoveredPercentage() int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL