blob: 0354d53ab0f5529863ecb1a299774fc4da2d17c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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.Errorf)
ck.Configure("*", "*", "*", -intqa.EMissingTest)
ck.Configure("path.go", "*", "*", +intqa.EMissingTest)
ck.Configure("*yacc.go", "*", "*", intqa.ENone)
ck.Check()
}
|