protovalidatecoverage

command
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 8 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 protovalidatecoverage scans .proto files under the supplied directory and prints a human-readable summary of fields that lack a `validate:` constraint declared via the @gotags marker (protoc-go-inject-tag convention), across ALL messages (requests AND responses) for triage.

It is a reporting tool only — it always exits 0. The authoritative CI gate is the Go test TestEveryBoundableRequestFieldCarriesValidateTag in coverage_test.go, which hard-fails when a bound-able *Request* field is missing a validate tag and runs under the normal `go test ./...` job. This binary stays useful for spotting untagged RESPONSE fields (which the gate deliberately does not require) when triaging coverage by hand.

Usage:

go run ./test/protovalidatecoverage <proto-dir>

Example:

go run ./test/protovalidatecoverage ./proto/powermanage/v1

Jump to

Keyboard shortcuts

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