Say hold where the prose still said draws

This commit is contained in:
2026-09-21 21:54:50 +02:00
committed by Lillem4n
parent a52adc6b0d
commit 41dbbd3fda
10 changed files with 16 additions and 17 deletions
+2 -3
View File
@@ -8,8 +8,6 @@ import (
"testing"
)
// TestNoFunctionSpellsAMethod holds a call to one unit, over the tests as well,
// since a test file is this package too.
func TestNoFunctionSpellsAMethod(t *testing.T) {
funcs, methods := declaredCalls(namespaceFiles(t))
names := make([]string, 0, len(funcs))
@@ -19,7 +17,8 @@ func TestNoFunctionSpellsAMethod(t *testing.T) {
sort.Strings(names)
for _, name := range names {
if recv := methods[name]; len(recv) > 0 {
t.Errorf("func %s and %s are two units under one name; name them apart", name, strings.Join(recv, " and "))
sort.Strings(recv)
t.Errorf("func %s is spelled by %s too; name them apart", name, strings.Join(recv, " and "))
}
}
}