diff --git a/lint.go b/lint.go index 8bf077d9..eb27062e 100644 --- a/lint.go +++ b/lint.go @@ -317,7 +317,7 @@ func (f *file) lintNames() { } } case *ast.FuncDecl: - if f.isTest() && (strings.HasPrefix(v.Name.Name, "Example") || strings.HasPrefix(v.Name.Name, "Test")) { + if f.isTest() && (strings.HasPrefix(v.Name.Name, "Example") || strings.HasPrefix(v.Name.Name, "Test") || strings.HasPrefix(v.Name.Name, "Benchmark")) { return true } check(v.Name, "func")