covermerger

package
v0.0.0-...-a1feae0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateStreamData

func AggregateStreamData(c *Config, stream io.Reader, base RepoBranchCommit,
) (map[string]*MergeResult, error)

Types

type Config

type Config struct {
	Workdir string
	// contains filtered or unexported fields
}

type DeletedFileLineMerger

type DeletedFileLineMerger struct {
}

func (*DeletedFileLineMerger) AddRecord

func (*DeletedFileLineMerger) Result

func (a *DeletedFileLineMerger) Result() *MergeResult

type FileCoverageMerger

type FileCoverageMerger interface {
	AddRecord(rbc RepoBranchCommit, arch string, f Frame, hitCount int)
	Result() *MergeResult
}

type FileLineCoverMerger

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

func (*FileLineCoverMerger) AddRecord

func (a *FileLineCoverMerger) AddRecord(rbc RepoBranchCommit, arch string, f Frame, hitCount int)

func (*FileLineCoverMerger) Result

func (a *FileLineCoverMerger) Result() *MergeResult

type FileRecord

type FileRecord map[string]string

func (FileRecord) Arch

func (fr FileRecord) Arch() string

func (FileRecord) Frame

func (fr FileRecord) Frame() Frame

func (FileRecord) HitCount

func (fr FileRecord) HitCount() int

func (FileRecord) RepoBranchCommit

func (fr FileRecord) RepoBranchCommit() RepoBranchCommit

type FileRecords

type FileRecords []FileRecord

type Frame

type Frame struct {
	StartLine int
	StartCol  int
	EndLine   int
	EndCol    int
}

type LineToLineMatcher

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

func (*LineToLineMatcher) SameLinePos

func (lm *LineToLineMatcher) SameLinePos(line int) int

type MergeResult

type MergeResult struct {
	HitCounts  map[int]int
	FileExists bool
}

type RepoBranchCommit

type RepoBranchCommit struct {
	Repo   string
	Branch string
	Commit string
}

Jump to

Keyboard shortcuts

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