Skip to content
mutastic

ChangedLines

record in io.mutastic.api

record ChangedLines(String since, Map<Path, Set<Integer>> lines)

The source lines a change touched, by file: what a run scoped to a change mutates. Lines only a deletion touched aren’t here, since there’s no code left on them to mutate.

Components

sincewhat the change is measured from, as given: main, HEAD
lineseach changed source file, absolute, and its changed lines, from 1

Methods

covers

boolean covers(Path file, int line)

Whether line of file (absolute) changed.

within

ChangedLines within(List<Path> roots)

Only the files under roots: one module’s sources, of a change across a repository.

files

int files()

lineCount

int lineCount()