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.
Click to show internal directories.
Click to hide internal directories.