Documentation ¶
Overview ¶
Package coverage provides tools for coverage-instrumented binaries to collect and flush coverage information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlushCoverage ¶
func FlushCoverage()
FlushCoverage flushes collected coverage information to disk. The destination file is configured at startup and cannot be changed. Calling this function also sends a line like "coverage: 5% of statements" to stdout.
func InitCoverage ¶
func InitCoverage(name string)
InitCoverage is called from the dummy unit test to prepare Go's coverage framework. Clients should never need to call it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.