sdk/golang/Standard Library/GoRuntimeCoverage
Standard Library

GoRuntimeCoverage

Go stdlib package — runtime/coverage. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.ClearCounters()Neutral
#
Signature
ClearCounters() error

ClearCounters clears/resets all coverage counter variables in the

.WriteCounters()Neutral
#
Signature
WriteCounters(w io.Writer) error

WriteCounters writes coverage counter-data content for the

.WriteCountersDir()Neutral
#
Signature
WriteCountersDir(dir string) error

WriteCountersDir writes a coverage counter-data file for the

.WriteMeta()Neutral
#
Signature
WriteMeta(w io.Writer) error

WriteMeta writes the meta-data content (the payload that would

.WriteMetaDir()Neutral
#
Signature
WriteMetaDir(dir string) error

WriteMetaDir writes a coverage meta-data file for the currently

Fully-Qualified Names

FQNField
runtime/coveragefqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # runtime/coverage