coverage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package coverage reads a test coverage profile, as go test -coverprofile writes one, with golang.org/x/tools/cover, and attributes its statements to the program's functions (IMPROVEMENTS.md 6.4). The shell reads the file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attribute

func Attribute(src []byte, p *arch.Program) (arch.Coverage, error)

Attribute parses a profile and gives each block's statements to the function whose span holds the block's first line; a block outside every function, such as a package-level initializer, counts toward none. A malformed profile is EINVALID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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