coverage

package
v0.0.0-...-6a4f5cd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldTracker

type FieldTracker map[string]*TemplateTracker

func NewFieldTracker

func NewFieldTracker() FieldTracker

func (FieldTracker) Covered

func (f FieldTracker) Covered(fieldSeen, fieldOrNamedTemplate string)

func (FieldTracker) Track

func (f FieldTracker) Track(field string, withinTemplates []string, templatePath string)

type TemplateTracker

type TemplateTracker struct {
	Templates []string
	// contains filtered or unexported fields
}

func NewTemplateTracker

func NewTemplateTracker() *TemplateTracker

func (*TemplateTracker) Covered

func (t *TemplateTracker) Covered()

func (*TemplateTracker) IsCovered

func (t *TemplateTracker) IsCovered() bool

func (*TemplateTracker) Track

func (t *TemplateTracker) Track(templatePath string)

type Tracker

type Tracker struct {
	FieldUsage FieldTracker
}

func NewTracker

func NewTracker(usage *tpl.TemplateUsage, includeSubcharts bool) *Tracker

func (*Tracker) CalculateCoverage

func (t *Tracker) CalculateCoverage() (float64, string)

func (*Tracker) Record

func (t *Tracker) Record(templateOptions *chart.TemplateOptions, fieldOrNamedTemplates []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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