domain

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverageData

type CoverageData struct {
	MissedInstructionCount  int
	CoveredInstructionCount int
}

type SourceLine

type SourceLine struct {
	Module     string
	SrcDir     string
	Pkg        string
	FileName   string
	LineNumber int
	LineValue  string
}

type SourceLineCoverage

type SourceLineCoverage struct {
	SourceLine
	CoverageData
}

func (SourceLineCoverage) HasData

func (slc SourceLineCoverage) HasData() bool

type SourceLineCoverageReport

type SourceLineCoverageReport []SourceLineCoverage

func (SourceLineCoverageReport) DiffCoveragePercent

func (r SourceLineCoverageReport) DiffCoveragePercent() float64

DiffCoveragePercent returns the headline diff-coverage figure: covered instructions / (covered + missed) * 100. When the PR changed no measurable instructions it returns 100, matching the reporters which treat "nothing to measure" as fully covered, so such PRs are never failed by the coverage gate.

func (SourceLineCoverageReport) TotalCoveredInstructions

func (r SourceLineCoverageReport) TotalCoveredInstructions() int

func (SourceLineCoverageReport) TotalLinesWithData

func (r SourceLineCoverageReport) TotalLinesWithData() int

func (SourceLineCoverageReport) TotalLinesWithoutData

func (r SourceLineCoverageReport) TotalLinesWithoutData() int

func (SourceLineCoverageReport) TotalMissedInstructions

func (r SourceLineCoverageReport) TotalMissedInstructions() int

Jump to

Keyboard shortcuts

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