testnames

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Command testnames checks that every Go test entry point declares its kind. It parses source files directly, including files excluded by the current operating system or build tags.

Role

Command, with the repository tooling under tools/: not part of the server binary, and it keeps its path through the modular-monolith migration. make test-names, make test and the impact job of the quality gate run it.

Inputs

  • The _test.go files under api/, internal/, pkg/, test/ and tools/ below the repository root (-root).
  • The reviewed owners of TestMain hooks and Fuzz targets, which are the only entry points without a TestUnit or TestAcc prefix.

Outputs

  • A failure that names each unclassified test and each unowned hook or fuzz target.
  • The counts of each kind, or with -json the complete inventory.

References

Status

Implemented P9c (issue 809).

Jump to

Keyboard shortcuts

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