Documentation
¶
Overview ¶
Command audit_test_names scans all Go test files and classifies test function names by their naming pattern. It outputs a CSV report with columns: file, current_name, pattern, suggested_name.
With -apply it renames test functions in place to match the suggested names. With -dry-run it prints what would change without writing. With -check-files it gates test file names against the module they test instead.
The report exits 0 whatever names it finds, and 1 when a tree or a file it was pointed at could not be read, after printing everything it could.
Usage:
go run ./cmd/audit_test_names/ <dir>... go run ./cmd/audit_test_names/ -apply <dir>... go run ./cmd/audit_test_names/ -apply -dry-run <dir>... go run ./cmd/audit_test_names/ -check-files <dir>...
Click to show internal directories.
Click to hide internal directories.