coverdata

package
v0.50.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 18

Documentation

Overview

Package coverdata provides a registration function for files with coverage instrumentation.

This package is part of the Bazel Go rules, and its interface should not be considered public. It may change without notice.

Index

Constants

This section is empty.

Variables

View Source
var (
	Counters = make(map[string][]uint32)
	Blocks   = make(map[string][]testing.CoverBlock)
)

Contains all coverage data for the program.

Functions

func RegisterFile

func RegisterFile(fileName string, counter []uint32, pos []uint32, numStmts []uint16)

RegisterFile causes the coverage data recorded for a file to be included in program-wide coverage reports. This should be called from init functions in packages with coverage instrumentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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