Widen the naming fence to the tests, and record what each stem names
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user