package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Dec 5, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package diff parses git diff output to identify changed lines for incremental mutation testing.
type Change struct {
StartLine int
EndLine int
}
Change represents a contiguous range of changed lines in a file.
Diff maps file names to their list of changes.
New creates a new Diff by parsing git diff output using the default command executor.
NewWithCmd creates a new Diff by parsing git diff output using a custom command executor.
This is useful for testing.
IsChanged returns true if the given position is within a changed region.
If the diff is empty, it returns true for all positions.
FileName represents a file path in a diff.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.