lcov

package
v0.0.0-...-6061e1a Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package lcov reads LCOV coverage reports (the lcov.info format produced by JavaScript/TypeScript tooling such as Jest, nyc, Vitest and c8, all of which build on Istanbul). It matches files by their repo-relative path and tolerates the absolute SF: paths Istanbul commonly emits by also suffix-matching.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLoader

type DefaultLoader struct{}

func NewReportLoader

func NewReportLoader() *DefaultLoader

func (*DefaultLoader) Load

func (l *DefaultLoader) Load(coverageFile string) (coverage.Report, error)

type Report

type Report struct {
	// contains filtered or unexported fields
}

Report holds, per source file, the hit count for each line that LCOV tracked.

func (*Report) GetCoverageData

func (r *Report) GetCoverageData(module string, sourceDir string, pkg string, fileName string, lineNumber int) (*domain.CoverageData, bool)

Jump to

Keyboard shortcuts

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