evaluation

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintPretty

func PrintPretty(output io.Writer, errs []CoverageError)

Types

type CoverageError

type CoverageError struct {
	Type         CoverageErrorType
	AffectedFile string

	ExpectedThreshold float64
	ActualCovered     float64
}

func Evaluate

func Evaluate(cs *statistic.CoverageStatistic, cfg config.CoverageConfig) (errs []CoverageError, err error)

type CoverageErrorType

type CoverageErrorType string
const (
	CoverageErrorStmt CoverageErrorType = "statements"
	CoverageErrorFunc CoverageErrorType = "functions"
)

Jump to

Keyboard shortcuts

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