Widen the naming fence to the tests, and record what each stem names

This commit is contained in:
2026-09-21 21:50:16 +02:00
committed by Lillem4n
parent d128621fc1
commit a52adc6b0d
7 changed files with 55 additions and 30 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ func TestLayoutNamesEverySourceFile(t *testing.T) {
listed[name] = true
}
}
for _, name := range goFiles(t) {
for _, name := range packageDir(t).GoFiles {
if !listed[name] {
t.Errorf("the README Layout names no %s, so nothing says what it holds", name)
}