blob: 25a49724ef8fda8c0ac775fff7fd9d344ed8b9d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package pkglint
import (
"gopkg.in/check.v1"
"netbsd.org/pkglint/intqa"
)
// Ensures that all test names follow a common naming scheme:
//
// Test_${Type}_${Method}__${description_using_underscores}
func (s *Suite) Test__test_names(c *check.C) {
ck := intqa.NewTestNameChecker(c)
ck.IgnoreFiles("*yacc.go")
ck.AllowPrefix("Varalign", "mklines_varalign.go")
ck.AllowPrefix("ShellParser", "mkshparser.go")
ck.AllowCamelCaseDescriptions(
"compared_to_splitIntoShellTokens",
"comparing_YesNo_variable_to_string",
"enumFrom",
"enumFromDirs",
"enumFromFiles",
"dquotBacktDquot",
"and_getSubdirs",
"SilentAutofixFormat")
ck.ShowWarnings(false)
ck.Check()
}
|