cert-manager: github.com/jetstack/cert-manager/pkg/util/coverage Index | Files

package coverage

import "github.com/jetstack/cert-manager/pkg/util/coverage"

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

Index

Package Files

coverage.go faketestdeps.go

func FlushCoverage Uses

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 Uses

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.

Package coverage imports 8 packages (graph). Updated 2020-01-23. Refresh now. Tools for package owners.