Technical notes on web development, DevOps, and AI integration.
1 article
A test migration into external packages doubles as an API audit: three doors between public-path rewrites, real exports, and export_test.go.
TL;DR: Moving tests out of a package forces every internal function through one of three doors: rewrite via public paths, make a real export, or use export_test.go. A supposedly test-only commit exposed four importer functions worth exporting, revealing hidden API value. Test migrations double as free API audits, with zero exports signaling a healthy public interface.