Answer architecture round 3: the generated header names go generate, one sorted-keys helper everywhere, one site constructor, and an inline folder reference refused before anything loads

This commit is contained in:
2026-10-03 17:46:28 +02:00
committed by Lillem4n
parent 3bb8628e39
commit cc8797744b
10 changed files with 32 additions and 42 deletions
+1 -6
View File
@@ -11,12 +11,7 @@ import (
// docs/decisions.md#one-name-one-meaning
func TestNoFunctionSpellsAMethod(t *testing.T) {
funcs, methods := declaredCalls(namespaceFiles(t))
names := make([]string, 0, len(funcs))
for name := range funcs {
names = append(names, name)
}
sort.Strings(names)
for _, name := range names {
for _, name := range sortedNames(funcs) {
if recv := methods[name]; len(recv) > 0 {
sort.Strings(recv)
t.Errorf("func %s is spelled by %s too; name them apart", name, strings.Join(recv, " and "))