{"modulePath":"github.com/target/pull-request-code-coverage","version":"v0.0.0-20260625151635-6061e1a4224c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package domain\n\n## Types\n\n```go\ntype CoverageData struct {\n\tMissedInstructionCount  int\n\tCoveredInstructionCount int\n}\n```\n\n```go\ntype SourceLine struct {\n\tModule     string\n\tSrcDir     string\n\tPkg        string\n\tFileName   string\n\tLineNumber int\n\tLineValue  string\n}\n```\n\n```go\ntype SourceLineCoverage struct {\n\tSourceLine\n\tCoverageData\n}\n```\n\n```go\nfunc (slc SourceLineCoverage) HasData() bool\n```\n\n```go\ntype SourceLineCoverageReport []SourceLineCoverage\n```\n\n```go\nfunc (r SourceLineCoverageReport) DiffCoveragePercent() float64\n```\nDiffCoveragePercent 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.\n\n```go\nfunc (r SourceLineCoverageReport) TotalCoveredInstructions() int\n```\n\n```go\nfunc (r SourceLineCoverageReport) TotalLinesWithData() int\n```\n\n```go\nfunc (r SourceLineCoverageReport) TotalLinesWithoutData() int\n```\n\n```go\nfunc (r SourceLineCoverageReport) TotalMissedInstructions() int\n```\n\n","path":"github.com/target/pull-request-code-coverage/internal/plugin/domain","name":"domain","synopsis":"","isRedistributable":true}
