coverdata

package
v0.15.2 Latest Latest
Warning

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

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

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 Cover = testing.Cover{
	Mode:            "set",
	CoveredPackages: "",
	Counters:        map[string][]uint32{},
	Blocks:          map[string][]testing.CoverBlock{},
}

Cover 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