coverage

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(mode string, lines []*CovLine) string

mode can be: set

Types

type CovLine

type CovLine struct {
	Prefix string
	Count  int64
}

func Compact added in v1.0.32

func Compact(lines []*CovLine) []*CovLine

same file can have multiple lines of count see: https://go-review.googlesource.com/c/go/+/76875 go will append coverage profiles of multiple runnings

func Filter

func Filter(covs []*CovLine, check func(line *CovLine) bool) []*CovLine

func Merge

func Merge(covs ...[]*CovLine) []*CovLine

Merge profiles the result will be compacted

func Parse

func Parse(content string) (mode string, covLines []*CovLine)

func ParseCovLine

func ParseCovLine(line string) *CovLine

Jump to

Keyboard shortcuts

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