Help us shape the future of Go! Take the 2026 Go Developer Survey

cover

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverData

type CoverData struct {
	Profiles map[string]*cover.Profile
}

func LoadCoverage

func LoadCoverage(t *testing.T, filePath string) *CoverData

func LoadExampleCoverage

func LoadExampleCoverage(t *testing.T) *CoverData

func Parse

func Parse(fileName string) (*CoverData, error)

func (*CoverData) GetCoveredLines added in v0.2.16

func (c *CoverData) GetCoveredLines(fileName string) CoveredLines

type CoveredLines added in v0.2.16

type CoveredLines set.Set[int]

func (CoveredLines) AnyCovered added in v0.2.16

func (l CoveredLines) AnyCovered(linenos []int) bool

Jump to

Keyboard shortcuts

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