Versions in this module Expand all Collapse all v0 v0.2.0 Jul 29, 2026 Changes in this version type Directives + Func string v0.1.0 Jul 23, 2026 Changes in this version + type Block struct + Count int + EndCol int + EndLine int + File string + NumStmt int + StartCol int + StartLine int + type Directives struct + End string + File string + Line string + RequireReason bool + Start string + func DefaultDirectives(base string) Directives + type FileIgnore struct + Ranges []Range + WholeFile bool + func ScanFile(path string, d Directives) (FileIgnore, error) + func (fi FileIgnore) Covers(n int) bool + func (fi FileIgnore) OverlapsRange(lo, hi int) bool + type FilterResult struct + IgnoredFiles []string + Kept *Profile + RemovedStmts int + func Filter(p *Profile, res *Resolver, d Directives) (*FilterResult, error) + type Profile struct + Blocks []Block + Mode string + func ParseProfile(r io.Reader) (*Profile, error) + func (p *Profile) Merge() *Profile + func (p *Profile) Write(w io.Writer) error + type Range struct + End int + Start int + type Resolver struct + func NewResolver(dir string) *Resolver + func (r *Resolver) Resolve(token string) (string, error) + type Stats struct + CoveredStmts int + TotalStmts int + func Compute(p *Profile) Stats + func (s Stats) Percent() float64