cover

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncOutput

func FuncOutput(profile, outputFile string) error

func HtmlOutput

func HtmlOutput(profile, outfile string) error

HtmlOutput reads the profile data from profile and generates an HTML coverage report, writing it to outfile. If outfile is empty, it writes the report to a temporary file and opens it in a web browser.

Types

type FuncExtent

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

FuncExtent describes a function's extent in the source by file and position.

type FuncVisitor

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

FuncVisitor implements the visitor that builds the function position list for a file.

func (*FuncVisitor) Visit

func (v *FuncVisitor) Visit(node ast.Node) ast.Visitor

Visit implements the ast.Visitor interface.

type ManifestData added in v0.0.5

type ManifestData struct {
	Files       map[string]string `json:"files"`
	Entrypoints []string          `json:"entrypoints"`
}

ManifestData represents the structure of asset-manifest.json

type Pkg

type Pkg struct {
	ImportPath string
	Dir        string
	Error      *struct {
		Err string
	}
}

Pkg describes a single package, compatible with the JSON output from 'go list'; see 'go help list'.

Jump to

Keyboard shortcuts

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