compare

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmp

func Cmp(parser driver.Parser, beforePath, afterPath string) error

Cmp will compare the before and after coverage

Types

type ByParseOrder

type ByParseOrder []CoverageCmp

ByParseOrder sorts CoverageCmp to match the order in which the Before coverages were presented to driver.Parser.

func (ByParseOrder) Len

func (x ByParseOrder) Len() int

func (ByParseOrder) Less

func (x ByParseOrder) Less(i, j int) bool

func (ByParseOrder) Swap

func (x ByParseOrder) Swap(i, j int)

type CoverageCmp

type CoverageCmp struct {
	Before driver.Coverage
	After  driver.Coverage
}

CoverageCmp is a pair of coverage

func (*CoverageCmp) Delta

func (cmp *CoverageCmp) Delta() float32

func (*CoverageCmp) Package

func (cmp *CoverageCmp) Package() string

Jump to

Keyboard shortcuts

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