covercore

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command covercore runs `go test -cover` on the core packages, prints a per-package coverage table and exits 1 when any package is below the minimum, naming it.

Usage: go run ./tools/covercore [-min 85] [-go go] [-json file] [package pattern ...]

With no patterns it covers the core packages of Story 1.23: internal/engine, internal/source/..., decode, detect, suppress, verify, enrich, grade, secret, netx, registry, gitx, internal/config, the public config package and internal/hook, plus the rest of the release gate's list (Story 4.18): the public report package, internal/fixplan, internal/candidate and internal/warnx. The public root package is gated by scripts/cover-library.sh, which also counts the black-box tests in tests/api. A package with no test files or no coverage line counts as 0.0%. -json writes every row to a file ({"min": 85, "packages": [{"package", "percent"}]}) for the release gates (tools/gates). Exit code 2 means the tests failed or the tool could not run.

Jump to

Keyboard shortcuts

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