diffengine

package
v0.0.0-...-b044383 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffEngine

type DiffEngine struct {
	// contains filtered or unexported fields
}

func NewDiffEngine

func NewDiffEngine(code *code.CodeDirectory, history git.GitHistory, languageParser parser.Parser, oldCommitID string) *DiffEngine

func (*DiffEngine) Affects

func (d *DiffEngine) Affects(modifiedFunctions []string, codeCoverage []*code.Scope) bool

Affects checks if one or more of the functions modified affects the test code coverage.

func (*DiffEngine) ChangedFunctions

func (d *DiffEngine) ChangedFunctions(changedFiles []code.FileDiff) ([]string, error)

type FilePair

type FilePair struct {
	CurrentFile []byte
	OldFile     []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL