coverage

command
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

coverage runs Go tests with coverage and checks that the total coverage percentage meets a per-component target.

Usage:

coverage <packages...>

It runs "go test -race -coverprofile -covermode=atomic" on the given packages, then uses "go tool cover -func" to extract the total coverage percentage and compares it against the target for the component. The default target is 80%. Components with a different target are listed below.

Jump to

Keyboard shortcuts

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