audit_test_names

command
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 12 Imported by: 0

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.

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>...

Jump to

Keyboard shortcuts

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