coverage

package
v0.0.0-...-5fdbbf3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeProfiles

func MergeProfiles(ignorePatterns []string, files []string) ([]*cover.Profile, error)

MergeProfiles merge all profiles files

Types

type Tree

type Tree []node

Tree represents a tree of coverage profiles nodes

func NewTree

func NewTree(profiles []*cover.Profile, files []string) Tree

NewTree return a new tree from cover profiles

func (Tree) Fprint

func (tree Tree) Fprint(w io.Writer, root bool, padding string, threshold float64)

Fprint implement the Fpring for a node tree

func (Tree) GetCoverage

func (tree Tree) GetCoverage() float64

GetCoverage just check the first node coverage given the threshold

Jump to

Keyboard shortcuts

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