Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoverageCount ¶
type CoverageCount struct { SrcLoc srclocation.SourceLocation Count int }
type CoverageLoc ¶
type CoverageLoc struct { HitCount int CoverageRange srclocation.SourceLocation SrcLocs []srclocation.SourceLocation }
Coverage hits from execution traces will be associated with a single srcloc byte range. But that hit only represents execution of the lowest-precedence operation in that byte range; other operations will be represented by smaller byte ranges within it. In order not to double-count those, we break apart the srcloc into the ranges that are uniquely represented by it. Those are stored in SrcLocs, and the original is stored in CoverageRange. HitCount accumulates hits from the execution traces.
func ToCoverageLocs ¶
func ToCoverageLocs(node ast.AST) ([]CoverageLoc, error)
Click to show internal directories.
Click to hide internal directories.