Documentation
¶
Overview ¶
Package diff parses git diff output to identify changed lines for incremental mutation testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diff ¶
Diff maps file names to their list of changes.
func NewWithCmd ¶
NewWithCmd creates a new Diff by parsing git diff output using a custom command executor. This is useful for testing.
func (Diff) IsChanged ¶
IsChanged returns true if the given position is within a changed region. A nil Diff means diff-based selection is disabled, so every position is changed. A non-nil Diff with no matching range means diff-based selection is enabled but found no added lines for that position, so it is unchanged.
Click to show internal directories.
Click to hide internal directories.