covertreemap

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateGoFilesTreemapFilter

func AggregateGoFilesTreemapFilter(ctx context.Context, tree *treemap.Tree)

AggregateGoFilesTreemapFilter aggregates .go files from Treemap in each parent into single node `*`.

func CollapseRootsWithoutNameTreemapFilter

func CollapseRootsWithoutNameTreemapFilter(ctx context.Context, tree *treemap.Tree)

CollapseRootsWithoutNameTreemapFilter collapses roots with single child without updating name of parents.

func RemoveGoFilesTreemapFilter

func RemoveGoFilesTreemapFilter(ctx context.Context, tree *treemap.Tree)

RemoveGoFilesTreemapFilter removes .go files from Treemap. Size and heat of parents have to be already imputed.

Types

type CoverageTreemapBuilder

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

CoverageTreemapBuilder creates single treemap tree where each leaf is a file. Heat is test coverage. Size is number of lines.

func NewCoverageTreemapBuilder

func NewCoverageTreemapBuilder(
	countStatements bool,
) CoverageTreemapBuilder

NewCoverageTreemapBuilder is constructor.

func (CoverageTreemapBuilder) CoverageTreemapFromProfiles

func (s CoverageTreemapBuilder) CoverageTreemapFromProfiles(ctx context.Context, profiles []*cover.Profile) (*treemap.Tree, error)

CoverageTreemapFromProfiles from profiles. Note, we should not normalize heat since go coverage already reports 0~100%.

Jump to

Keyboard shortcuts

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