coverage

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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