Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resolver ¶
type Resolver interface {
// Resolve attempts to map a diff path to a tree path
// Returns the resolved path and whether resolution was successful
Resolve(diffPath string) (treeRel string, ok bool)
}
Resolver maps paths from diff files to paths in the coverage tree
func BuildResolver ¶
func BuildResolver(dd *diff.DiffData, fileIndex map[string]*model.FileNode, coveredSet map[string]bool, logger *slog.Logger) Resolver
BuildResolver creates a new Resolver using multiple heuristics: H1: Strip N leading components that gives most exact matches H2: Remove longest common prefix from monorepo root H3: Match by basename and suffix components H4: Prefer paths with known coverage in ambiguous cases
Click to show internal directories.
Click to hide internal directories.