cover

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package cover implements AWK code coverage and reporting.

Index

Constants

View Source
const ArrayName = "__COVER"

Variables

This section is empty.

Functions

This section is empty.

Types

type Cover

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

func New

func New(mode Mode, append bool, fileReader *parseutil.FileReader) *Cover

func (*Cover) Annotate

func (cover *Cover) Annotate(prog *ast.Program)

Annotate annotates the program with coverage tracking code.

func (*Cover) WriteProfile

func (cover *Cover) WriteProfile(path string, data map[string]interface{}) error

WriteProfile writes coverage data to a file at the given path.

type Mode

type Mode int
const (
	ModeUnspecified Mode = iota
	ModeSet
	ModeCount
)

func (Mode) String

func (m Mode) String() string

Jump to

Keyboard shortcuts

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