Back to godoc.org

Package coverage

v0.16.1
Latest Go to latest

The latest major version is .

Published: Aug 7, 2020 | License: Apache-2.0 | Module: github.com/jetstack/cert-manager

Overview

Package coverage provides tools for coverage-instrumented binaries to collect and flush coverage information.

Index

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier